Refactoring

This commit is contained in:
M66B
2021-04-12 07:56:00 +02:00
parent c12a92e873
commit 1a4232b1ad
4 changed files with 83 additions and 74 deletions

View File

@@ -227,7 +227,7 @@ public class AdapterContact extends RecyclerView.Adapter<AdapterContact.ViewHold
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R && // should be system whitelisted
share.resolveActivity(context.getPackageManager()) != null)
popupMenu.getMenu().add(Menu.NONE, R.string.title_share, 2, R.string.title_share);
if (ShortcutManagerCompat.isRequestPinShortcutSupported(context))
if (Shortcuts.can(context))
popupMenu.getMenu().add(Menu.NONE, R.string.title_pin, 3, R.string.title_pin);
popupMenu.getMenu().add(Menu.NONE, R.string.title_advanced_edit_name, 4, R.string.title_advanced_edit_name);
popupMenu.getMenu().add(Menu.NONE, R.string.title_delete, 5, R.string.title_delete);