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

Commit 7ed267f5 authored by Michael Jurka's avatar Michael Jurka
Browse files

Fix one case where recents is sometimes not visible

Bug: 7299653
parent 6be35dd6
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -205,4 +205,8 @@ public class RecentsActivity extends Activity {
    boolean isForeground() {
        return mForeground;
    }

    boolean isActivityShowing() {
         return mShowing;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -579,7 +579,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
        } else {
            mRecentTaskDescriptions.addAll(tasks);
        }
        if (((RecentsActivity)mContext).isForeground()) {
        if (((RecentsActivity) mContext).isActivityShowing()) {
            refreshViews();
        }
    }