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

Commit 99dd308f authored by Lucas Silva's avatar Lucas Silva
Browse files

Add new back arrow icon for dream previews.

This icon contains a text protection shadow, so that it is still visible
when the dream itself has a white background.

Test: locally on device
Bug: 219747041
Change-Id: I4ce72aa817742876bd227a441bfe0989c77f1cdd
parent 4207fcf3
Loading
Loading
Loading
Loading
+463 B
Loading image diff...
+1.28 KiB
Loading image diff...
+2.32 KiB
Loading image diff...
+2 −3
Original line number Diff line number Diff line
@@ -24,6 +24,5 @@
    android:shadowColor="@color/keyguard_shadow_color"
    android:shadowRadius="?attr/shadowRadius"
    android:gravity="center_vertical"
    android:drawableStart="@drawable/ic_arrow_back"
    android:drawablePadding="@dimen/dream_overlay_complication_preview_icon_padding"
    android:drawableTint="@android:color/white"/>
    android:drawableStart="@drawable/dream_preview_back_arrow"
    android:drawablePadding="@dimen/dream_overlay_complication_preview_icon_padding"/>
+7 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import static com.android.systemui.dreams.complication.dagger.DreamPreviewCompli
import static com.android.systemui.dreams.complication.dagger.DreamPreviewComplicationComponent.DreamPreviewComplicationModule.DREAM_PREVIEW_COMPLICATION_LAYOUT_PARAMS;
import static com.android.systemui.dreams.complication.dagger.DreamPreviewComplicationComponent.DreamPreviewComplicationModule.DREAM_PREVIEW_COMPLICATION_VIEW;

import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.view.View;
import android.widget.TextView;
@@ -86,6 +88,11 @@ public class DreamPreviewComplication implements Complication {
            if (!TextUtils.isEmpty(dreamLabel)) {
                mView.setText(dreamLabel);
            }
            for (Drawable drawable : mView.getCompoundDrawablesRelative()) {
                if (drawable instanceof BitmapDrawable) {
                    drawable.setAutoMirrored(true);
                }
            }
        }

        @Override