Skip to content

Commit 8e36f03

Browse files
committed
Keep password failure notification on after unlock
Change-Id: I3104ae0ad2f375c0d4f8b98bae1acfa6f7a78f2f
1 parent 24c6b35 commit 8e36f03

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

app/src/main/java/com/afwsamples/testdpc/DeviceAdminReceiver.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,6 @@ public void onPasswordFailed(Context context, Intent intent) {
268268
nm.notify(PASSWORD_FAILED_NOTIFICATION_ID, warn.getNotification());
269269
}
270270

271-
@Override
272-
public void onPasswordSucceeded(Context context, Intent intent) {
273-
NotificationManager nm = (NotificationManager)
274-
context.getSystemService(Context.NOTIFICATION_SERVICE);
275-
nm.cancel(PASSWORD_FAILED_NOTIFICATION_ID);
276-
}
277-
278271
@Override
279272
public void onPasswordChanged(Context context, Intent intent) {
280273
updatePasswordQualityNotification(context);

0 commit comments

Comments
 (0)