From a2b14a770a6040c56bb64c954619e73d87413a4f Mon Sep 17 00:00:00 2001 From: Mady Mellor Date: Wed, 14 Oct 2020 10:29:41 -0700 Subject: [PATCH] Fix stack education showing every time A small regression from the recent migration changes. Test: manual - new flash, post some bubbles, notice you see stack education for first tap on the stack but not subsequent taps Bug: 161980186 Change-Id: Ia3fda22e002a3cdbef085ceb6c1d7dd58e1d939a --- .../src/com/android/systemui/bubbles/StackEducationView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt b/packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt index 9e7a2fb68d58e..216df2e1f402a 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt +++ b/packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt @@ -128,7 +128,7 @@ class StackEducationView constructor(context: Context) : LinearLayout(context) { private fun setShouldShow(shouldShow: Boolean) { context.getSharedPreferences(context.packageName, Context.MODE_PRIVATE) - .edit().putBoolean(PREF_MANAGED_EDUCATION, !shouldShow).apply() + .edit().putBoolean(PREF_STACK_EDUCATION, !shouldShow).apply() } }