Added fail safe

pull/215/head
M66B 4 months ago
parent 5799a99feb
commit 5b37205890

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

Loading…
Cancel
Save