Show version (commit count) and build time in the 'about' section

This commit is contained in:
inorichi
2015-12-12 02:08:47 +01:00
parent a571bb5637
commit 9c0abdeb81
7 changed files with 123 additions and 8 deletions

View File

@@ -4,6 +4,7 @@
<string name="pref_category_accounts_key">pref_category_accounts_key</string>
<string name="pref_category_downloads_key">pref_category_downloads_key</string>
<string name="pref_category_cache_key">pref_category_cache_key</string>
<string name="pref_category_about_key">pref_category_about_key</string>
<string name="pref_default_viewer_key">pref_default_viewer_key</string>
<string name="pref_hide_status_bar_key">pref_hide_status_bar_key</string>
@@ -19,4 +20,7 @@
<string name="pref_chapter_cache_size_key">pref_chapter_cache_size_key</string>
<string name="pref_clear_chapter_cache_key">pref_clear_chapter_cache_key</string>
<string name="pref_version">pref_version</string>
<string name="pref_build_time">pref_build_time</string>
</resources>

View File

@@ -39,6 +39,7 @@
<string name="pref_category_accounts">Accounts</string>
<string name="pref_category_downloads">Downloads</string>
<string name="pref_category_cache">Cache</string>
<string name="pref_category_about">About</string>
<!-- Reader section -->
<string name="pref_hide_status_bar">Hide status bar</string>
@@ -64,6 +65,10 @@
<string name="cache_deleted">Cache cleared. %1$d files have been deleted</string>
<string name="cache_delete_error">An error occurred clearing cache</string>
<!-- About section -->
<string name="version">Version</string>
<string name="build_time">Build time</string>
<!-- ACRA -->
<string name="pref_enable_acra">Send crash reports</string>
<string name="pref_acra_summary">Help fixing bugs. Sensitive data is not sent</string>

View File

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<CheckBoxPreference
android:key="acra.enable"
android:title="@string/pref_enable_acra"
android:summary="@string/pref_acra_summary"
android:defaultValue="false"/>
<Preference
android:key="@string/pref_version"
android:title="@string/version"
android:persistent="false" />
<Preference
android:key="@string/pref_build_time"
android:title="@string/build_time"
android:persistent="false" />
</PreferenceScreen>

View File

@@ -21,10 +21,9 @@
android:persistent="false"
android:title="@string/pref_category_cache" />
<CheckBoxPreference
android:key="acra.enable"
android:title="@string/pref_enable_acra"
android:summary="@string/pref_acra_summary"
android:defaultValue="false"/>
<Preference
android:key="@string/pref_category_about_key"
android:persistent="false"
android:title="@string/pref_category_about" />
</PreferenceScreen>