This commit is contained in:
Stephen Paul Weber 2024-08-26 20:02:18 +02:00 committed by Arne
parent ea085af59b
commit ea6645f522

View file

@ -350,6 +350,7 @@ public class WebxdcPage implements ConversationPage {
}
public void refresh() {
if (binding == null) return;
if (activity != null) {
activity.get().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);
}
@ -357,6 +358,7 @@ public class WebxdcPage implements ConversationPage {
}
public void realtimeData(String base64) {
if (binding == null) return;
binding.webview.post(() -> binding.webview.loadUrl("javascript:__webxdcRealtimeData('" + base64.replace("'", "").replace("\\", "").replace("+", "%2B") + "');"));
}