Searched refs:alwaysWarn (Results 1 – 1 of 1) sorted by relevance
104 CheckBox alwaysWarn = dialogView.findViewById(R.id.always_warn); in onCreateDialog() local109 alwaysWarn.setChecked(preferences.getBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, false)); in onCreateDialog()117 (dialog, which) -> onPositiveButtonClick(preferences, alwaysWarn.isChecked())) in onCreateDialog()120 (dialog, which) -> onNegativeButtonClick(preferences, alwaysWarn.isChecked())) in onCreateDialog()127 private void onPositiveButtonClick(@NonNull SharedPreferences preferences, boolean alwaysWarn) { in onPositiveButtonClick() argument131 alwaysWarn); in onPositiveButtonClick()132 preferences.edit().putBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, alwaysWarn).apply(); in onPositiveButtonClick()138 private void onNegativeButtonClick(@NonNull SharedPreferences preferences, boolean alwaysWarn) { in onNegativeButtonClick() argument142 alwaysWarn); in onNegativeButtonClick()143 preferences.edit().putBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, alwaysWarn).apply(); in onNegativeButtonClick()