summaryrefslogtreecommitdiff
path: root/app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java
diff options
context:
space:
mode:
authorBrad Pitcher <bradpitcher@gmail.com>2019-04-10 08:21:55 -0700
committerGitHub <noreply@github.com>2019-04-10 08:21:55 -0700
commitf2af5192e68d756380556f8420caff2d5095ae97 (patch)
tree66b79c10506df9fafb64e7a68792ee9913ddf005 /app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java
parent3019c4a9be26239b193537264fbfaca3f8221a1e (diff)
parentd8a010ad487d186afedc85f61a8726813b72a82e (diff)
downloadAntennaPod-f2af5192e68d756380556f8420caff2d5095ae97.zip
Merge branch 'develop' into fix-2359
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java')
-rw-r--r--app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java
index 76d19d61c..cda89bbd3 100644
--- a/app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java
+++ b/app/src/main/java/de/danoeh/antennapod/fragment/FavoriteEpisodesFragment.java
@@ -8,6 +8,7 @@ import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
+import android.widget.TextView;
import java.util.List;
@@ -50,6 +51,8 @@ public class FavoriteEpisodesFragment extends AllEpisodesFragment {
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View root = super.onCreateViewHelper(inflater, container, savedInstanceState,
R.layout.all_episodes_fragment);
+ ((TextView)root.findViewById(R.id.emptyViewTitle)).setText(R.string.no_fav_episodes_head_label);
+ ((TextView)root.findViewById(R.id.emptyViewMessage)).setText(R.string.no_fav_episodes_label);
ItemTouchHelper.SimpleCallback simpleItemTouchCallback = new ItemTouchHelper.SimpleCallback(0, ItemTouchHelper.LEFT | ItemTouchHelper.RIGHT) {
@Override
@@ -62,8 +65,8 @@ public class FavoriteEpisodesFragment extends AllEpisodesFragment {
AllEpisodesRecycleAdapter.Holder holder = (AllEpisodesRecycleAdapter.Holder)viewHolder;
Log.d(TAG, "remove(" + holder.getItemId() + ")");
- if (subscription != null) {
- subscription.unsubscribe();
+ if (disposable != null) {
+ disposable.dispose();
}
FeedItem item = holder.getFeedItem();
if (item != null) {