Prevent crash

This commit is contained in:
M66B 2022-05-10 11:28:48 +02:00
parent c10a763ff6
commit 11f332ad35
1 changed files with 3 additions and 0 deletions

View File

@ -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);