Skip to content

Commit 7ed267f

Browse files
committed
Fix one case where recents is sometimes not visible
Bug: 7299653
1 parent 6be35dd commit 7ed267f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/SystemUI/src/com/android/systemui/recent/RecentsActivity.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,8 @@ private void handleIntent(Intent intent) {
205205
boolean isForeground() {
206206
return mForeground;
207207
}
208+
209+
boolean isActivityShowing() {
210+
return mShowing;
211+
}
208212
}

packages/SystemUI/src/com/android/systemui/recent/RecentsPanelView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ public void onTasksLoaded(ArrayList<TaskDescription> tasks, boolean firstScreenf
579579
} else {
580580
mRecentTaskDescriptions.addAll(tasks);
581581
}
582-
if (((RecentsActivity)mContext).isForeground()) {
582+
if (((RecentsActivity) mContext).isActivityShowing()) {
583583
refreshViews();
584584
}
585585
}

0 commit comments

Comments
 (0)