Refactoring

This commit is contained in:
M66B
2023-11-13 21:11:54 +01:00
parent 9c09ce442f
commit eee29194b7
8 changed files with 10 additions and 11 deletions

View File

@@ -47,7 +47,6 @@ import org.xmlpull.v1.XmlPullParserFactory;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringReader;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.nio.charset.StandardCharsets;
@@ -57,7 +56,7 @@ import java.util.Arrays;
import java.util.List;
import java.util.Locale;
public class ActivityDmarc extends ActivityBase {
public class ActivityDMARC extends ActivityBase {
private TextView tvDmarc;
private ContentLoadingProgressBar pbWait;
private Group grpReady;
@@ -154,7 +153,7 @@ public class ActivityDmarc extends ActivityBase {
@Override
protected void onException(Bundle args, @NonNull Throwable ex) {
if (ex instanceof NoStreamException)
((NoStreamException) ex).report(ActivityDmarc.this);
((NoStreamException) ex).report(ActivityDMARC.this);
else
tvDmarc.setText(ex + "\n" + android.util.Log.getStackTraceString(ex));
grpReady.setVisibility(View.VISIBLE);

View File

@@ -1634,7 +1634,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swDmarcViewer.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean checked) {
Helper.enableComponent(compoundButton.getContext(), ActivityDmarc.class, checked);
Helper.enableComponent(compoundButton.getContext(), ActivityDMARC.class, checked);
}
});
@@ -2375,7 +2375,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swAdjacentPortrait.setChecked(prefs.getBoolean("adjacent_portrait", false));
swAdjacentLandscape.setChecked(prefs.getBoolean("adjacent_landscape", false));
swDeleteConfirmation.setChecked(prefs.getBoolean("delete_confirmation", true));
swDmarcViewer.setChecked(Helper.isComponentEnabled(getContext(), ActivityDmarc.class));
swDmarcViewer.setChecked(Helper.isComponentEnabled(getContext(), ActivityDMARC.class));
etKeywords.setText(prefs.getString("global_keywords", null));
swTestIab.setChecked(prefs.getBoolean("test_iab", false));