From: Mady Mellor Date: Thu, 18 Jul 2019 21:13:05 +0000 (-0700) Subject: Use the Global value rather than the Secure value X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=22c920cc0168bee0c6153d1cf51a86ed4dccc1f6;p=android-x86%2Fpackages-apps-Settings.git Use the Global value rather than the Secure value Fixes: 137876221 Test: manual - have setting in dev options turned off, post a bubble => no bubble appears - have setting in dev options turned on, post a bubble => bubble appears Change-Id: I4490b978059a73b45fa8d09bf28e05965f42eec1 --- diff --git a/src/com/android/settings/development/BubbleGlobalPreferenceController.java b/src/com/android/settings/development/BubbleGlobalPreferenceController.java index 86d7be1046..2f22d098f4 100644 --- a/src/com/android/settings/development/BubbleGlobalPreferenceController.java +++ b/src/com/android/settings/development/BubbleGlobalPreferenceController.java @@ -16,8 +16,6 @@ package com.android.settings.development; -import static android.provider.Settings.Secure.NOTIFICATION_BUBBLES; - import android.content.Context; import android.provider.Settings; @@ -42,7 +40,7 @@ public class BubbleGlobalPreferenceController extends DeveloperOptionsPreference @Override public String getPreferenceKey() { - return NOTIFICATION_BUBBLES; + return Settings.Global.NOTIFICATION_BUBBLES; } @Override @@ -64,12 +62,12 @@ public class BubbleGlobalPreferenceController extends DeveloperOptionsPreference } private boolean isEnabled() { - return Settings.Secure.getInt(mContext.getContentResolver(), - NOTIFICATION_BUBBLES, OFF) == ON; + return Settings.Global.getInt(mContext.getContentResolver(), + Settings.Global.NOTIFICATION_BUBBLES, OFF) == ON; } private void writeSetting(boolean isEnabled) { - Settings.Secure.putInt(mContext.getContentResolver(), - NOTIFICATION_BUBBLES, isEnabled ? ON : OFF); + Settings.Global.putInt(mContext.getContentResolver(), + Settings.Global.NOTIFICATION_BUBBLES, isEnabled ? ON : OFF); } }