mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-27 13:21:30 +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