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

Commit 96ea9778 authored by Steve Kondik's avatar Steve Kondik
Browse files

systemui: Fix recent apps on tablets

 * mRecentAppsDirty is not reset when there are no apps to show
 * The view is set to INVISIBLE, not GONE in some cases

Change-Id: I45d33da0c6af06853e3e76e05c9c34c6e7005b63
parent 34e43399
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ public class RecentsPanelView extends RelativeLayout implements OnItemClickListe
            } else {
                if (noApps) {
                    if (DEBUG) Log.v(TAG, "Nothing to show");
                    mRecentTasksDirty = true;
                    return;
                }
            }
+1 −5
Original line number Diff line number Diff line
@@ -1262,11 +1262,7 @@ public class TabletStatusBar extends StatusBar implements
    public void onClickRecentButton() {
        if (DEBUG) Slog.d(TAG, "clicked recent apps; disabled=" + mDisabled);
        if ((mDisabled & StatusBarManager.DISABLE_EXPAND) == 0) {
            int msg = (mRecentsPanel.getVisibility() == View.GONE)
                ? MSG_OPEN_RECENTS_PANEL
                : MSG_CLOSE_RECENTS_PANEL;
            mHandler.removeMessages(msg);
            mHandler.sendEmptyMessage(msg);
            toggleRecentApps();
        }
    }