Skip to content

Commit

Permalink
[Fix] Add immutable pending intent flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghai committed Aug 28, 2023
1 parent f3aaa0e commit e1ba213
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void openUrl(@NonNull String url) {
final String settingsDescription = getString(R.string.settings_title);
final PendingIntent settingsPendingIntent = PendingIntent.getActivity(this,
SettingsActivity.class.hashCode(), new Intent(this, SettingsActivity.class),
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
final CustomTabsIntent intent = new CustomTabsIntent.Builder()
.setActionButton(settingsIcon, settingsDescription, settingsPendingIntent, true)
.setColorScheme(CustomTabsIntent.COLOR_SCHEME_SYSTEM)
Expand Down

0 comments on commit e1ba213

Please sign in to comment.