mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-01 17:26:12 +00:00
Refactoring
This commit is contained in:
parent
9c09ce442f
commit
eee29194b7
8 changed files with 10 additions and 11 deletions
|
@ -485,7 +485,7 @@
|
|||
android:resizeableActivity="true" />
|
||||
|
||||
<activity
|
||||
android:name=".ActivityDmarc"
|
||||
android:name=".ActivityDMARC"
|
||||
android:enabled="false"
|
||||
android:description="@string/title_advanced_dmarc_viewer"
|
||||
android:exported="true"
|
||||
|
|
|
@ -492,7 +492,7 @@
|
|||
android:resizeableActivity="true" />
|
||||
|
||||
<activity
|
||||
android:name=".ActivityDmarc"
|
||||
android:name=".ActivityDMARC"
|
||||
android:description="@string/title_advanced_dmarc_viewer"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
|
|
|
@ -491,7 +491,7 @@
|
|||
android:resizeableActivity="true" />
|
||||
|
||||
<activity
|
||||
android:name=".ActivityDmarc"
|
||||
android:name=".ActivityDMARC"
|
||||
android:enabled="true"
|
||||
android:description="@string/title_advanced_dmarc_viewer"
|
||||
android:exported="true"
|
||||
|
|
|
@ -491,7 +491,7 @@
|
|||
android:resizeableActivity="true" />
|
||||
|
||||
<activity
|
||||
android:name=".ActivityDmarc"
|
||||
android:name=".ActivityDMARC"
|
||||
android:description="@string/title_advanced_dmarc_viewer"
|
||||
android:enabled="true"
|
||||
android:exported="true"
|
||||
|
|
|
@ -487,7 +487,7 @@
|
|||
android:resizeableActivity="true" />
|
||||
|
||||
<activity
|
||||
android:name=".ActivityDmarc"
|
||||
android:name=".ActivityDMARC"
|
||||
android:description="@string/title_advanced_dmarc_viewer"
|
||||
android:exported="true"
|
||||
android:icon="@mipmap/ic_launcher"
|
||||
|
|
|
@ -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);
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -485,7 +485,7 @@
|
|||
android:resizeableActivity="true" />
|
||||
|
||||
<activity
|
||||
android:name=".ActivityDmarc"
|
||||
android:name=".ActivityDMARC"
|
||||
android:enabled="false"
|
||||
android:description="@string/title_advanced_dmarc_viewer"
|
||||
android:exported="true"
|
||||
|
|
Loading…
Reference in a new issue