From ab184aee487c33c2e6d9938b5f6500b623a4fff7 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 1 Dec 2014 07:04:14 +0200 Subject: [PATCH] Reload GUI when restarting from web GUI (fixes #188). --- .../nutomic/syncthingandroid/syncthing/SyncthingRunnable.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java index 22759504..b4a16b24 100644 --- a/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java +++ b/src/main/java/com/nutomic/syncthingandroid/syncthing/SyncthingRunnable.java @@ -70,6 +70,8 @@ public class SyncthingRunnable implements Runnable { if (ret == 3) { Log.i(TAG, "Restarting syncthing"); + mContext.startService(new Intent(mContext, SyncthingService.class) + .setAction(SyncthingService.ACTION_RESTART)); } } while (ret == 3); } catch (IOException | InterruptedException e) {