From 7f9d6ca2d503182e11fa24165d2b9d389e1bb6cd Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 Mar 2023 15:17:59 +0100 Subject: [PATCH] Mandatory media description warn by default --- .../fedilab/android/mastodon/activities/ComposeActivity.java | 4 ++-- app/src/main/res/xml/pref_compose.xml | 4 ++-- src/fdroid/fastlane/metadata/android/en/changelogs/484.txt | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/activities/ComposeActivity.java b/app/src/main/java/app/fedilab/android/mastodon/activities/ComposeActivity.java index 5a01eabb..db86865d 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/activities/ComposeActivity.java +++ b/app/src/main/java/app/fedilab/android/mastodon/activities/ComposeActivity.java @@ -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) { diff --git a/app/src/main/res/xml/pref_compose.xml b/app/src/main/res/xml/pref_compose.xml index 6cb07491..6054966a 100644 --- a/app/src/main/res/xml/pref_compose.xml +++ b/app/src/main/res/xml/pref_compose.xml @@ -67,7 +67,7 @@ app:useSimpleSummaryProvider="true" />