mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 03:11:30 +00:00
Fix redundant web UI reload (#990)
Don't reload the web UI if it was already loaded.
This commit is contained in:
parent
0d964b290d
commit
65f10d1c23
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue