Fixed checkstyle
This commit is contained in:
parent
f978d307a9
commit
c9635473cb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue