diff options
author | AragaoAnderson <andersonaragao@me.com> | 2015-11-13 08:23:53 -0200 |
---|---|---|
committer | AragaoAnderson <andersonaragao@me.com> | 2015-11-13 08:38:59 -0200 |
commit | 90d92740177e8ea1a6b3afd2fd3ca39bcb75729d (patch) | |
tree | 9ac2a7ccf667e5b6d212da7da6b0caf1d106dd3e /src | |
parent | bed011ab78242f8d408d92a47fc3fc6fc281096e (diff) | |
download | packages_apps_Settings-90d92740177e8ea1a6b3afd2fd3ca39bcb75729d.zip packages_apps_Settings-90d92740177e8ea1a6b3afd2fd3ca39bcb75729d.tar.gz packages_apps_Settings-90d92740177e8ea1a6b3afd2fd3ca39bcb75729d.tar.bz2 |
Settings: Fix FC on Notification Light settings
AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.android.settings/com.android.settings.SubSettings}: java.lang.ClassCastException: com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference cannot be cast to com.android.settings.cyanogenmod.SystemSettingSwitchPreference
Change-Id: I3afa8bb4cfe9dcd76054b9c9bd9ba87a069f74e0
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/notificationlight/NotificationLightSettings.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/settings/notificationlight/NotificationLightSettings.java b/src/com/android/settings/notificationlight/NotificationLightSettings.java index ef40cee..3be69b9 100644 --- a/src/com/android/settings/notificationlight/NotificationLightSettings.java +++ b/src/com/android/settings/notificationlight/NotificationLightSettings.java @@ -46,6 +46,7 @@ import com.android.settings.R; import com.android.settings.SettingsPreferenceFragment; import com.android.settings.cyanogenmod.PackageListAdapter; import com.android.settings.cyanogenmod.PackageListAdapter.PackageItem; +import com.android.settings.cyanogenmod.CMSystemSettingSwitchPreference; import com.android.settings.cyanogenmod.SystemSettingSwitchPreference; import java.util.ArrayList; @@ -73,7 +74,7 @@ public class NotificationLightSettings extends SettingsPreferenceFragment implem private PackageManager mPackageManager; private PreferenceGroup mApplicationPrefList; private SystemSettingSwitchPreference mEnabledPref; - private SystemSettingSwitchPreference mCustomEnabledPref; + private CMSystemSettingSwitchPreference mCustomEnabledPref; private ApplicationLightPreference mDefaultPref; private ApplicationLightPreference mCallPref; private ApplicationLightPreference mVoicemailPref; @@ -111,7 +112,7 @@ public class NotificationLightSettings extends SettingsPreferenceFragment implem mEnabledPref = (SystemSettingSwitchPreference) findPreference(Settings.System.NOTIFICATION_LIGHT_PULSE); mEnabledPref.setOnPreferenceChangeListener(this); - mCustomEnabledPref = (SystemSettingSwitchPreference) + mCustomEnabledPref = (CMSystemSettingSwitchPreference) findPreference(CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE); mCustomEnabledPref.setOnPreferenceChangeListener(this); |