Loading packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyDialog.kt +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ class OngoingPrivacyDialog constructor( object : DialogInterface.OnClickListener { val intent = Intent(Intent.ACTION_REVIEW_PERMISSION_USAGE) @Suppress("DEPRECATION") override fun onClick(dialog: DialogInterface?, which: Int) { Dependency.get(ActivityStarter::class.java).startActivity(intent, false) } Loading packages/SystemUI/src/com/android/systemui/privacy/PrivacyItemController.kt +3 −0 Original line number Diff line number Diff line Loading @@ -46,10 +46,13 @@ class PrivacyItemController(val context: Context, val callback: Callback) { } private var privacyList = emptyList<PrivacyItem>() @Suppress("DEPRECATION") private val appOpsController = Dependency.get(AppOpsController::class.java) private val userManager = context.getSystemService(UserManager::class.java) private var currentUserIds = emptyList<Int>() @Suppress("DEPRECATION") private val bgHandler = Handler(Dependency.get(Dependency.BG_LOOPER)) @Suppress("DEPRECATION") private val uiHandler = Dependency.get(Dependency.MAIN_HANDLER) private var listening = false val systemApp = PrivacyApplication(context.getString(R.string.device_services), context) Loading Loading
packages/SystemUI/src/com/android/systemui/privacy/OngoingPrivacyDialog.kt +1 −0 Original line number Diff line number Diff line Loading @@ -50,6 +50,7 @@ class OngoingPrivacyDialog constructor( object : DialogInterface.OnClickListener { val intent = Intent(Intent.ACTION_REVIEW_PERMISSION_USAGE) @Suppress("DEPRECATION") override fun onClick(dialog: DialogInterface?, which: Int) { Dependency.get(ActivityStarter::class.java).startActivity(intent, false) } Loading
packages/SystemUI/src/com/android/systemui/privacy/PrivacyItemController.kt +3 −0 Original line number Diff line number Diff line Loading @@ -46,10 +46,13 @@ class PrivacyItemController(val context: Context, val callback: Callback) { } private var privacyList = emptyList<PrivacyItem>() @Suppress("DEPRECATION") private val appOpsController = Dependency.get(AppOpsController::class.java) private val userManager = context.getSystemService(UserManager::class.java) private var currentUserIds = emptyList<Int>() @Suppress("DEPRECATION") private val bgHandler = Handler(Dependency.get(Dependency.BG_LOOPER)) @Suppress("DEPRECATION") private val uiHandler = Dependency.get(Dependency.MAIN_HANDLER) private var listening = false val systemApp = PrivacyApplication(context.getString(R.string.device_services), context) Loading