Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Feb 15, 2024
1 parent ecfdf8f commit 5e77d0b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,18 @@ private void hideLoadingDialog() {

showLoadingDialog();

new Handler().postDelayed(new Runnable() {
@Override
public void run() {
hideLoadingDialog();
((FrameLayout) findViewById(R.id.panda_gl_frame))
.addView(pandaSurface, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT));

PandaLayoutController controllerLayout = findViewById(R.id.controller_layout);
controllerLayout.initialize();

if (AlberDriver.HasRomLoaded()) {
hideLoadingDialog();
} else {
hideLoadingDialog();
}

((CheckBox) findViewById(R.id.hide_screen_controller)).setOnCheckedChangeListener((buttonView, checked) -> {
findViewById(R.id.overlay_controller).setVisibility(checked ? View.VISIBLE : View.GONE);
findViewById(R.id.overlay_controller).invalidate();
Expand All @@ -88,8 +90,6 @@ public void run() {
((FrameLayout) findViewById(R.id.panda_gl_frame)).addView(view, new FrameLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
}
}

}, 3000);

@Override
protected void onResume() {
Expand Down

0 comments on commit 5e77d0b

Please sign in to comment.