From 114d348a0cf09562cebd1a8aa5216886fcdb590f Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Mon, 16 Jul 2012 16:51:26 +0200 Subject: Reduced warnings --- src/de/danoeh/antennapod/service/DownloadService.java | 9 ++++----- src/de/danoeh/antennapod/service/PlaybackService.java | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) (limited to 'src/de/danoeh/antennapod') 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"); -- cgit v1.2.3