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:
parent
0d964b290d
commit
65f10d1c23
1 changed files with 3 additions and 1 deletions
|
@ -141,8 +141,10 @@ public class WebGuiActivity extends StateDialogActivity
|
|||
|
||||
@Override
|
||||
public void onWebGuiAvailable() {
|
||||
if (mWebView.getUrl() == null) {
|
||||
mWebView.loadUrl(getService().getWebGuiUrl().toString());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onBackPressed() {
|
||||
|
|
Loading…
Reference in a new issue