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

Commit 24de6050 authored by Christian Robertson's avatar Christian Robertson Committed by Jim Miller
Browse files

Updating AndroidClock font to match the Roboto thin style for time display.

The primary difference between the AndroidClock and Roboto-Thin fonts is that the new clock font defaults to variable width characters for better alignment on the lock screen.

Bug:7206207
Change-Id: I8509324510ce01d0a73ab1bb6b730b5d646a462c
parent e00d33cf
Loading
Loading
Loading
Loading
+292 B (5 KiB)

File changed.

No diff preview for this file type.

+2 −1
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@ import com.android.internal.R;
 * Displays the time
 */
public class ClockView extends RelativeLayout {
    private static final String ANDROID_CLOCK_FONT_FILE = "/system/fonts/AndroidClock.ttf";
    private final static String M12 = "h:mm";
    private final static String M24 = "kk:mm";

@@ -153,7 +154,7 @@ public class ClockView extends RelativeLayout {
    protected void onFinishInflate() {
        super.onFinishInflate();
        mTimeView = (TextView) findViewById(R.id.clock_text);
        mTimeView.setTypeface(Typeface.create("sans-serif-thin", Typeface.NORMAL));
        mTimeView.setTypeface(Typeface.createFromFile(ANDROID_CLOCK_FONT_FILE));
        mAmPm = new AmPm(this, null);
        mCalendar = Calendar.getInstance();
        setDateFormat();