am a843ebe9: am 540720e1: am 7ed267f5: Fix one case where recents is sometimes not visible

* commit 'a843ebe9437d1188a6fb4884f353c97fbd6ec443':
  Fix one case where recents is sometimes not visible
This commit is contained in:
Michael Jurka
2012-10-09 08:54:03 -07:00
committed by Android Git Automerger
2 changed files with 5 additions and 1 deletions

View File

@@ -205,4 +205,8 @@ public class RecentsActivity extends Activity {
boolean isForeground() {
return mForeground;
}
boolean isActivityShowing() {
return mShowing;
}
}

View File

@@ -579,7 +579,7 @@ public class RecentsPanelView extends FrameLayout implements OnItemClickListener
} else {
mRecentTaskDescriptions.addAll(tasks);
}
if (((RecentsActivity)mContext).isForeground()) {
if (((RecentsActivity) mContext).isActivityShowing()) {
refreshViews();
}
}