mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-26 22:31:16 +00:00
Dont hardcode web gui URL
This commit is contained in:
parent
a9b80fbdc4
commit
2f1d5f1ff2
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ public class WebGuiActivity extends SyncthingActivity
|
|||
@Override
|
||||
public boolean shouldOverrideUrlLoading(WebView view, String url) {
|
||||
Uri uri = Uri.parse(url);
|
||||
if(uri.getHost().equals("127.0.0.1")) {
|
||||
if(uri.getHost().equals(getService().getWebGuiUrl().getHost())) {
|
||||
return false;
|
||||
} else {
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, uri));
|
||||
|
|
Loading…
Reference in a new issue