mirror of
https://github.com/woheller69/solxpect.git
synced 2025-09-22 00:40:46 +02:00
Close dialog in case of recreation
This commit is contained in:
parent
d586517236
commit
62321e0e4f
1 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,7 @@ import android.widget.AutoCompleteTextView;
|
|||
import android.widget.Toast;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.core.os.ConfigurationCompat;
|
||||
import androidx.fragment.app.DialogFragment;
|
||||
|
||||
|
@ -72,6 +73,11 @@ public class AddLocationDialogOmGeocodingAPI extends DialogFragment {
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
if (savedInstanceState != null) dismiss();
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@SuppressLint("SetJavaScriptEnabled")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue