mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-02 13:14:39 +00:00
Refactoring
This commit is contained in:
parent
2aa5c3e627
commit
9bfd5c8053
1 changed files with 2 additions and 3 deletions
|
@ -20,7 +20,6 @@ package eu.faircode.email;
|
|||
*/
|
||||
|
||||
import static android.app.Activity.RESULT_OK;
|
||||
import static android.graphics.Typeface.BOLD;
|
||||
import static android.text.format.DateUtils.DAY_IN_MILLIS;
|
||||
import static android.text.format.DateUtils.FORMAT_SHOW_DATE;
|
||||
import static android.text.format.DateUtils.FORMAT_SHOW_WEEKDAY;
|
||||
|
@ -5024,7 +5023,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
|
||||
SpannableStringBuilder all = new SpannableStringBuilderEx(getString(R.string.title_language_all));
|
||||
if (current == null) {
|
||||
all.setSpan(new StyleSpan(BOLD), 0, all.length(), 0);
|
||||
all.setSpan(new StyleSpan(Typeface.BOLD), 0, all.length(), 0);
|
||||
all.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_LARGE), 0, all.length(), 0);
|
||||
}
|
||||
|
||||
|
@ -5035,7 +5034,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
|
|||
String language = locale.getLanguage();
|
||||
SpannableStringBuilder title = new SpannableStringBuilderEx(locale.getDisplayLanguage());
|
||||
if (language.equals(current)) {
|
||||
title.setSpan(new StyleSpan(BOLD), 0, title.length(), 0);
|
||||
title.setSpan(new StyleSpan(Typeface.BOLD), 0, title.length(), 0);
|
||||
title.setSpan(new RelativeSizeSpan(HtmlHelper.FONT_LARGE), 0, title.length(), 0);
|
||||
}
|
||||
popupMenu.getMenu()
|
||||
|
|
Loading…
Reference in a new issue