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

Unhide dialogs (fixes #289, #290).

This commit is contained in:
Felix Ableitner 2015-03-23 23:23:27 +01:00
parent 4bcfeecf3a
commit 2de8d391bf

View file

@ -51,7 +51,7 @@ public class MainActivity extends SyncthingActivity
@Override
@SuppressLint("InflateParams")
public void onApiChange(SyncthingService.State currentState) {
if (currentState != SyncthingService.State.ACTIVE && !isFinishing() && mIsDestroyed) {
if (currentState != SyncthingService.State.ACTIVE && !isFinishing() && !mIsDestroyed) {
if (currentState == SyncthingService.State.DISABLED) {
if (mLoadingDialog != null) {
mLoadingDialog.dismiss();