Moved drawables from sdk folder into drawables folder
After Width: | Height: | Size: 1012 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 674 B |
After Width: | Height: | Size: 708 B |
After Width: | Height: | Size: 732 B |
After Width: | Height: | Size: 746 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
|
@ -199,8 +199,8 @@ public class DownloadService extends Service {
|
||||||
this, DownloadActivity.class),
|
this, DownloadActivity.class),
|
||||||
PendingIntent.FLAG_UPDATE_CURRENT);
|
PendingIntent.FLAG_UPDATE_CURRENT);
|
||||||
|
|
||||||
Bitmap icon = BitmapFactory.decodeResource(null,
|
Bitmap icon = BitmapFactory.decodeResource(getResources(),
|
||||||
android.R.drawable.stat_notify_sync_noanim);
|
R.drawable.stat_notify_sync);
|
||||||
notificationBuilder = new NotificationCompat.Builder(this)
|
notificationBuilder = new NotificationCompat.Builder(this)
|
||||||
.setContentTitle(
|
.setContentTitle(
|
||||||
getString(R.string.download_notification_title))
|
getString(R.string.download_notification_title))
|
||||||
|
@ -208,7 +208,7 @@ public class DownloadService extends Service {
|
||||||
requester.getNumberOfDownloads()
|
requester.getNumberOfDownloads()
|
||||||
+ getString(R.string.downloads_left))
|
+ getString(R.string.downloads_left))
|
||||||
.setOngoing(true).setContentIntent(pIntent).setLargeIcon(icon)
|
.setOngoing(true).setContentIntent(pIntent).setLargeIcon(icon)
|
||||||
.setSmallIcon(android.R.drawable.stat_notify_sync_noanim);
|
.setSmallIcon(R.drawable.stat_notify_sync);
|
||||||
|
|
||||||
startForeground(NOTIFICATION_ID, notificationBuilder.getNotification());
|
startForeground(NOTIFICATION_ID, notificationBuilder.getNotification());
|
||||||
if (AppConfig.DEBUG)
|
if (AppConfig.DEBUG)
|
||||||
|
@ -445,10 +445,10 @@ public class DownloadService extends Service {
|
||||||
String.format(
|
String.format(
|
||||||
getString(R.string.download_report_content),
|
getString(R.string.download_report_content),
|
||||||
successfulDownloads, failedDownloads))
|
successfulDownloads, failedDownloads))
|
||||||
.setSmallIcon(android.R.drawable.stat_notify_sync)
|
.setSmallIcon(R.drawable.stat_notify_sync)
|
||||||
.setLargeIcon(
|
.setLargeIcon(
|
||||||
BitmapFactory.decodeResource(null,
|
BitmapFactory.decodeResource(getResources(),
|
||||||
android.R.drawable.stat_notify_sync))
|
R.drawable.stat_notify_sync))
|
||||||
.setContentIntent(
|
.setContentIntent(
|
||||||
PendingIntent.getActivity(this, 0, new Intent(this,
|
PendingIntent.getActivity(this, 0, new Intent(this,
|
||||||
DownloadLogActivity.class), 0))
|
DownloadLogActivity.class), 0))
|
||||||
|
|