Merge pull request #5413 from ByteHamster/hide-multi-select

Multi-select fixes
This commit is contained in:
ByteHamster 2021-09-17 22:52:50 +02:00 committed by GitHub
commit 5f90e0cdf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -133,6 +133,7 @@ public class SubscriptionsRecyclerAdapter extends SelectableAdapter<Subscription
MenuInflater inflater = mainActivityRef.get().getMenuInflater();
inflater.inflate(R.menu.nav_feed_context, menu);
menu.setHeaderTitle(selectedFeed.getTitle());
menu.findItem(R.id.multi_select).setVisible(true);
}
}

View File

@ -273,9 +273,11 @@ public class CompletedDownloadsFragment extends Fragment implements
@Override
public void afterBindViewHolder(EpisodeItemViewHolder holder, int pos) {
if (!inActionMode()) {
DeleteActionButton actionButton = new DeleteActionButton(getItem(pos));
actionButton.configure(holder.secondaryActionButton, holder.secondaryActionIcon, getActivity());
}
}
@Override
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenu.ContextMenuInfo menuInfo) {

View File

@ -24,5 +24,6 @@
<item
android:id="@+id/multi_select"
android:menuCategory="container"
android:title="@string/multi_select" />
android:title="@string/multi_select"
android:visible="false" />
</menu>