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

Commit 4a2a9a3c authored by Jason Monk's avatar Jason Monk Committed by android-build-merger
Browse files

Merge "Fix stretched nav bar menu icon" into oc-dev

am: b7980a3b

Change-Id: I013d9a91e9ade0ca0d5e311cd285628a44b3ec11
parents 232ea209 b7980a3b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.systemui.statusbar.policy;
import android.annotation.Nullable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.LayerDrawable;
import android.view.Gravity;

/**
 * Drawable for {@link KeyButtonView}s which contains an asset for both normal mode and light
@@ -40,6 +41,9 @@ public class KeyButtonDrawable extends LayerDrawable {

    private KeyButtonDrawable(Drawable[] drawables) {
        super(drawables);
        for (int i = 0; i < drawables.length; i++) {
            setLayerGravity(i, Gravity.CENTER);
        }
        mutate();
        mHasDarkDrawable = drawables.length > 1;
        setDarkIntensity(0f);