Skip to content

Commit

Permalink
added package name for custom action intent to allow for notification…
Browse files Browse the repository at this point in the history
…s in android 14.
  • Loading branch information
freeflyk committed Jun 19, 2024
1 parent 1c9b9c9 commit 3d09e2d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ private static PendingIntent getCustomActionIntent(Context context,
}
intent.putExtra("action_link", link);
intent.putExtra("action_method", type);
intent.setPackage(context.getPackageName()); // Issue 78 --> https://developer.android.com/about/versions/14/behavior-changes-14?hl=en#safer-intents
} catch (JSONException e) {
Log.e(TAG, "Can not get link or method from action provided by Nextcloud API");
e.printStackTrace();
Expand Down

0 comments on commit 3d09e2d

Please sign in to comment.