mirror of https://github.com/M66B/FairEmail.git
Prevent crash
This commit is contained in:
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…
Reference in New Issue