2022-10-02 23:06:56 +02:00
|
|
|
package android.webkit;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
2024-08-05 17:17:53 +02:00
|
|
|
import android.util.AttributeSet;
|
2023-06-18 11:03:43 +02:00
|
|
|
import android.view.View;
|
2022-10-02 23:06:56 +02:00
|
|
|
|
|
|
|
|
// 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
|
2023-06-18 11:03:43 +02:00
|
|
|
public class WebView extends View {
|
2023-06-22 11:45:46 +02:00
|
|
|
public WebView(Context context) {
|
2023-06-18 11:03:43 +02:00
|
|
|
super(context);
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|
|
|
|
|
|
2024-08-05 17:17:53 +02:00
|
|
|
public WebView(Context context, AttributeSet attrs) {
|
|
|
|
|
super(context, attrs);
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-02 23:06:56 +02:00
|
|
|
public WebSettings getSettings() {
|
|
|
|
|
return new WebSettings();
|
|
|
|
|
}
|
2023-06-18 11:03:43 +02:00
|
|
|
|
2024-04-26 14:49:37 +02:00
|
|
|
public void setDownloadListener(DownloadListener downloadListener) {}
|
2023-06-18 11:03:43 +02:00
|
|
|
|
2024-04-26 14:49:37 +02:00
|
|
|
public void setScrollBarStyle(int scrollBarStyle) {}
|
2023-06-18 11:03:43 +02:00
|
|
|
|
2024-04-26 14:49:37 +02:00
|
|
|
public void setWebViewClient(WebViewClient webViewClient) {}
|
|
|
|
|
|
|
|
|
|
public void setVerticalScrollBarEnabled(boolean enabled) {}
|
|
|
|
|
|
|
|
|
|
public void addJavascriptInterface(Object dummy, String dummy2) {}
|
|
|
|
|
|
|
|
|
|
public void setWebChromeClient(WebChromeClient dummy) {}
|
|
|
|
|
|
|
|
|
|
public void removeAllViews() {}
|
|
|
|
|
|
|
|
|
|
public void destroy() {}
|
|
|
|
|
|
|
|
|
|
public void loadUrl(String url) {}
|
|
|
|
|
|
|
|
|
|
public void stopLoading() {}
|
2024-08-05 17:17:53 +02:00
|
|
|
|
|
|
|
|
public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl) {
|
|
|
|
|
System.out.println("loadDataWithBaseURL(" + baseUrl + ", " + data + ", " + mimeType + ", " + encoding + ", " + historyUrl + ") called");
|
|
|
|
|
}
|
2022-10-02 23:06:56 +02:00
|
|
|
}
|