4949import android .view .View ;
5050import android .view .ViewGroup ;
5151import android .view .WindowManager ;
52- import android .view .animation .AccelerateInterpolator ;
53- import android .view .animation .DecelerateInterpolator ;
5452import android .view .animation .Interpolator ;
5553import android .widget .FrameLayout ;
5654import android .widget .ImageView ;
@@ -131,8 +129,8 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
131129 // Show the intermediate notification
132130 mTickerAddSpace = !mTickerAddSpace ;
133131 mNotificationId = nId ;
132+ mNotificationManager = nManager ;
134133 mNotificationBuilder = new Notification .Builder (context )
135- .setLargeIcon (croppedIcon )
136134 .setTicker (r .getString (R .string .screenshot_saving_ticker )
137135 + (mTickerAddSpace ? " " : "" ))
138136 .setContentTitle (r .getString (R .string .screenshot_saving_title ))
@@ -141,9 +139,12 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
141139 .setWhen (System .currentTimeMillis ());
142140 Notification n = mNotificationBuilder .getNotification ();
143141 n .flags |= Notification .FLAG_NO_CLEAR ;
144-
145- mNotificationManager = nManager ;
146142 mNotificationManager .notify (nId , n );
143+
144+ // On the tablet, the large icon makes the notification appear as if it is clickable (and
145+ // on small devices, the large icon is not shown) so defer showing the large icon until
146+ // we compose the final post-save notification below.
147+ mNotificationBuilder .setLargeIcon (croppedIcon );
147148 }
148149
149150 @ Override
0 commit comments