Enable text separators for non Play store versions

This commit is contained in:
M66B 2020-11-14 10:26:28 +01:00
parent a08ba39601
commit 4685999bc5
3 changed files with 4 additions and 3 deletions

View File

@ -384,6 +384,8 @@ public class ApplicationEx extends Application implements SharedPreferences.OnSh
editor.putBoolean("beige", false);
} else if (version < 1385)
editor.remove("parse_classes");
else if (version < 1393)
editor.remove("text_separators");
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O && !BuildConfig.DEBUG)
editor.remove("background_service");

View File

@ -966,7 +966,7 @@ public class FragmentOptionsDisplay extends FragmentBase implements SharedPrefer
swTextSize.setChecked(prefs.getBoolean("text_size", true));
swTextFont.setChecked(prefs.getBoolean("text_font", true));
swTextAlign.setChecked(prefs.getBoolean("text_align", true));
swTextSeparators.setChecked(prefs.getBoolean("text_separators", false));
swTextSeparators.setChecked(prefs.getBoolean("text_separators", !BuildConfig.PLAY_STORE_RELEASE));
swCollapseQuotes.setChecked(prefs.getBoolean("collapse_quotes", false));
swImagesInline.setChecked(prefs.getBoolean("inline_images", false));
swAttachmentsAlt.setChecked(prefs.getBoolean("attachments_alt", false));

View File

@ -368,7 +368,7 @@ public class HtmlHelper {
boolean disable_tracking = prefs.getBoolean("disable_tracking", true);
boolean parse_classes = prefs.getBoolean("parse_classes", true);
boolean inline_images = prefs.getBoolean("inline_images", false);
boolean text_separators = prefs.getBoolean("text_separators", false);
boolean text_separators = prefs.getBoolean("text_separators", !BuildConfig.PLAY_STORE_RELEASE);
int textColorPrimary = Helper.resolveColor(context, android.R.attr.textColorPrimary);
@ -1913,7 +1913,6 @@ public class HtmlHelper {
@Nullable Html.ImageGetter imageGetter, @Nullable Html.TagHandler tagHandler) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean debug = prefs.getBoolean("debug", false);
boolean text_separators = prefs.getBoolean("text_separators", false);
boolean monospaced_pre = prefs.getBoolean("monospaced_pre", false);
final int colorPrimary = Helper.resolveColor(context, R.attr.colorPrimary);