Searched refs:autoRevokeSwitch (Results 1 – 2 of 2) sorted by relevance
404 SwitchPreference autoRevokeSwitch = in addAutoRevokePreferences() local407 autoRevokeSwitch.setOnPreferenceClickListener((preference) -> { in addAutoRevokePreferences()408 mViewModel.setAutoRevoke(autoRevokeSwitch.isChecked()); in addAutoRevokePreferences()414 autoRevokeSwitch.setSummary(R.string.auto_revoke_summary); in addAutoRevokePreferences()415 autoRevokeSwitch.setKey(AUTO_REVOKE_SWITCH_KEY); in addAutoRevokePreferences()421 unusedAppsCategory.addPreference(autoRevokeSwitch); in addAutoRevokePreferences()424 screen.addPreference(autoRevokeSwitch); in addAutoRevokePreferences()431 if (state == null || autoRevokeSwitch == null) { in setAutoRevokeToggleState()438 autoRevokeSwitch.setVisible(false); in setAutoRevokeToggleState()444 autoRevokeSwitch.setVisible(true); in setAutoRevokeToggleState()[all …]
402 SwitchPreference autoRevokeSwitch = new SwitchPreference(context); in addAutoRevokePreferences() local403 autoRevokeSwitch.setOnPreferenceClickListener((preference) -> { in addAutoRevokePreferences()404 mViewModel.setAutoRevoke(autoRevokeSwitch.isChecked()); in addAutoRevokePreferences()407 autoRevokeSwitch.setTitle(isHibernationEnabled() ? R.string.unused_apps_label in addAutoRevokePreferences()409 autoRevokeSwitch.setKey(AUTO_REVOKE_SWITCH_KEY); in addAutoRevokePreferences()410 autoRevokeCategory.addPreference(autoRevokeSwitch); in addAutoRevokePreferences()431 SwitchPreference autoRevokeSwitch = autoRevokeCategory.findPreference( in setAutoRevokeToggleState() local438 autoRevokeSwitch.setVisible(false); in setAutoRevokeToggleState()443 autoRevokeSwitch.setVisible(true); in setAutoRevokeToggleState()445 autoRevokeSwitch.setChecked(state.isEnabledForApp()); in setAutoRevokeToggleState()