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

Commit 9bf87593 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AOD: prevent clicking shelf when dark"

parents 861a0f91 ed3af783
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -133,6 +133,7 @@ public class NotificationShelf extends ActivatableNotificationView implements
            mViewInvertHelper.update(dark);
        }
        mShelfIcons.setAmbient(dark);
        updateInteractiveness();
    }

    @Override
@@ -576,7 +577,8 @@ public class NotificationShelf extends ActivatableNotificationView implements
    }

    private void updateInteractiveness() {
        mInteractive = mStatusBarState == StatusBarState.KEYGUARD && mHasItemsInStableShelf;
        mInteractive = mStatusBarState == StatusBarState.KEYGUARD && mHasItemsInStableShelf
                && !mDark;
        setClickable(mInteractive);
        setFocusable(mInteractive);
        setImportantForAccessibility(mInteractive ? View.IMPORTANT_FOR_ACCESSIBILITY_YES