Merge "add sensitive content protection flag to developer option" into main

This commit is contained in:
Manjeet Rulhania
2024-02-24 00:52:16 +00:00
committed by Android (Google) Code Review
2 changed files with 12 additions and 2 deletions

View File

@@ -18,6 +18,7 @@ package com.android.settings.development
import android.content.Context
import android.permission.flags.Flags.sensitiveNotificationAppProtection
import android.provider.Settings
import android.view.flags.Flags.sensitiveContentAppProtection
import androidx.annotation.VisibleForTesting
import androidx.preference.Preference
import androidx.preference.TwoStatePreference
@@ -64,6 +65,7 @@ class SensitiveContentProtectionPreferenceController(val context: Context) :
override fun isAvailable(): Boolean {
return sensitiveNotificationAppProtection() || screenshareNotificationHiding()
|| sensitiveContentAppProtection()
}
companion object {