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
add more Java APIs needed for OctoDroid
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package android.webkit;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
// the only reason we need to implement this is that some app developers are such scumbags that they try to use this for tracking purposes
|
||||
@@ -9,6 +10,10 @@ public class WebView extends View {
|
||||
super(context);
|
||||
}
|
||||
|
||||
public WebView(Context context, AttributeSet attrs) {
|
||||
super(context, attrs);
|
||||
}
|
||||
|
||||
public WebSettings getSettings() {
|
||||
return new WebSettings();
|
||||
}
|
||||
@@ -32,4 +37,8 @@ public class WebView extends View {
|
||||
public void loadUrl(String url) {}
|
||||
|
||||
public void stopLoading() {}
|
||||
|
||||
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
|
||||
System.out.println("loadDataWithBaseURL(" + baseUrl + ", " + data + ", " + mimeType + ", " + encoding + ", " + historyUrl + ") called");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user