Apply theme on dismiss

This commit is contained in:
M66B 2022-08-09 07:31:35 +02:00
parent e7b656eff3
commit 89e4afd724
1 changed files with 5 additions and 3 deletions

View File

@ -101,6 +101,7 @@ import java.security.cert.X509Certificate;
import java.security.spec.KeySpec;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
@ -910,13 +911,14 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
TextView tvLog = dview.findViewById(R.id.tvLog);
tvLog.setText(null);
Map<String, Object> defer = new HashMap<>();
Map<String, Object> defer = Collections.synchronizedMap(new HashMap<>());
AlertDialog dialog = new AlertDialog.Builder(this)
.setView(dview)
.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
.setPositiveButton(android.R.string.ok, null)
.setOnDismissListener(new DialogInterface.OnDismissListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
public void onDismiss(DialogInterface dialogInterface) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(dview.getContext());
SharedPreferences.Editor editor = prefs.edit();