summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2011-11-15 13:11:14 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-11-15 13:11:14 -0800
commit92c2fbd704ea5093c103602574eefc78e923ad86 (patch)
tree7b9d157ad488faaa2f240e7abf07a34fb0414638 /packages
parentd296b167629fcdcdfbcb6ac105900085ae6e59f4 (diff)
parent9ebb030ad9eeb94bdf9e15b7a3f55d9792dda96b (diff)
downloadframeworks_base-92c2fbd704ea5093c103602574eefc78e923ad86.zip
frameworks_base-92c2fbd704ea5093c103602574eefc78e923ad86.tar.gz
frameworks_base-92c2fbd704ea5093c103602574eefc78e923ad86.tar.bz2
am 9ebb030a: am e5129d7f: Merge "Defer adding large icon until when we compose the final notification. (Bug 5566846)" into ics-mr1
* commit '9ebb030ad9eeb94bdf9e15b7a3f55d9792dda96b': Defer adding large icon until when we compose the final notification. (Bug 5566846)
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
index c259c28..ad37603 100644
--- a/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
+++ b/packages/SystemUI/src/com/android/systemui/screenshot/GlobalScreenshot.java
@@ -49,8 +49,6 @@ import android.view.Surface;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowManager;
-import android.view.animation.AccelerateInterpolator;
-import android.view.animation.DecelerateInterpolator;
import android.view.animation.Interpolator;
import android.widget.FrameLayout;
import android.widget.ImageView;
@@ -131,8 +129,8 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
// Show the intermediate notification
mTickerAddSpace = !mTickerAddSpace;
mNotificationId = nId;
+ mNotificationManager = nManager;
mNotificationBuilder = new Notification.Builder(context)
- .setLargeIcon(croppedIcon)
.setTicker(r.getString(R.string.screenshot_saving_ticker)
+ (mTickerAddSpace ? " " : ""))
.setContentTitle(r.getString(R.string.screenshot_saving_title))
@@ -141,9 +139,12 @@ class SaveImageInBackgroundTask extends AsyncTask<SaveImageInBackgroundData, Voi
.setWhen(System.currentTimeMillis());
Notification n = mNotificationBuilder.getNotification();
n.flags |= Notification.FLAG_NO_CLEAR;
-
- mNotificationManager = nManager;
mNotificationManager.notify(nId, n);
+
+ // On the tablet, the large icon makes the notification appear as if it is clickable (and
+ // on small devices, the large icon is not shown) so defer showing the large icon until
+ // we compose the final post-save notification below.
+ mNotificationBuilder.setLargeIcon(croppedIcon);
}
@Override