diff --git a/src/main/java/com/nutomic/syncthingandroid/activities/WebGuiActivity.java b/src/main/java/com/nutomic/syncthingandroid/activities/WebGuiActivity.java
index 97573358..9855b499 100644
--- a/src/main/java/com/nutomic/syncthingandroid/activities/WebGuiActivity.java
+++ b/src/main/java/com/nutomic/syncthingandroid/activities/WebGuiActivity.java
@@ -13,7 +13,6 @@ import android.webkit.HttpAuthHandler;
import android.webkit.SslErrorHandler;
import android.webkit.WebView;
import android.webkit.WebViewClient;
-import android.widget.ProgressBar;
import com.nutomic.syncthingandroid.R;
import com.nutomic.syncthingandroid.syncthing.SyncthingService;
@@ -108,9 +107,6 @@ public class WebGuiActivity extends SyncthingActivity
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
mLoadingView = findViewById(R.id.loading);
- ProgressBar pb = (ProgressBar) mLoadingView.findViewById(R.id.progress);
- pb.setIndeterminate(true);
-
loadCaCert();
mWebView = (WebView) findViewById(R.id.webview);
diff --git a/src/main/res/layout/activity_web_gui.xml b/src/main/res/layout/activity_web_gui.xml
index e2db67b3..8e6c8a40 100644
--- a/src/main/res/layout/activity_web_gui.xml
+++ b/src/main/res/layout/activity_web_gui.xml
@@ -1,6 +1,6 @@
-
@@ -10,27 +10,24 @@
android:layout_height="match_parent"
android:visibility="gone" />
-
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:gravity="center"
+ android:orientation="vertical">
+ android:layout_marginBottom="8dp" />
-
-
-
-
+
+
diff --git a/src/main/res/layout/dialog_loading.xml b/src/main/res/layout/dialog_loading.xml
index 172efac8..231e4de4 100644
--- a/src/main/res/layout/dialog_loading.xml
+++ b/src/main/res/layout/dialog_loading.xml
@@ -6,7 +6,6 @@
android:gravity="center">