Skip to content

Commit

Permalink
Close dialog in case of recreation
Browse files Browse the repository at this point in the history
  • Loading branch information
woheller69 committed Sep 10, 2023
1 parent d586517 commit 62321e0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import android.widget.Toast;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.core.os.ConfigurationCompat;
import androidx.fragment.app.DialogFragment;

Expand Down Expand Up @@ -72,6 +73,11 @@ public void onAttach(@NonNull Context context) {
}
}

@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
if (savedInstanceState != null) dismiss();
}

@NonNull
@SuppressLint("SetJavaScriptEnabled")
Expand Down

0 comments on commit 62321e0

Please sign in to comment.