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

Commit 7483b91d authored by Victor Chang's avatar Victor Chang Committed by Automerger Merge Worker
Browse files

Merge "Remove Unicode whitespace before AM/PM in the status bar" into...

Merge "Remove Unicode whitespace before AM/PM in the status bar" into udc-dev-plus-aosp am: fe49bee8

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/25559806



Change-Id: I41dc811ed8ed50749604b12c10dc35255485ef60
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e0322e86 fe49bee8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.content.Intent;
import android.content.IntentFilter;
import android.content.res.TypedArray;
import android.graphics.Rect;
import android.icu.lang.UCharacter;
import android.icu.text.DateTimePatternGenerator;
import android.os.Bundle;
import android.os.Handler;
@@ -472,7 +473,7 @@ public class Clock extends TextView implements
                if (a >= 0) {
                    // Move a back so any whitespace before AM/PM is also in the alternate size.
                    final int b = a;
                    while (a > 0 && Character.isWhitespace(format.charAt(a-1))) {
                    while (a > 0 && UCharacter.isUWhiteSpace(format.charAt(a - 1))) {
                        a--;
                    }
                    format = format.substring(0, a) + MAGIC1 + format.substring(a, b)