Added fail safe

pull/215/head
M66B 1 year 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) {
try {
super.onFocusChanged(gainFocus, direction, previouslyFocusedRect); super.onFocusChanged(gainFocus, direction, previouslyFocusedRect);
if (gainFocus && getWindowToken() != null) if (gainFocus && getWindowToken() != null)
performClick(); performClick();
} catch (Throwable ex) {
Log.e(ex);
}
} }
} }

Loading…
Cancel
Save