mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-01 06:45:19 +00:00
Ensure enable autofill checkbox appearance matches setting
This commit is contained in:
@@ -212,14 +212,15 @@ public class UserPreference extends AppCompatActivity {
|
|||||||
startActivity(intent);
|
startActivity(intent);
|
||||||
}
|
}
|
||||||
}).
|
}).
|
||||||
setNegativeButton(R.string.dialog_cancel,new DialogInterface.OnClickListener() {
|
setNegativeButton(R.string.dialog_cancel, null).
|
||||||
|
setOnDismissListener(new DialogInterface.OnDismissListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialog, int which) {
|
public void onDismiss(DialogInterface dialog) {
|
||||||
((CheckBoxPreference) findPreference("autofill_enable"))
|
((CheckBoxPreference) findPreference("autofill_enable"))
|
||||||
.setChecked(((UserPreference) getActivity()).isServiceEnabled());
|
.setChecked(((UserPreference) getActivity()).isServiceEnabled());
|
||||||
}
|
}
|
||||||
}).show();
|
}).show();
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user