Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ protected void handleOnPause() {
protected void handleOnResume() {
super.handleOnResume();
if (lastSessionConfig != null) {
// Set to black to avoid flicker, transparent set later
if (lastSessionConfig.isToBack()) {
try {
getBridge()
.getActivity()
.getWindow()
.setBackgroundDrawable(new android.graphics.drawable.ColorDrawable(android.graphics.Color.BLACK));
getBridge().getWebView().setBackgroundColor(android.graphics.Color.BLACK);
} catch (Exception ignored) {}
}
// Recreate camera with last known configuration
if (cameraXView == null) {
cameraXView = new CameraXView(getContext(), getBridge().getWebView());
Expand Down
5 changes: 4 additions & 1 deletion bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.