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:
parent
5799a99feb
commit
5b37205890
1 changed files with 7 additions and 3 deletions
|
@ -69,8 +69,12 @@ public class SpinnerEx extends Spinner {
|
|||
|
||||
@Override
|
||||
protected void onFocusChanged(boolean gainFocus, int direction, @Nullable Rect previouslyFocusedRect) {
|
||||
try {
|
||||
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
|
||||
if (gainFocus && getWindowToken() != null)
|
||||
performClick();
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue