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

Commit 30f163de authored by Lucas Dupin's avatar Lucas Dupin Committed by android-build-merger
Browse files

Fix unreadable clock

am: 89233c49

Change-Id: I5511e60e8947de344722325ced88930584ef80a9
parents 8bb1334e 89233c49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -106,7 +106,7 @@ public class ColorExtractor implements WallpaperManager.OnColorsChangedListener
        }
    }

    private void extractWallpaperColors() {
    protected void extractWallpaperColors() {
        GradientColors[] systemColors = mGradientColors.get(WallpaperManager.FLAG_SYSTEM);
        GradientColors[] lockColors = mGradientColors.get(WallpaperManager.FLAG_LOCK);
        extractInto(mSystemColors,
+1 −3
Original line number Diff line number Diff line
@@ -323,7 +323,7 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
        mColorExtractor = Dependency.get(SysuiColorExtractor.class);
        mColorExtractor.addOnColorsChangedListener(this);
        mUsingDarkText = mColorExtractor.getColors(ColorExtractor.TYPE_DARK,
                WallpaperManager.FLAG_SYSTEM, true).supportsDarkText();
                WallpaperManager.FLAG_SYSTEM).supportsDarkText();
        setTheme(mUsingDarkText ? R.style.RecentsTheme_Wallpaper_Light
                : R.style.RecentsTheme_Wallpaper);

@@ -394,8 +394,6 @@ public class RecentsActivity extends Activity implements ViewTreeObserver.OnPreD
    @Override
    public void onColorsChanged(ColorExtractor colorExtractor, int which) {
        if ((which & WallpaperManager.FLAG_SYSTEM) != 0) {
            // Recents doesn't care about the wallpaper being visible or not, it always
            // wants to scrim with wallpaper colors
            ColorExtractor.GradientColors colors = mColorExtractor.getNeutralColors();
            boolean darkText = colors.supportsDarkText();
            if (darkText != mUsingDarkText) {
+1 −1
Original line number Diff line number Diff line
@@ -111,7 +111,7 @@
        <item name="android:colorBackground">@*android:color/background_material_dark</item>
    </style>

    <style name="TextAppearance.Keyguard" parent="Theme.SystemUI">
    <style name="TextAppearance.Keyguard">
        <item name="android:textSize">@dimen/widget_title_font_size</item>
        <item name="android:gravity">center</item>
        <item name="android:ellipsize">end</item>
+1 −1
Original line number Diff line number Diff line
@@ -374,7 +374,7 @@ public class KeyguardClockSwitch extends RelativeLayout {

    private void updateColors() {
        ColorExtractor.GradientColors colors = mSysuiColorExtractor.getColors(
                WallpaperManager.FLAG_LOCK, true);
                WallpaperManager.FLAG_LOCK);
        mSupportsDarkText = colors.supportsDarkText();
        mColorPalette = colors.getColorPalette();
        if (mClockPlugin != null) {
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public class AnalogClockController implements ClockPlugin {
        setDarkAmount(1f);
        setTextColor(Color.WHITE);
        ColorExtractor.GradientColors colors = mColorExtractor.getColors(
                WallpaperManager.FLAG_LOCK, true);
                WallpaperManager.FLAG_LOCK);
        setColorPalette(colors.supportsDarkText(), colors.getColorPalette());
        onTimeTick();

Loading