From 55f1efd74da572de1964e19d2c8fce775dc5e513 Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Sat, 9 Jan 2016 22:08:58 +0100 Subject: Explanation dialog --- .../main/java/de/danoeh/antennapod/adapter/NavListAdapter.java | 8 ++++++++ core/src/main/res/values/strings.xml | 2 ++ 2 files changed, 10 insertions(+) diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java index e984ba3be..d43e30d8f 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java @@ -6,6 +6,7 @@ import android.content.res.TypedArray; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.preference.PreferenceManager; +import android.support.v7.app.AlertDialog; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -231,6 +232,13 @@ public class NavListAdapter extends BaseAdapter holder.count.setText("{md-disc-full 150%}"); Iconify.addIcons(holder.count); holder.count.setVisibility(View.VISIBLE); + holder.count.setOnClickListener(v -> { + new AlertDialog.Builder(context) + .setTitle(R.string.episode_cache_full_title) + .setMessage(R.string.episode_cache_full_message) + .setPositiveButton(android.R.string.ok, (dialog, which) -> {}) + .show(); + }); } else { holder.count.setVisibility(View.GONE); } diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 69acdcc4a..30b29df91 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -26,6 +26,8 @@ gpodder.net gpodder.net Login %1$s free + Episode cache full + The episode cache limit has been reached. You can increase the cache size in the Settings. Recently published -- cgit v1.2.3