Mandatory media description warn by default

This commit is contained in:
Thomas 2023-03-09 15:17:59 +01:00
parent 62f84f5637
commit 7f9d6ca2d5
3 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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"

View File

@ -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)