1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 01:06:11 +00:00

Added fail safe

This commit is contained in:
M66B 2024-07-09 21:50:16 +02:00
parent 5799a99feb
commit 5b37205890

View file

@ -69,8 +69,12 @@ public class SpinnerEx extends Spinner {
@Override
protected void onFocusChanged(boolean gainFocus, int direction, @Nullable Rect previouslyFocusedRect) {
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
if (gainFocus && getWindowToken() != null)
performClick();
try {
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
if (gainFocus && getWindowToken() != null)
performClick();
} catch (Throwable ex) {
Log.e(ex);
}
}
}