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

Commit 4a13816b authored by Priyank Singh's avatar Priyank Singh
Browse files

adding the icon attr to CarNavigationButton

Bug: 132975760
Test: Manual
Change-Id: I561df3301075e04e031478364bd0fe7bc8f208d5
parent ede8b187
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -70,13 +70,9 @@ public class CarNavigationButton extends com.android.keyguard.AlphaOptimizedImag
                R.styleable.CarNavigationButton_unselectedAlpha, mUnselectedAlpha);
        mSelectedIconResourceId = typedArray.getResourceId(
                R.styleable.CarNavigationButton_selectedIcon, mIconResourceId);
        mIconResourceId = typedArray.getResourceId(
                R.styleable.CarNavigationButton_icon, 0);
        typedArray.recycle();

        // ImageView attrs
        TypedArray a = context.obtainStyledAttributes(
                attrs, com.android.internal.R.styleable.ImageView);
        mIconResourceId = a.getResourceId(com.android.internal.R.styleable.ImageView_src, 0);
        a.recycle();
    }


+2 −0
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@
        <attr name="unselectedAlpha" />
        <!-- icon to be rendered when in selected state -->
        <attr name="selectedIcon" />
        <!-- icon to be rendered (drawable) -->
        <attr name="icon"/>
    </declare-styleable>

    <!-- Custom attributes to configure hvac values -->