Android: fix url resolution (#32422)

* fix localhost

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* android: parse search bar field in rust

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>

* Update comment to reflect new function behavior

---------

Signed-off-by: Gae24 <96017547+Gae24@users.noreply.github.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Gae24 2024-06-10 12:03:07 +02:00 committed by GitHub
parent 6f414df867
commit e6ea4a9c29
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 29 additions and 27 deletions

View file

@ -211,11 +211,11 @@ public class ServoView extends SurfaceView
mServo.stop();
}
public void loadUri(Uri uri) {
public void loadUri(String uri) {
if (mServo != null) {
mServo.loadUri(uri.toString());
mServo.loadUri(uri);
} else {
mInitialUri = uri.toString();
mInitialUri = uri;
}
}