From c9635473cb69acfb883f70868f6a8e04670241b1 Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Tue, 3 Nov 2020 16:22:02 +0100 Subject: Fixed checkstyle --- .../java/de/danoeh/antennapod/adapter/NavListAdapter.java | 13 ++++++++++++- .../de/danoeh/antennapod/adapter/SubscriptionsAdapter.java | 2 ++ .../de/danoeh/antennapod/fragment/NavDrawerFragment.java | 3 ++- 3 files changed, 16 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/de/danoeh/antennapod') 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 74ffd8d9b..7f1aebfa5 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/NavListAdapter.java @@ -282,7 +282,8 @@ public class NavListAdapter extends RecyclerView.Adapter if (UserPreferences.getSubscriptionsFilter().isEnabled() && showSubscriptionList) { holder.itemView.setEnabled(true); - holder.feedsFilteredMsg.setText("{md-info-outline} " + context.getString(R.string.subscriptions_are_filtered)); + holder.feedsFilteredMsg.setText("{md-info-outline} " + + context.getString(R.string.subscriptions_are_filtered)); Iconify.addIcons(holder.feedsFilteredMsg); holder.feedsFilteredMsg.setVisibility(View.VISIBLE); } else { @@ -388,15 +389,25 @@ public class NavListAdapter extends RecyclerView.Adapter public interface ItemAccess { int getCount(); + NavDrawerData.DrawerItem getItem(int position); + int getSelectedItemIndex(); + int getQueueSize(); + int getNumberOfNewItems(); + int getNumberOfDownloadedItems(); + int getReclaimableItems(); + int getFeedCounter(long feedId); + int getFeedCounterSum(); + void onItemClick(int position); + boolean onItemLongClick(int position); } diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java b/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java index 300cb9f57..5cccd7e99 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/SubscriptionsAdapter.java @@ -134,7 +134,9 @@ public class SubscriptionsAdapter extends BaseAdapter implements AdapterView.OnI public interface ItemAccess { int getCount(); + NavDrawerData.DrawerItem getItem(int position); + int getFeedCounter(long feedId); } } diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java index a97ad40f1..59a9e7f58 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/NavDrawerFragment.java @@ -397,7 +397,8 @@ public class NavDrawerFragment extends Fragment implements SharedPreferences.OnS long feedId = ((NavDrawerData.FeedDrawerItem) clickedItem).feed.getId(); if (getActivity() instanceof MainActivity) { ((MainActivity) getActivity()).loadFeedFragmentById(feedId, null); - ((MainActivity) getActivity()).getBottomSheet().setState(BottomSheetBehavior.STATE_COLLAPSED); + ((MainActivity) getActivity()).getBottomSheet() + .setState(BottomSheetBehavior.STATE_COLLAPSED); } else { Intent intent = new Intent(getActivity(), MainActivity.class); intent.putExtra(MainActivity.EXTRA_FEED_ID, feedId); -- cgit v1.2.3