diff options
Diffstat (limited to 'src/com/android/providers/downloads/DownloadNotification.java')
-rw-r--r-- | src/com/android/providers/downloads/DownloadNotification.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/com/android/providers/downloads/DownloadNotification.java b/src/com/android/providers/downloads/DownloadNotification.java index 90c8693b..4d615df7 100644 --- a/src/com/android/providers/downloads/DownloadNotification.java +++ b/src/com/android/providers/downloads/DownloadNotification.java @@ -138,8 +138,10 @@ class DownloadNotification { item.addItem(title, progress, max); mNotifications.put(packageName, item); } - if (hasPausedReason(download) && item.mPausedText == null) { - item.mPausedText = download.mPausedReason; + if (download.mStatus == Downloads.Impl.STATUS_QUEUED_FOR_WIFI + && item.mPausedText == null) { + item.mPausedText = mContext.getResources().getString( + R.string.notification_need_wifi_for_size); } } @@ -205,10 +207,6 @@ class DownloadNotification { } } - private boolean hasPausedReason(DownloadInfo download) { - return download.mStatus == Downloads.STATUS_RUNNING_PAUSED && download.mPausedReason != null; - } - private void updateCompletedNotification(Collection<DownloadInfo> downloads) { for (DownloadInfo download : downloads) { if (!isCompleteAndVisible(download)) { |