mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-30 08:11:17 +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
|
@Override
|
||||||
@SuppressLint("InflateParams")
|
@SuppressLint("InflateParams")
|
||||||
public void onApiChange(SyncthingService.State currentState) {
|
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 (currentState == SyncthingService.State.DISABLED) {
|
||||||
if (mLoadingDialog != null) {
|
if (mLoadingDialog != null) {
|
||||||
mLoadingDialog.dismiss();
|
mLoadingDialog.dismiss();
|
||||||
|
|
Loading…
Reference in a new issue