Prevent crash

pull/157/head
M66B 5 years ago
parent 24f28b05b5
commit 8e6d0adac3

@ -54,6 +54,7 @@ import android.widget.Toast;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.Group; import androidx.constraintlayout.widget.Group;
import androidx.lifecycle.Lifecycle;
import com.google.android.material.snackbar.Snackbar; import com.google.android.material.snackbar.Snackbar;
import com.google.android.material.textfield.TextInputLayout; import com.google.android.material.textfield.TextInputLayout;
@ -1301,7 +1302,7 @@ public class FragmentAccount extends FragmentBase {
} }
}); });
onSave(false); onSave(false);
} else } else if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.RESUMED))
getFragmentManager().popBackStack(); getFragmentManager().popBackStack();
break; break;
case REQUEST_DELETE: case REQUEST_DELETE:

Loading…
Cancel
Save