mirror of https://github.com/M66B/FairEmail.git
Enable text separators for non Play store versions
This commit is contained in:
parent
a08ba39601
commit
4685999bc5
|
@ -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");
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue