Revert "Use hashed email/name for shortcut ID"

This reverts commit 176aa6d24b.
pull/204/head
M66B 4 years ago
parent 106e02a385
commit fc8852b07b

@ -247,7 +247,7 @@ class Shortcuts {
circular && !identicon ? null : Helper.dp2pixels(context, 3));
IconCompat icon = IconCompat.createWithBitmap(bitmap);
String id = Integer.toHexString(Objects.hash(name, email));
String id = (name == null ? email : "\"" + name + "\" <" + email + ">");
Set<String> categories = new HashSet<>(Arrays.asList(BuildConfig.APPLICATION_ID + ".TEXT_SHARE_TARGET"));
ShortcutInfoCompat.Builder builder = new ShortcutInfoCompat.Builder(context, id)
.setIcon(icon)

Loading…
Cancel
Save