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

Commit ae7ce1a0 authored by Lucas Silva's avatar Lucas Silva Committed by Android (Google) Code Review
Browse files

Merge "Add new back arrow icon for dream previews." into tm-dev

parents 626e5753 99dd308f
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