summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMatthew Wong <wongma@protonmail.ch>2015-08-14 17:00:28 -0400
committerMatthew Wong <wongma@protonmail.ch>2015-08-14 17:38:18 -0400
commit5caa665111e1e3852a8fafd207e876f346492f9e (patch)
tree90ea10aa1e37151b58e61a51bc26850d55e5771e /app
parentebe1f831e7659b63b76c2b39498b68d1fec61673 (diff)
Ensure enable autofill checkbox appearance matches setting
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/UserPreference.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
index 283d5f47..b034ba82 100644
--- a/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
+++ b/app/src/main/java/com/zeapo/pwdstore/UserPreference.java
@@ -212,14 +212,15 @@ public class UserPreference extends AppCompatActivity {
startActivity(intent);
}
}).
- setNegativeButton(R.string.dialog_cancel,new DialogInterface.OnClickListener() {
+ setNegativeButton(R.string.dialog_cancel, null).
+ setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
- public void onClick(DialogInterface dialog, int which) {
+ public void onDismiss(DialogInterface dialog) {
((CheckBoxPreference) findPreference("autofill_enable"))
.setChecked(((UserPreference) getActivity()).isServiceEnabled());
}
}).show();
- return false;
+ return true;
}
});
}