Permalink
Browse files

DeviceInfoSettings: Add build date

aosip edit: update preferenece to the new DividerPreference

Change-Id: I5e19ee04de5c26822e171d4af8f4bfc052be9b74
  • Loading branch information...
just6979 authored and xlxfoxxlx committed Jan 10, 2012
1 parent 01abb01 commit eec9887fd270832713e566849075b2ee119c1796
@@ -52,6 +52,10 @@
<string name="device_maintainer">Device maintainer</string>
<string name="device_maintainers">Device maintainers</string>
<!-- Build Date -->
<string name="build_date">Build date</string>
<string name="build_date_default">2017-01-01-0000</string>
<!-- MSIM SIM status -->
<string name="sim_card_status_title">SIM %d status</string>
<string name="sim_card_lock_settings_title">SIM %d lock settings</string>
@@ -156,6 +156,17 @@
settings:allowDividerAbove="true"
settings:allowDividerBelow="true"/>
<!-- Build date -->
<com.android.settings.DividerPreference
android:key="build_date"
android:enabled="false"
android:shouldDisableView="false"
android:selectable="false"
android:title="@string/build_date"
android:summary="@string/build_date_default"
settings:allowDividerAbove="true"
settings:allowDividerBelow="true"/>
<!-- Detailed build version -->
<Preference android:key="build_number"
android:enabled="false"
@@ -76,6 +76,7 @@
private static final String KEY_QGP_VERSION = "qgp_version";
private static final String PROPERTY_QGP_VERSION = "persist.qgp.version";
private static final String KEY_DEVICE_MAINTAINER = "device_maintainer";
private static final String KEY_MOD_BUILD_DATE = "build_date";
static final int TAPS_TO_BE_A_DEVELOPER = 7;
@@ -125,6 +126,7 @@ public void onCreate(Bundle icicle) {
findPreference(KEY_BUILD_NUMBER).setEnabled(true);
setValueSummary(KEY_QGP_VERSION, PROPERTY_QGP_VERSION);
setMaintainerSummary(KEY_DEVICE_MAINTAINER, "ro.aosip.maintainer");
setValueSummary(KEY_MOD_BUILD_DATE, "ro.build.date");
// Remove QGP Version if property is not present
removePreferenceIfPropertyMissing(getPreferenceScreen(), KEY_QGP_VERSION,
PROPERTY_QGP_VERSION);
@@ -134,7 +136,6 @@ public void onCreate(Bundle icicle) {
removePreferenceIfPropertyMissing(getPreferenceScreen(), KEY_MBN_VERSION,
PROPERTY_MBN_VERSION);
if (!SELinux.isSELinuxEnabled()) {
String status = getResources().getString(R.string.selinux_status_disabled);
setStringSummary(KEY_SELINUX_STATUS, status);

0 comments on commit eec9887

Please sign in to comment.