mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-27 13:21:30 +00:00
Adding initial content to drawer fragment earlier so it's never empty.
This commit is contained in:
parent
c924578e14
commit
e7b1501bee
2 changed files with 11 additions and 0 deletions
|
@ -110,7 +110,9 @@ public class MainActivity extends SyncthingActivity
|
|||
mDisabledDialog.dismiss();
|
||||
mDisabledDialog = null;
|
||||
}
|
||||
|
||||
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
|
||||
mDrawerFragment.requestGuiUpdate();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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}.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue