1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-27 06:41:15 +00:00

Merge pull request #306 from Zillode/fix-illegal-dismiss

Clear dialog reference when dismissed (fixes #305).
This commit is contained in:
Felix Ableitner 2015-03-26 23:08:20 +01:00
commit ee0ff1c5ca

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) {