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

Commit cf3c7cf3 authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Avoid graphics deadlock in DND mode.

(Workaround for bug 3031039; will fix by moving to new-style
animations)

Change-Id: I4fd65ac6f3266686eaa809dc1e7dfe46c7d59cd0
parent 998c01e7
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -281,6 +281,8 @@ public class TabletStatusBarService extends StatusBarService {
    }

    public void refreshNotificationTrigger() {
        if (mNotificationTrigger == null) return;

        int resId;
        boolean panel = (mNotificationPanel != null 
                && mNotificationPanel.getVisibility() == View.VISIBLE);
@@ -620,9 +622,7 @@ public class TabletStatusBarService extends StatusBarService {

    void onClickDoNotDisturb() {
        mNotificationsOn = !mNotificationsOn;
        setViewVisibility(mIconLayout,
                mNotificationsOn ? View.VISIBLE : View.INVISIBLE,
                mNotificationsOn ? R.anim.notification_dnd_off : R.anim.notification_dnd_on);
        mIconLayout.setVisibility(mNotificationsOn ? View.VISIBLE : View.INVISIBLE); // TODO: animation
        animateCollapse();
        refreshNotificationTrigger();
    }
@@ -632,9 +632,7 @@ public class TabletStatusBarService extends StatusBarService {
        if ((mDisabled & StatusBarManager.DISABLE_EXPAND) == 0) {
            if (!mNotificationsOn) {
                mNotificationsOn = true;
                setViewVisibility(mIconLayout,
                        View.VISIBLE,
                        R.anim.notification_dnd_off);
                mIconLayout.setVisibility(View.VISIBLE); // TODO: animation
                refreshNotificationTrigger();
            } else {
                int msg = (mNotificationPanel.getVisibility() == View.GONE)