diff options
Diffstat (limited to 'app/src/main/java')
5 files changed, 10 insertions, 8 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java b/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java index 45a72117d..968f9114f 100644 --- a/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java +++ b/app/src/main/java/de/danoeh/antennapod/activity/SelectSubscriptionActivity.java @@ -78,7 +78,7 @@ public class SelectSubscriptionActivity extends AppCompatActivity { public List<Feed> getFeedItems(List<NavDrawerData.DrawerItem> items, List<Feed> result) { for (NavDrawerData.DrawerItem item : items) { if (item.type == NavDrawerData.DrawerItem.Type.TAG) { - getFeedItems(((NavDrawerData.TagDrawerItem) item).children, result); + getFeedItems(((NavDrawerData.TagDrawerItem) item).getChildren(), result); } else { Feed feed = ((NavDrawerData.FeedDrawerItem) item).feed; if (!result.contains(feed)) { diff --git a/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemListRecyclerView.java b/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemListRecyclerView.java index a4f33ec98..2b301b03d 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemListRecyclerView.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/episodeslist/EpisodeItemListRecyclerView.java @@ -5,12 +5,13 @@ import android.content.SharedPreferences; import android.content.res.Configuration; import android.util.AttributeSet; import android.view.View; +import androidx.annotation.NonNull; +import androidx.annotation.Nullable; import androidx.appcompat.view.ContextThemeWrapper; import androidx.recyclerview.widget.DividerItemDecoration; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import de.danoeh.antennapod.R; -import io.reactivex.annotations.Nullable; public class EpisodeItemListRecyclerView extends RecyclerView { private static final String TAG = "EpisodeItemListRecyclerView"; @@ -19,17 +20,17 @@ public class EpisodeItemListRecyclerView extends RecyclerView { private LinearLayoutManager layoutManager; - public EpisodeItemListRecyclerView(Context context) { + public EpisodeItemListRecyclerView(@NonNull Context context) { super(new ContextThemeWrapper(context, R.style.FastScrollRecyclerView)); setup(); } - public EpisodeItemListRecyclerView(Context context, @Nullable AttributeSet attrs) { + public EpisodeItemListRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs) { super(new ContextThemeWrapper(context, R.style.FastScrollRecyclerView), attrs); setup(); } - public EpisodeItemListRecyclerView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) { + public EpisodeItemListRecyclerView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) { super(new ContextThemeWrapper(context, R.style.FastScrollRecyclerView), attrs, defStyleAttr); setup(); } diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/NavDrawerFragment.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/NavDrawerFragment.java index b6580575a..b4d7bbb0d 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/NavDrawerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/drawer/NavDrawerFragment.java @@ -449,7 +449,8 @@ public class NavDrawerFragment extends Fragment implements SharedPreferences.OnS NavDrawerData.TagDrawerItem folder = ((NavDrawerData.TagDrawerItem) item); folder.setOpen(openFolders.contains(folder.getTitle())); if (folder.isOpen()) { - flatItems.addAll(makeFlatDrawerData(((NavDrawerData.TagDrawerItem) item).children, layer + 1)); + flatItems.addAll(makeFlatDrawerData( + ((NavDrawerData.TagDrawerItem) item).getChildren(), layer + 1)); } } } diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/RenameFeedDialog.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/RenameFeedDialog.java index a2c2caaaf..192983569 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/RenameFeedDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/feed/RenameFeedDialog.java @@ -66,7 +66,7 @@ public class RenameFeedDialog { private void renameTag(String title) { if (NavDrawerData.DrawerItem.Type.TAG == drawerItem.type) { List<FeedPreferences> feedPreferences = new ArrayList<>(); - for (NavDrawerData.DrawerItem item : ((NavDrawerData.TagDrawerItem) drawerItem).children) { + for (NavDrawerData.DrawerItem item : ((NavDrawerData.TagDrawerItem) drawerItem).getChildren()) { feedPreferences.add(((NavDrawerData.FeedDrawerItem) item).feed.getPreferences()); } diff --git a/app/src/main/java/de/danoeh/antennapod/ui/screen/subscriptions/SubscriptionFragment.java b/app/src/main/java/de/danoeh/antennapod/ui/screen/subscriptions/SubscriptionFragment.java index f115db0ff..57142201c 100644 --- a/app/src/main/java/de/danoeh/antennapod/ui/screen/subscriptions/SubscriptionFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/ui/screen/subscriptions/SubscriptionFragment.java @@ -280,7 +280,7 @@ public class SubscriptionFragment extends Fragment for (NavDrawerData.DrawerItem item : items) { if (item.type == NavDrawerData.DrawerItem.Type.TAG && item.getTitle().equals(displayedFolder)) { - return ((NavDrawerData.TagDrawerItem) item).children; + return ((NavDrawerData.TagDrawerItem) item).getChildren(); } } return items; |