From 9c5ebc26eb15be080c042f4324238d24d7c1caad Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Tue, 16 Jul 2013 20:31:44 -0700 Subject: Better message for trying to click on downloading podcast channel --- subsonic-android/res/values/strings.xml | 1 + .../src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/subsonic-android/res/values/strings.xml b/subsonic-android/res/values/strings.xml index 39cdf075..65dfc9d1 100644 --- a/subsonic-android/res/values/strings.xml +++ b/subsonic-android/res/values/strings.xml @@ -136,6 +136,7 @@ No podcasts found This podcast had an error while downloading on the server. The server must download it first. This podcast has not been downloaded on the server. The server must download it first. + This podcast channel is being initialized on the server. Please reload after a moment. Download on server Delete from server Now downloading %s on the server diff --git a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java index 6936096c..f0f78569 100644 --- a/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java +++ b/subsonic-android/src/github/daneren2005/dsub/fragments/SelectPodcastsFragment.java @@ -176,7 +176,9 @@ public class SelectPodcastsFragment extends SubsonicFragment implements AdapterV if("error".equals(channel.getStatus())) { Util.toast(context, context.getResources().getString(R.string.select_podcasts_invalid_podcast_channel, channel.getErrorMessage() == null ? "error" : channel.getErrorMessage())); - } else if(!"downloading".equals(channel.getStatus())) { + } else if("downloading".equals(channel.getStatus())) { + Util.toast(context, R.string.select_podcasts_initializing); + } else { SubsonicFragment fragment = new SelectDirectoryFragment(); Bundle args = new Bundle(); args.putString(Constants.INTENT_EXTRA_NAME_PODCAST_ID, channel.getId()); -- cgit v1.2.3