summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorZhao Wei Liew <zhaoweiliew@gmail.com>2016-12-29 18:33:27 +0800
committerZhao Wei Liew <zhaoweiliew@gmail.com>2016-12-29 18:36:53 +0800
commitcd93a79b8c0f61c9d3be2587f903ec5861bd9e51 (patch)
tree606b23702d8a30c5e3ca3c000ddb7f701ad0905a /src
parentb988d9f7920e33f5097157fdf753df66541318d6 (diff)
downloadpackages_apps_Settings-cd93a79b8c0f61c9d3be2587f903ec5861bd9e51.zip
packages_apps_Settings-cd93a79b8c0f61c9d3be2587f903ec5861bd9e51.tar.gz
packages_apps_Settings-cd93a79b8c0f61c9d3be2587f903ec5861bd9e51.tar.bz2
DeviceInfoSettings: Launch normal PlatLogo for LA version
Since we've removed the Cid-esque PlatLogo as part of the LineageOS rebrand, get rid of the extra code and simply launch the AOSP PlatLogo when tapping on the LA version pref. Change-Id: I2b70d4115d890771999b0b1b97c8a70495a75562
Diffstat (limited to 'src')
-rw-r--r--src/com/android/settings/DeviceInfoSettings.java17
1 files changed, 2 insertions, 15 deletions
diff --git a/src/com/android/settings/DeviceInfoSettings.java b/src/com/android/settings/DeviceInfoSettings.java
index 39eaa5a..41e14ba 100644
--- a/src/com/android/settings/DeviceInfoSettings.java
+++ b/src/com/android/settings/DeviceInfoSettings.java
@@ -242,7 +242,8 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
@Override
public boolean onPreferenceTreeClick(PreferenceScreen preferenceScreen, Preference preference) {
- if (preference.getKey().equals(KEY_FIRMWARE_VERSION)) {
+ if (preference.getKey().equals(KEY_FIRMWARE_VERSION)
+ || preference.getKey().equals(KEY_MOD_VERSION)) {
System.arraycopy(mHits, 1, mHits, 0, mHits.length-1);
mHits[mHits.length-1] = SystemClock.uptimeMillis();
if (mHits[0] >= (SystemClock.uptimeMillis()-500)) {
@@ -367,20 +368,6 @@ public class DeviceInfoSettings extends SettingsPreferenceFragment implements In
if (b.getBoolean(CarrierConfigManager.KEY_CI_ACTION_ON_SYS_UPDATE_BOOL)) {
ciActionOnSysUpdate(b);
}
- } else if (preference.getKey().equals(KEY_MOD_VERSION)) {
- System.arraycopy(mHits, 1, mHits, 0, mHits.length-1);
- mHits[mHits.length-1] = SystemClock.uptimeMillis();
- if (mHits[0] >= (SystemClock.uptimeMillis()-500)) {
- Intent intent = new Intent(Intent.ACTION_MAIN);
- intent.putExtra("is_cm", true);
- intent.setClassName("android",
- com.android.internal.app.PlatLogoActivity.class.getName());
- try {
- startActivity(intent);
- } catch (Exception e) {
- Log.e(LOG_TAG, "Unable to start activity " + intent.toString());
- }
- }
}
return super.onPreferenceTreeClick(preferenceScreen, preference);
}