Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36ac292d authored by Isaac Katzenelson's avatar Isaac Katzenelson
Browse files

Really remove am/pm on widget.

Bug: 11119295

am/pm was not removed but was reduced to 0 size. This CL removes
the am/pm completely.

Change-Id: I0bef3dec7f4ec8cdc3ecb136cb657c53f6989b65
parent 8b8542c4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -503,8 +503,12 @@ public class Utils {
     * @return format string for 12 hours mode time
     */
    public static CharSequence get12ModeFormat(int amPmFontSize) {
        String skeleton = (amPmFontSize > 0) ? "hma" : "hm";
        String skeleton = "hma";
        String pattern = DateFormat.getBestDateTimePattern(Locale.getDefault(), skeleton);
        // Remove the am/pm
        if (amPmFontSize <= 0) {
            pattern.replaceAll("a", "").trim();
        }
        // Replace spaces with "Hair Space"
        pattern = pattern.replaceAll(" ", "\u200A");
        // Build a spannable so that the am/pm will be formatted