Prevent crash

pull/207/head
M66B 2 years ago
parent c10a763ff6
commit 11f332ad35

@ -243,6 +243,9 @@ public class FragmentIdentity extends FragmentBase {
spAccount.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
@Override
public void onItemSelected(AdapterView<?> adapterView, View view, int position, long id) {
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
return;
grpAuthorize.setVisibility(position > 0 ? View.VISIBLE : View.GONE);
if (position == 0) {
grpError.setVisibility(View.GONE);

Loading…
Cancel
Save