Merge "Fix NotificationLockscreenPreference" into nyc-dev

am: af0d3952c8

* commit 'af0d3952c803ac1e654b4f49c2829dadf9a5ef06':
  Fix NotificationLockscreenPreference
This commit is contained in:
Adrian Roos
2016-03-15 23:46:16 +00:00
committed by android-build-merger

View File

@@ -61,7 +61,7 @@ public class NotificationLockscreenPreference extends RestrictedListPreference {
super.onDialogCreated(dialog); super.onDialogCreated(dialog);
dialog.create(); dialog.create();
CheckBox view = (CheckBox) dialog.findViewById(R.id.lockscreen_remote_input); CheckBox view = (CheckBox) dialog.findViewById(R.id.lockscreen_remote_input);
view.setChecked(mAllowRemoteInput); view.setChecked(!mAllowRemoteInput);
view.setOnCheckedChangeListener(mListener); view.setOnCheckedChangeListener(mListener);
View panel = dialog.findViewById(com.android.internal.R.id.customPanel); View panel = dialog.findViewById(com.android.internal.R.id.customPanel);
panel.setVisibility(checkboxVisibilityForSelectedIndex(mInitialIndex, mShowRemoteInput)); panel.setVisibility(checkboxVisibilityForSelectedIndex(mInitialIndex, mShowRemoteInput));
@@ -112,7 +112,7 @@ public class NotificationLockscreenPreference extends RestrictedListPreference {
@Override @Override
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
mAllowRemoteInput = isChecked; mAllowRemoteInput = !isChecked;
} }
public void setView(View view) { public void setView(View view) {