summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2020-10-14 10:29:41 -0700
committer Mady Mellor <madym@google.com> 2020-10-14 10:29:41 -0700
commita2b14a770a6040c56bb64c954619e73d87413a4f (patch)
tree40d712d26bb0bbda04139a283fbb708aaa33d4a7
parent02e40de6d36493f7db14a731024c8a42fc800d8b (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt b/packages/SystemUI/src/com/android/systemui/bubbles/StackEducationView.kt
index 9e7a2fb68d58..216df2e1f402 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()
}
}