mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-27 21:31:29 +00:00
Do not modify gui if it is destroyed
This commit is contained in:
parent
db0da97cc4
commit
c885445b51
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ public class MainActivity extends SyncthingActivity
|
|||
@Override
|
||||
@SuppressLint("InflateParams")
|
||||
public void onApiChange(SyncthingService.State currentState) {
|
||||
if (currentState != SyncthingService.State.ACTIVE && !isFinishing()) {
|
||||
if (currentState != SyncthingService.State.ACTIVE && !isFinishing() && !isDestroyed()) {
|
||||
if (currentState == SyncthingService.State.DISABLED) {
|
||||
if (mLoadingDialog != null) {
|
||||
mLoadingDialog.dismiss();
|
||||
|
|
Loading…
Reference in a new issue