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
api-impl: misc stubs for K-9 Mail
This makes the non composeUI parts of K-9 Mail mostly functional.
This commit is contained in:
@@ -4,6 +4,11 @@ public class WebSettings {
|
||||
|
||||
public static enum LayoutAlgorithm {
|
||||
NORMAL,
|
||||
NARROW_COLUMNS,
|
||||
}
|
||||
|
||||
public static enum RenderPriority {
|
||||
HIGH,
|
||||
}
|
||||
|
||||
public String getUserAgentString() {
|
||||
@@ -41,4 +46,10 @@ public class WebSettings {
|
||||
public void setAppCacheEnabled(boolean enabled) {}
|
||||
|
||||
public void setAppCachePath(String path) {}
|
||||
|
||||
public void setLoadWithOverviewMode(boolean overview) {}
|
||||
|
||||
public void setRenderPriority(RenderPriority priority) {}
|
||||
|
||||
public void setBlockNetworkLoads(boolean block) {}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ public class WebView extends View {
|
||||
}
|
||||
|
||||
public void setVerticalScrollBarEnabled(boolean enabled) {}
|
||||
public void setVerticalScrollbarOverlay(boolean overlay) {}
|
||||
|
||||
public void addJavascriptInterface(Object object, String name) {
|
||||
// HACK: directly call onRenderingDone for OctoDroid, as the javascript interface is not implemented yet
|
||||
@@ -82,6 +83,8 @@ public class WebView extends View {
|
||||
return getContext().getResources().getAssets();
|
||||
}
|
||||
|
||||
public void resumeTimers() {}
|
||||
|
||||
@Override
|
||||
protected native long native_constructor(Context context, AttributeSet attrs);
|
||||
private native void native_loadDataWithBaseURL(long widget, String baseUrl, String data, String mimeType, String encoding);
|
||||
|
||||
Reference in New Issue
Block a user