diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2012-07-16 16:51:26 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2012-07-16 16:51:26 +0200 |
commit | 114d348a0cf09562cebd1a8aa5216886fcdb590f (patch) | |
tree | f50b10e3320887e46631150576eb8845ad7eb666 /src/de/danoeh/antennapod | |
parent | b4241d59bdbf5c68079d606d822c3c31166f5461 (diff) | |
download | AntennaPod-114d348a0cf09562cebd1a8aa5216886fcdb590f.zip |
Reduced warnings
Diffstat (limited to 'src/de/danoeh/antennapod')
-rw-r--r-- | src/de/danoeh/antennapod/service/DownloadService.java | 9 | ||||
-rw-r--r-- | src/de/danoeh/antennapod/service/PlaybackService.java | 5 |
2 files changed, 6 insertions, 8 deletions
diff --git a/src/de/danoeh/antennapod/service/DownloadService.java b/src/de/danoeh/antennapod/service/DownloadService.java index 99e868bff..9da3b0d4a 100644 --- a/src/de/danoeh/antennapod/service/DownloadService.java +++ b/src/de/danoeh/antennapod/service/DownloadService.java @@ -27,7 +27,6 @@ import de.danoeh.antennapod.storage.DownloadRequester; import de.danoeh.antennapod.syndication.handler.FeedHandler; import de.danoeh.antennapod.syndication.handler.UnsupportedFeedtypeException; import de.danoeh.antennapod.util.DownloadError; -import android.R; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; @@ -164,13 +163,13 @@ public class DownloadService extends Service { PendingIntent.FLAG_UPDATE_CURRENT); Bitmap icon = BitmapFactory.decodeResource(null, - R.drawable.stat_notify_sync_noanim); + android.R.drawable.stat_notify_sync_noanim); notificationBuilder = new NotificationCompat.Builder(this) .setContentTitle("Downloading Podcast data") .setContentText( requester.getNumberOfDownloads() + " Downloads left") .setOngoing(true).setContentIntent(pIntent).setLargeIcon(icon) - .setSmallIcon(R.drawable.stat_notify_sync_noanim); + .setSmallIcon(android.R.drawable.stat_notify_sync_noanim); startForeground(NOTIFICATION_ID, notificationBuilder.getNotification()); Log.d(TAG, "Notification set up"); @@ -295,10 +294,10 @@ public class DownloadService extends Service { .setContentText( successfulDownloads + " Downloads succeeded, " + failedDownloads + " failed") - .setSmallIcon(R.drawable.stat_notify_sync) + .setSmallIcon(android.R.drawable.stat_notify_sync) .setLargeIcon( BitmapFactory.decodeResource(null, - R.drawable.stat_notify_sync)) + android.R.drawable.stat_notify_sync)) .setContentIntent( PendingIntent.getActivity(this, 0, new Intent(this, MainActivity.class), 0)) diff --git a/src/de/danoeh/antennapod/service/PlaybackService.java b/src/de/danoeh/antennapod/service/PlaybackService.java index 85118419b..355706bc9 100644 --- a/src/de/danoeh/antennapod/service/PlaybackService.java +++ b/src/de/danoeh/antennapod/service/PlaybackService.java @@ -2,7 +2,6 @@ package de.danoeh.antennapod.service; import java.io.IOException; -import android.R; import android.app.PendingIntent; import android.app.Service; import android.content.BroadcastReceiver; @@ -514,12 +513,12 @@ public class PlaybackService extends Service { PendingIntent.FLAG_UPDATE_CURRENT); Bitmap icon = BitmapFactory.decodeResource(null, - R.drawable.stat_notify_sdcard); + android.R.drawable.stat_notify_sdcard); notificationBuilder = new NotificationCompat.Builder(this) .setContentTitle("Mediaplayer Service") .setContentText("Click here for more info").setOngoing(true) .setContentIntent(pIntent).setLargeIcon(icon) - .setSmallIcon(R.drawable.stat_notify_sdcard); + .setSmallIcon(android.R.drawable.stat_notify_sdcard); startForeground(NOTIFICATION_ID, notificationBuilder.getNotification()); Log.d(TAG, "Notification set up"); |