1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-23 04:41:16 +00:00

Show loading dialog when restarting Syncthing

This commit is contained in:
Lode Hoste 2015-03-24 19:30:45 +01:00
parent 918c6c4e92
commit 771ff06345
2 changed files with 3 additions and 1 deletions

View file

@ -92,9 +92,11 @@ public class MainActivity extends SyncthingActivity
if (mLoadingDialog != null) {
mLoadingDialog.dismiss();
mLoadingDialog = null;
}
if (mDisabledDialog != null) {
mDisabledDialog.dismiss();
mDisabledDialog = null;
}
mDrawerLayout.setDrawerLockMode(DrawerLayout.LOCK_MODE_UNLOCKED);
mDrawerLayout.setDrawerListener(mDrawerToggle);

View file

@ -361,7 +361,7 @@ public class SyncthingService extends Service {
* changes.
*/
public void registerOnApiChangeListener(OnApiChangeListener listener) {
// Make sure we don't send an invalid state or syncthing might shwow a "disabled" message
// Make sure we don't send an invalid state or syncthing might show a "disabled" message
// when it's just starting up.
listener.onApiChange(mCurrentState);
mOnApiChangeListeners.add(new WeakReference<>(listener));