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

Commit 2041b76d authored by Jack Yu's avatar Jack Yu
Browse files

Added setIconTint

Test: atest FrameworksTelephonyTests
Bug: 239607619
Change-Id: I35680bdd91af4fe492cd554ab327255c8d4709bd
parent b4e29438
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1858,12 +1858,14 @@ public class SubscriptionController extends ISub.Stub {

    /**
     * Set SIM color tint by simInfo index
     * @param tint the tint color of the SIM
     *
     * @param subId the unique SubInfoRecord index in database
     * @param tint the tint color of the SIM
     *
     * @return the number of records updated
     */
    @Override
    public int setIconTint(int tint, int subId) {
    public int setIconTint(int subId, int tint) {
        if (DBG) logd("[setIconTint]+ tint:" + tint + " subId:" + subId);

        enforceModifyPhoneState("setIconTint");
+112 −9

File changed.

Preview size limit exceeded, changes collapsed.

+3 −0
Original line number Diff line number Diff line
@@ -31,6 +31,7 @@

package com.android.internal.telephony.subscription;

import android.annotation.ColorInt;
import android.annotation.NonNull;
import android.os.UserHandle;
import android.provider.Telephony.SimInfo;
@@ -113,6 +114,7 @@ public class SubscriptionInfoInternal {
    /**
     * The color to be used for tinting the icon when displaying to the user.
     */
    @ColorInt
    private final int mIconTint;

    /**
@@ -509,6 +511,7 @@ public class SubscriptionInfoInternal {
     *
     * @return A hexadecimal color value.
     */
    @ColorInt
    public int getIconTint() {
        return mIconTint;
    }
+37 −9

File changed.

Preview size limit exceeded, changes collapsed.

+205 −5

File changed.

Preview size limit exceeded, changes collapsed.

Loading