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

Commit f0f9dc9a authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

access system resources with android.R package

access system resources with android.R package

Bug: 143289541
Test: verified that symbol is accessible as android.R and values are
still valid through logs.
Change-Id: I38b2e096e4669e46aaeaf509af8fb6e2c08f2351
parent 54d5c0cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -475,7 +475,7 @@ public class SubscriptionController extends ISub.Stub {
    private int getUnusedColor(String callingPackage, String callingFeatureId) {
        List<SubscriptionInfo> availableSubInfos = getActiveSubscriptionInfoList(callingPackage,
                callingFeatureId);
        colorArr = mContext.getResources().getIntArray(com.android.internal.R.array.sim_colors);
        colorArr = mContext.getResources().getIntArray(android.R.array.simColors);
        int colorIdx = 0;

        if (availableSubInfos != null) {
+1 −1
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ public class SubscriptionControllerTest extends TelephonyTest {
        mCallingFeature = mContext.getFeatureId();

        doReturn(1).when(mProxyController).getMaxRafSupported();
        mContextFixture.putIntArrayResource(com.android.internal.R.array.sim_colors, new int[]{5});
        mContextFixture.putIntArrayResource(android.R.array.simColors, new int[]{5});
    }

    @After