Mandatory media description warn by default
This commit is contained in:
parent
62f84f5637
commit
7f9d6ca2d5
|
@ -963,8 +963,8 @@ public class ComposeActivity extends BaseActivity implements ComposeAdapter.Mana
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(this);
|
SharedPreferences sharedpreferences = PreferenceManager.getDefaultSharedPreferences(this);
|
||||||
boolean checkAlt = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT), 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), false);
|
boolean warnOnly = sharedpreferences.getBoolean(getString(R.string.SET_MANDATORY_ALT_TEXT_WARN), true);
|
||||||
if (checkAlt) {
|
if (checkAlt) {
|
||||||
for (Status status : statusDraft.statusDraftList) {
|
for (Status status : statusDraft.statusDraftList) {
|
||||||
if (status.media_attachments != null && status.media_attachments.size() > 0) {
|
if (status.media_attachments != null && status.media_attachments.size() > 0) {
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
app:useSimpleSummaryProvider="true" />
|
app:useSimpleSummaryProvider="true" />
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
app:defaultValue="false"
|
app:defaultValue="true"
|
||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
app:key="@string/SET_MANDATORY_ALT_TEXT"
|
app:key="@string/SET_MANDATORY_ALT_TEXT"
|
||||||
app:singleLineTitle="false"
|
app:singleLineTitle="false"
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
app:title="@string/set_alt_text_mandatory" />
|
app:title="@string/set_alt_text_mandatory" />
|
||||||
|
|
||||||
<SwitchPreferenceCompat
|
<SwitchPreferenceCompat
|
||||||
app:defaultValue="false"
|
app:defaultValue="true"
|
||||||
app:dependency="@string/SET_MANDATORY_ALT_TEXT"
|
app:dependency="@string/SET_MANDATORY_ALT_TEXT"
|
||||||
app:iconSpaceReserved="false"
|
app:iconSpaceReserved="false"
|
||||||
app:key="@string/SET_MANDATORY_ALT_TEXT_WARN"
|
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)
|
- Add a settings to automatically fetch remote media when it fails (default: disabled)
|
||||||
|
|
||||||
Changed:
|
Changed:
|
||||||
|
- Warn when there are missing descriptions enabled by default
|
||||||
|
|
||||||
Fixed:
|
Fixed:
|
||||||
- Some settings not properly restored (multiple choices)
|
- Some settings not properly restored (multiple choices)
|
Loading…
Reference in New Issue