Fixed checkstyle

This commit is contained in:
ByteHamster 2020-11-03 16:22:02 +01:00
parent f978d307a9
commit c9635473cb
3 changed files with 16 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
}
}

View File

@ -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);