Skip to content
Snippets Groups Projects
Commit bc7df575 authored by Victor Chang's avatar Victor Chang Committed by Gerrit Code Review
Browse files

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

parents eef74ce4 28c113d2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......@@ -452,7 +453,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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment