forked from mirror/monocles_chat_clean
Fix NPE
This commit is contained in:
parent
ea085af59b
commit
ea6645f522
1 changed files with 2 additions and 0 deletions
|
@ -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") + "');"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue