diff options
author | ByteHamster <info@bytehamster.com> | 2020-11-03 16:22:02 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-11-03 16:22:02 +0100 |
commit | c9635473cb69acfb883f70868f6a8e04670241b1 (patch) | |
tree | 62dc2f10502c73d09df4b833f4a02a5efe8c2e57 /app/src/main/java/de/danoeh/antennapod | |
parent | f978d307a9b62169b85fc3846f2c6a7b52ac5296 (diff) | |
download | AntennaPod-c9635473cb69acfb883f70868f6a8e04670241b1.zip |
Fixed checkstyle
Diffstat (limited to 'app/src/main/java/de/danoeh/antennapod')
3 files changed, 16 insertions, 2 deletions
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<NavListAdapter.Holder> 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<NavListAdapter.Holder> 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); |