Hide the Perform Backup Tasks Settings page.
Since we are now hiding the new RUN_BACKUP_JOBS permission, hide the associated special app access page in Settings. Bug: 331272951 Test: BackupTasksAppsPreferenceControllerTest Test: visual (Settings pages) Change-Id: I875b286798f48ee4e94d5e37c1b21bb84acf390d
This commit is contained in:
@@ -19,14 +19,11 @@ package com.android.settings.spa.app.specialaccess
|
||||
import android.content.Context
|
||||
import androidx.preference.Preference
|
||||
import com.android.settings.core.BasePreferenceController
|
||||
import com.android.settings.flags.Flags
|
||||
import com.android.settings.spa.SpaActivity.Companion.startSpaActivity
|
||||
|
||||
class BackupTasksAppsPreferenceController(context: Context, preferenceKey: String) :
|
||||
BasePreferenceController(context, preferenceKey) {
|
||||
override fun getAvailabilityStatus() =
|
||||
if (Flags.enablePerformBackupTasksInSettings()) AVAILABLE
|
||||
else CONDITIONALLY_UNAVAILABLE
|
||||
override fun getAvailabilityStatus() = CONDITIONALLY_UNAVAILABLE
|
||||
|
||||
override fun handlePreferenceTreeClick(preference: Preference): Boolean {
|
||||
if (preference.key == mPreferenceKey) {
|
||||
|
||||
Reference in New Issue
Block a user