mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-23 12:51:16 +00:00
Fixed possible crash on shutdown.
This commit is contained in:
parent
5a0870d21a
commit
74c148b790
1 changed files with 5 additions and 3 deletions
|
@ -256,9 +256,11 @@ public class MainActivity extends SyncthingActivity
|
||||||
if (mLoadingDialog != null) {
|
if (mLoadingDialog != null) {
|
||||||
mLoadingDialog.dismiss();
|
mLoadingDialog.dismiss();
|
||||||
}
|
}
|
||||||
getService().unregisterOnApiChangeListener(this);
|
if (getService() != null) {
|
||||||
getService().unregisterOnApiChangeListener(mFolderFragment);
|
getService().unregisterOnApiChangeListener(this);
|
||||||
getService().unregisterOnApiChangeListener(mDevicesFragment);
|
getService().unregisterOnApiChangeListener(mFolderFragment);
|
||||||
|
getService().unregisterOnApiChangeListener(mDevicesFragment);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue