* commit 'a843ebe9437d1188a6fb4884f353c97fbd6ec443': Fix one case where recents is sometimes not visible
This commit is contained in:
@@ -205,4 +205,8 @@ public class RecentsActivity extends Activity {
|
||||
boolean isForeground() {
|
||||
return mForeground;
|
||||
}
|
||||
|
||||
boolean isActivityShowing() {
|
||||
return mShowing;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -579,7 +579,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
|
||||
} else {
|
||||
mRecentTaskDescriptions.addAll(tasks);
|
||||
}
|
||||
if (((RecentsActivity)mContext).isForeground()) {
|
||||
if (((RecentsActivity) mContext).isActivityShowing()) {
|
||||
refreshViews();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user