1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 14:21:16 +00:00

Adding initial content to drawer fragment earlier so it's never empty.

This commit is contained in:
George Venios 2015-09-06 10:45:50 +01:00
parent c924578e14
commit e7b1501bee
2 changed files with 11 additions and 0 deletions

View file

@ -110,7 +110,9 @@ public class MainActivity extends SyncthingActivity
mDisabledDialog.dismiss();
mDisabledDialog = null;
}
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
mDrawerFragment.requestGuiUpdate();
}
/**

View file

@ -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}.
*/