1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 20:31:16 +00:00

Fix redundant web UI reload (#990)

Don't reload the web UI if it was already loaded.
This commit is contained in:
Cristian Beskid 2017-11-15 08:20:47 +01:00 committed by Felix Ableitner
parent 0d964b290d
commit 65f10d1c23

View file

@ -141,7 +141,9 @@ public class WebGuiActivity extends StateDialogActivity
@Override
public void onWebGuiAvailable() {
mWebView.loadUrl(getService().getWebGuiUrl().toString());
if (mWebView.getUrl() == null) {
mWebView.loadUrl(getService().getWebGuiUrl().toString());
}
}
@Override