diff --git a/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java b/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java index 54beff97..a5954057 100644 --- a/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java +++ b/src/main/java/com/nutomic/syncthingandroid/activities/MainActivity.java @@ -110,7 +110,9 @@ public class MainActivity extends SyncthingActivity mDisabledDialog.dismiss(); mDisabledDialog = null; } + mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED); + mDrawerFragment.requestGuiUpdate(); } /** diff --git a/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java b/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java index 2f6a0c1b..8699994d 100644 --- a/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java +++ b/src/main/java/com/nutomic/syncthingandroid/fragments/DrawerFragment.java @@ -182,6 +182,15 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI mActivity.getApi().getConnections(this); } + /** + * This will not do anything if gui updates are already scheduled. + */ + public void requestGuiUpdate() { + if (mTimer == null) { + updateGui(); + } + } + /** * Populates views with status received via {@link RestApi#getSystemInfo}. */