Workaround Android dismiss bug

This commit is contained in:
M66B 2021-08-20 11:26:20 +02:00
parent c085fcacf7
commit fbfb79c4d5
1 changed files with 2 additions and 1 deletions

View File

@ -1800,7 +1800,8 @@ public class Helper {
@Override
public void onDismiss(DialogInterface dialog) {
Log.i("Authenticate PIN dismissed");
ApplicationEx.getMainHandler().post(cancelled);
if (shouldAuthenticate(activity)) // Some Android versions call dismiss on OK
ApplicationEx.getMainHandler().post(cancelled);
}
})
.create();