Merge "Make reset lockout PendingIntent immutable"

This commit is contained in:
Kevin Chyn
2020-10-19 18:46:45 +00:00
committed by Android (Google) Code Review

View File

@@ -135,6 +135,6 @@ public class LockoutFrameworkImpl implements LockoutTracker {
private PendingIntent getLockoutResetIntentForUser(int userId) {
return PendingIntent.getBroadcast(mContext, userId,
new Intent(ACTION_LOCKOUT_RESET).putExtra(KEY_LOCKOUT_RESET_USER, userId),
PendingIntent.FLAG_UPDATE_CURRENT);
PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_IMMUTABLE);
}
}