Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1f63f63 authored by Aurimas Liutikas's avatar Aurimas Liutikas
Browse files

Suppress deprecation warnings

Fixing the use of the deprecated methods is already tracked by the
bug, there is no need to have additional build noise.

Bug: 121388507
Test: make -j SystemUI
Change-Id: I1c02e9244e34e29f7257c01e02444e021be69a82
parent c54ffd28
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)
                        }
+3 −0
Original line number Diff line number Diff line
@@ -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)