You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
implement URL opening using libportal
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
package android.net;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
public class Uri {
|
||||
private URI uri;
|
||||
|
||||
public static Uri parse(String s) {
|
||||
return new Uri();
|
||||
Uri ret = new Uri();
|
||||
try {
|
||||
ret.uri = URI.create(s);
|
||||
} catch (IllegalArgumentException e) {
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
public Builder buildUpon() {
|
||||
@@ -14,4 +23,9 @@ public class Uri {
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.valueOf(uri);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user