@@ -176,9 +176,7 @@ public void onCancel(DialogInterface dialog) {
176176 applyWindowGravity (dialog .getWindow (), "onCreateDialog" );
177177 }
178178
179- if (getInAppLayout (insetPadding ) == InAppLayout .FULLSCREEN ) {
180- dialog .getWindow ().setFlags (WindowManager .LayoutParams .FLAG_FULLSCREEN , WindowManager .LayoutParams .FLAG_FULLSCREEN );
181- } else if (getInAppLayout (insetPadding ) != InAppLayout .TOP ) {
179+ if (getInAppLayout (insetPadding ) != InAppLayout .FULLSCREEN && getInAppLayout (insetPadding ) != InAppLayout .TOP ) {
182180 // For TOP layout in-app, status bar will be opaque so that the in-app content does not overlap with translucent status bar.
183181 // For other non-fullscreen in-apps layouts (BOTTOM and CENTER), status bar will be translucent
184182 dialog .getWindow ().setFlags (WindowManager .LayoutParams .FLAG_TRANSLUCENT_STATUS , WindowManager .LayoutParams .FLAG_TRANSLUCENT_STATUS );
@@ -191,10 +189,6 @@ public void onCancel(DialogInterface dialog) {
191189 public View onCreateView (@ NonNull LayoutInflater inflater , @ Nullable ViewGroup container , @ Nullable Bundle savedInstanceState ) {
192190 getDialog ().getWindow ().setBackgroundDrawable (new ColorDrawable (Color .TRANSPARENT ));
193191
194- if (getInAppLayout (insetPadding ) == InAppLayout .FULLSCREEN ) {
195- getDialog ().getWindow ().setFlags (WindowManager .LayoutParams .FLAG_FULLSCREEN , WindowManager .LayoutParams .FLAG_FULLSCREEN );
196- }
197-
198192 // Set initial window gravity based on inset padding (only for non-fullscreen)
199193 if (getInAppLayout (insetPadding ) != InAppLayout .FULLSCREEN ) {
200194 applyWindowGravity (getDialog ().getWindow (), "onCreateView" );
@@ -623,7 +617,6 @@ public void run() {
623617 if (insetPadding .bottom == 0 && insetPadding .top == 0 ) {
624618 //Handle full screen
625619 window .setLayout (webViewWidth , webViewHeight );
626- getDialog ().getWindow ().setFlags (WindowManager .LayoutParams .FLAG_FULLSCREEN , WindowManager .LayoutParams .FLAG_FULLSCREEN );
627620 } else {
628621 // Resize the WebView directly with explicit size
629622 float relativeHeight = height * getResources ().getDisplayMetrics ().density ;
0 commit comments