Skip to content

Commit

Permalink
Change shortcut reportID from string to long
Browse files Browse the repository at this point in the history
  • Loading branch information
Skalakid committed Sep 12, 2024
1 parent 7baac65 commit bcfc0f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ private void applyMessageStyle(@NonNull Context context, NotificationCompat.Buil

Person person = createMessagePersonObject(IconCompat.createWithBitmap(personIcon), accountID, name);

ShortcutManagerUtils.addDynamicShortcut(context, reportId, name, accountID, personIcon, person);
ShortcutManagerUtils.addDynamicShortcut(context, reportID, name, accountID, personIcon, person);

// Create latest received message object
long createdTimeInMillis = getMessageTimeInMillis(messageData.get("created").getString(""));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static void removeAllDynamicShortcuts(Context context) {
ShortcutManagerCompat.removeAllDynamicShortcuts(context);
}

public static void addDynamicShortcut(Context context, String reportID, String name, String accountID, Bitmap personIcon, Person person) {
public static void addDynamicShortcut(Context context, long reportID, String name, String accountID, Bitmap personIcon, Person person) {
Intent intent = new Intent(Intent.ACTION_VIEW,
Uri.parse("new-expensify://r/" + reportID));

Expand Down

0 comments on commit bcfc0f5

Please sign in to comment.