mirror of
https://github.com/syncthing/syncthing-android.git
synced 2025-01-25 11:26:32 +00:00
Reload GUI when restarting from web GUI (fixes #188).
This commit is contained in:
parent
3a48be14fd
commit
ab184aee48
1 changed files with 2 additions and 0 deletions
|
@ -70,6 +70,8 @@ public class SyncthingRunnable implements Runnable {
|
||||||
|
|
||||||
if (ret == 3) {
|
if (ret == 3) {
|
||||||
Log.i(TAG, "Restarting syncthing");
|
Log.i(TAG, "Restarting syncthing");
|
||||||
|
mContext.startService(new Intent(mContext, SyncthingService.class)
|
||||||
|
.setAction(SyncthingService.ACTION_RESTART));
|
||||||
}
|
}
|
||||||
} while (ret == 3);
|
} while (ret == 3);
|
||||||
} catch (IOException | InterruptedException e) {
|
} catch (IOException | InterruptedException e) {
|
||||||
|
|
Loading…
Reference in a new issue