Skip to content

Commit

Permalink
Fix ClientView layout
Browse files Browse the repository at this point in the history
  • Loading branch information
AntumDeluge committed Apr 4, 2024
1 parent 4b415d2 commit cda4560
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import android.os.Build;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.view.ViewGroup;
import android.view.inputmethod.InputMethodManager;
import android.webkit.DownloadListener;
import android.webkit.WebChromeClient;
Expand Down Expand Up @@ -102,6 +103,10 @@ private void onInit() {
setActive(false); // main activity manages initial visibility
setBackgroundColor(Color.TRANSPARENT);

// expand to size of parent constraints
setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));

final WebSettings viewSettings = getSettings();
viewSettings.setJavaScriptEnabled(true);
viewSettings.setDomStorageEnabled(true);
Expand Down

0 comments on commit cda4560

Please sign in to comment.