Mandatory media description warn by default

fetch_indicator
Thomas 2 years ago
parent 62f84f5637
commit 7f9d6ca2d5

@ -963,8 +963,8 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
return 0;
}
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(this);
boolean checkAlt = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT), false);
boolean warnOnly = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT_WARN), false);
boolean checkAlt = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT), true);
boolean warnOnly = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT_WARN), true);
if (checkAlt) {
for (Status status : statusDraft.statusDraftList) {
if (status.media_attachments != null && status.media_attachments.size() > 0) {

@ -67,7 +67,7 @@
app:useSimpleSummaryProvider="true" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:defaultValue="true"
app:iconSpaceReserved="false"
app:key="@string/SET_MANDATORY_ALT_TEXT"
app:singleLineTitle="false"
@ -75,7 +75,7 @@
app:title="@string/set_alt_text_mandatory" />
<SwitchPreferenceCompat
app:defaultValue="false"
app:defaultValue="true"
app:dependency="@string/SET_MANDATORY_ALT_TEXT"
app:iconSpaceReserved="false"
app:key="@string/SET_MANDATORY_ALT_TEXT_WARN"

@ -3,7 +3,7 @@ Added:
- Add a settings to automatically fetch remote media when it fails (default: disabled)
Changed:
- Warn when there are missing descriptions enabled by default
Fixed:
- Some settings not properly restored (multiple choices)
Loading…
Cancel
Save