@@ -83,6 +83,7 @@ public class RecentsPanelView extends RelativeLayout
8383 private int mIconDpi ;
8484 private View mRecentsScrim ;
8585 private View mRecentsGlowView ;
86+ private View mRecentsNoApps ;
8687 private ViewGroup mRecentsContainer ;
8788 private Bitmap mDefaultThumbnailBackground ;
8889
@@ -373,8 +374,9 @@ protected void onFinishInflate() {
373374
374375
375376 mRecentsGlowView = findViewById (R .id .recents_glow );
376- mRecentsScrim = (View ) findViewById (R .id .recents_bg_protect );
377- mChoreo = new Choreographer (this , mRecentsScrim , mRecentsGlowView , this );
377+ mRecentsScrim = findViewById (R .id .recents_bg_protect );
378+ mRecentsNoApps = findViewById (R .id .recents_no_apps );
379+ mChoreo = new Choreographer (this , mRecentsScrim , mRecentsGlowView , mRecentsNoApps , this );
378380 mRecentsDismissButton = findViewById (R .id .recents_dismiss_button );
379381 mRecentsDismissButton .setOnClickListener (new OnClickListener () {
380382 public void onClick (View v ) {
@@ -581,6 +583,9 @@ private void refreshApplicationList() {
581583 mThumbnailLoader .cancel (false );
582584 mThumbnailLoader = null ;
583585 }
586+ if (mRecentsNoApps != null ) { // doesn't exist on large devices
587+ mRecentsNoApps .setVisibility (View .INVISIBLE );
588+ }
584589 mActivityDescriptions = getRecentTasks ();
585590 for (ActivityDescription ad : mActivityDescriptions ) {
586591 ad .setThumbnail (mDefaultThumbnailBackground );
@@ -647,7 +652,11 @@ protected Void doInBackground(Void... params) {
647652 } else {
648653 // Immediately hide this panel
649654 if (DEBUG ) Log .v (TAG , "Nothing to show" );
650- hide (false );
655+ if (mRecentsNoApps != null ) { // doesn't exist on large devices
656+ mRecentsNoApps .setVisibility (View .VISIBLE );
657+ } else {
658+ hide (false );
659+ }
651660 }
652661 }
653662
0 commit comments