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

Commit b84e4c0b authored by Alejandro Nijamkin's avatar Alejandro Nijamkin Committed by Colin Cross
Browse files

Fixes @Nullable issues in System UI and WMShell.

Test: followed these steps:
1. Patched in https://r.android.com/2688146
2. m sysuig
3. Fix compilation issues
4. Repeat 2 and 3 until done

Fix: 294098415
Change-Id: I74cc61fd87819be7302590d788c3c230bff57544
Merged-In: I74cc61fd87819be7302590d788c3c230bff57544
(cherry picked from commit 162280b4)
parent b902e0b9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@ constructor(
    private val keyguardUpdateMonitor: KeyguardUpdateMonitor,
    private val faceAuthInteractor: KeyguardFaceAuthInteractor,
) : View.AccessibilityDelegate() {
    override fun onInitializeAccessibilityNodeInfo(host: View?, info: AccessibilityNodeInfo) {
    override fun onInitializeAccessibilityNodeInfo(host: View, info: AccessibilityNodeInfo) {
        super.onInitializeAccessibilityNodeInfo(host, info)
        if (keyguardUpdateMonitor.shouldListenForFace()) {
            val clickActionToRetryFace =
@@ -52,7 +52,7 @@ constructor(
        }
    }

    override fun performAccessibilityAction(host: View?, action: Int, args: Bundle?): Boolean {
    override fun performAccessibilityAction(host: View, action: Int, args: Bundle?): Boolean {
        return if (action == AccessibilityNodeInfo.AccessibilityAction.ACTION_CLICK.id) {
            keyguardUpdateMonitor.requestFaceAuth(FaceAuthApiRequestReason.ACCESSIBILITY_ACTION)
            faceAuthInteractor.onAccessibilityAction()