From e6d60877b201e911752f74db556c44db6c4838d7 Mon Sep 17 00:00:00 2001 From: Adrian Roos Date: Mon, 14 Mar 2016 23:08:34 -0700 Subject: [PATCH] Fix NotificationLockscreenPreference Remote-Input-on-Lockscreen setting was inverted. Bug: 27638447 Change-Id: I4ca17854dae7c6a47e4fe22be2e862e96742f457 --- .../notification/NotificationLockscreenPreference.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/notification/NotificationLockscreenPreference.java b/src/com/android/settings/notification/NotificationLockscreenPreference.java index 34770da247f..39b9c5d2d07 100644 --- a/src/com/android/settings/notification/NotificationLockscreenPreference.java +++ b/src/com/android/settings/notification/NotificationLockscreenPreference.java @@ -61,7 +61,7 @@ public class NotificationLockscreenPreference extends RestrictedListPreference { super.onDialogCreated(dialog); dialog.create(); CheckBox view = (CheckBox) dialog.findViewById(R.id.lockscreen_remote_input); - view.setChecked(mAllowRemoteInput); + view.setChecked(!mAllowRemoteInput); view.setOnCheckedChangeListener(mListener); View panel = dialog.findViewById(com.android.internal.R.id.customPanel); panel.setVisibility(checkboxVisibilityForSelectedIndex(mInitialIndex, mShowRemoteInput)); @@ -112,7 +112,7 @@ public class NotificationLockscreenPreference extends RestrictedListPreference { @Override public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { - mAllowRemoteInput = isChecked; + mAllowRemoteInput = !isChecked; } public void setView(View view) {