mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
feat: version number is now taken dynamically from the VersionName parameter
This commit is contained in:
parent
0f1364502a
commit
57bb51fb8d
2 changed files with 4 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ import androidx.media3.common.util.UnstableApi;
|
|||
import androidx.preference.ListPreference;
|
||||
import androidx.preference.PreferenceFragmentCompat;
|
||||
|
||||
import com.cappielloantonio.tempo.BuildConfig;
|
||||
import com.cappielloantonio.tempo.R;
|
||||
import com.cappielloantonio.tempo.helper.ThemeHelper;
|
||||
import com.cappielloantonio.tempo.interfaces.ScanCallback;
|
||||
|
|
@ -69,6 +70,8 @@ public class SettingsFragment extends PreferenceFragmentCompat {
|
|||
public void onResume() {
|
||||
super.onResume();
|
||||
|
||||
findPreference("version").setSummary(BuildConfig.VERSION_NAME);
|
||||
|
||||
findPreference("logout").setOnPreferenceClickListener(preference -> {
|
||||
activity.quit();
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -166,6 +166,7 @@
|
|||
app:summary="@string/settings_about_summary" />
|
||||
|
||||
<Preference
|
||||
android:key="version"
|
||||
app:summary="@string/settings_version_summary"
|
||||
app:title="@string/settings_version_title" />
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue