1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 08:11:17 +00:00

Clear dialog reference when dismissed (fixes #305).

This commit is contained in:
Lode Hoste 2015-03-25 17:14:19 +01:00
parent 1bd24e64e0
commit 5278a8ca00

View file

@ -55,6 +55,7 @@ public class MainActivity extends SyncthingActivity
if (currentState == SyncthingService.State.DISABLED) { if (currentState == SyncthingService.State.DISABLED) {
if (mLoadingDialog != null) { if (mLoadingDialog != null) {
mLoadingDialog.dismiss(); mLoadingDialog.dismiss();
mLoadingDialog = null;
} }
mDisabledDialog = SyncthingService.showDisabledDialog(this); mDisabledDialog = SyncthingService.showDisabledDialog(this);
} else if (mLoadingDialog == null) { } else if (mLoadingDialog == null) {