1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 22:51:02 +00:00

Workaround Android dismiss bug

This commit is contained in:
M66B 2021-08-20 11:26:20 +02:00
parent c085fcacf7
commit fbfb79c4d5

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();