From 114d348a0cf09562cebd1a8aa5216886fcdb590f Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Mon, 16 Jul 2012 16:51:26 +0200 Subject: [PATCH] Reduced warnings --- res/layout/cover_fragment.xml | 1 - res/layout/feedinfo.xml | 16 +++++++--------- res/layout/feedlist.xml | 4 ++-- res/menu/feeditem.xml | 19 +++++++------------ res/values/strings.xml | 9 ++++----- .../antennapod/service/DownloadService.java | 9 ++++----- .../antennapod/service/PlaybackService.java | 5 ++--- 7 files changed, 26 insertions(+), 37 deletions(-) diff --git a/res/layout/cover_fragment.xml b/res/layout/cover_fragment.xml index 983d14924..3824283da 100644 --- a/res/layout/cover_fragment.xml +++ b/res/layout/cover_fragment.xml @@ -35,7 +35,6 @@ android:layout_alignParentTop="false" android:layout_below="@id/txtvFeed" android:layout_gravity="center" - android:layout_weight="1" android:orientation="vertical" > + android:text="@string/author_label" + android:textStyle="bold" /> + android:text="@string/language_label" + android:textStyle="bold" /> + app:layout_row="2" /> + app:layout_rowSpan="2" /> diff --git a/res/layout/feedlist.xml b/res/layout/feedlist.xml index 3e7b01bcf..88a2de329 100644 --- a/res/layout/feedlist.xml +++ b/res/layout/feedlist.xml @@ -6,10 +6,10 @@ + android:text="@string/nofeeds_msg"/> diff --git a/res/menu/feeditem.xml b/res/menu/feeditem.xml index 5fcaed2c3..b18f65f4b 100644 --- a/res/menu/feeditem.xml +++ b/res/menu/feeditem.xml @@ -4,32 +4,33 @@ - + - - + Paused Error! No media playing - Preparing... + Preparing Mark read Mark unread - Version Other About Show Log @@ -94,10 +93,10 @@ All downloads completed Refresh No external storage is available. Please make sure that external storage is mounted so that the app can work properly. - Share link... - Share source link... + Share link + Share source link Clear queue - Refreshing... + Refreshing Download log Flattr sign-in Press the button below to start the authentication process. You will be forwarded to the flattr login screen in your browser and be asked to give Antennapod the permission to flattr things. After you have given permission, you will return to this screen automatically. 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");