Skip to content

Commit ccff48b

Browse files
Jim MillerPeter Ng
authored andcommitted
Removing 2nd background clock font display from statusbar and lock screen
Change-Id: If9edfed231cde6590b28fc2115d78bc97b74ae4e
1 parent e49cf10 commit ccff48b

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

core/java/com/android/internal/widget/DigitalClock.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ protected void onFinishInflate() {
168168
/* The time display consists of two tones. That's why we have two overlapping text views. */
169169
mTimeDisplayBackground = (TextView) findViewById(R.id.timeDisplayBackground);
170170
mTimeDisplayBackground.setTypeface(sBackgroundFont);
171+
mTimeDisplayBackground.setVisibility(View.INVISIBLE);
172+
171173
mTimeDisplayForeground = (TextView) findViewById(R.id.timeDisplayForeground);
172174
mTimeDisplayForeground.setTypeface(sForegroundFont);
173175
mAmPm = new AmPm(this, null);

core/res/res/values-sw600dp/colors.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
-->
2020
<resources>
2121
<!-- keyguard clock -->
22-
<color name="lockscreen_clock_background">#b3ffffff</color>
23-
<color name="lockscreen_clock_foreground">#7affffff</color>
22+
<color name="lockscreen_clock_background">#ffffffff</color>
23+
<color name="lockscreen_clock_foreground">#ffffffff</color>
2424
<color name="lockscreen_clock_am_pm">#ffffffff</color>
2525
<color name="lockscreen_owner_info">#ff9a9a9a</color>
2626

core/res/res/values/colors.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@
107107
<color name="keyguard_text_color_decline">#fe0a5a</color>
108108

109109
<!-- keyguard clock -->
110-
<color name="lockscreen_clock_background">#e5ffffff</color>
111-
<color name="lockscreen_clock_foreground">#e5ffffff</color>
112-
<color name="lockscreen_clock_am_pm">#ff9a9a9a</color>
110+
<color name="lockscreen_clock_background">#ffffffff</color>
111+
<color name="lockscreen_clock_foreground">#ffffffff</color>
112+
<color name="lockscreen_clock_am_pm">#ffffffff</color>
113113
<color name="lockscreen_owner_info">#ff9a9a9a</color>
114114

115115
<!-- FaceLock -->

packages/SystemUI/src/com/android/systemui/statusbar/tablet/HoloClock.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ public class HoloClock extends FrameLayout {
5353
private SimpleDateFormat mClockFormat;
5454

5555
private static final String FONT_DIR = "/system/fonts/";
56-
private static final String CLOCK_FONT = FONT_DIR + "AndroidClock_Solid.ttf";
57-
private static final String CLOCK_FG_FONT = FONT_DIR + "AndroidClock.ttf";
58-
private static final String CLOCK_BG_FONT = FONT_DIR + "AndroidClock_Highlight.ttf";
56+
private static final String CLOCK_FONT = FONT_DIR + "AndroidClock_Solid.ttf";
57+
private static final String CLOCK_FG_FONT = FONT_DIR + "AndroidClock.ttf";
58+
private static final String CLOCK_BG_FONT = FONT_DIR + "AndroidClock_Highlight.ttf";
5959

6060
private static Typeface sBackgroundType, sForegroundType, sSolidType;
6161
private TextView mSolidText, mBgText, mFgText;
@@ -84,7 +84,9 @@ protected void onFinishInflate() {
8484
mBgText = (TextView) findViewById(R.id.time_bg);
8585
if (mBgText != null) {
8686
mBgText.setTypeface(sBackgroundType);
87+
mBgText.setVisibility(View.INVISIBLE);
8788
}
89+
8890
mFgText = (TextView) findViewById(R.id.time_fg);
8991
if (mFgText != null) {
9092
mFgText.setTypeface(sForegroundType);

0 commit comments

Comments
 (0)