We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d04a82 commit 99bac1dCopy full SHA for 99bac1d
OneSignalSDK/onesignal/src/main/java/com/onesignal/InAppMessageView.java
@@ -153,6 +153,13 @@ public void run() {
153
}
154
155
ViewGroup.LayoutParams layoutParams = webView.getLayoutParams();
156
+ if (layoutParams == null) {
157
+ OneSignal.onesignalLog(
158
+ OneSignal.LOG_LEVEL.WARN,
159
+ "WebView height update skipped because of null layoutParams, new height will be used once it is displayed.");
160
+ return;
161
+ }
162
+
163
layoutParams.height = pageHeight;
164
// We only need to update the WebView size since it's parent layouts are set to
165
// WRAP_CONTENT to always match the height of the WebView. (Expect for fullscreen)
0 commit comments