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

Commit 3a6f2227 authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 7243396 from 260beafc to sc-v2-release

Change-Id: If6f124f12ab1966d9df6c33136d56de316c27780
parents 748d2ee8 260beafc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ android_app {
    optimize: {
        enabled: false,
    },

    kotlincflags: ["-Xjvm-default=enable"],
    certificate: "",

    privileged: true,
+9 −0
Original line number Diff line number Diff line
@@ -9,6 +9,8 @@ import android.graphics.drawable.Drawable;
import android.text.TextUtils;
import android.util.Log;

import androidx.annotation.ColorInt;

public abstract class ResourcesApkProvider {
    private static final String TAG = "ResourcesApkProvider";

@@ -55,6 +57,13 @@ public abstract class ResourcesApkProvider {
        return mStubApkResources.getDrawable(resourceId, null);
    }

    @ColorInt
    protected int getItemColorFromStub(String prefix, String itemName) {
        int resourceId = mStubApkResources.getIdentifier(String.format("%s%s", prefix, itemName),
                "color", mStubPackageName);
        return mStubApkResources.getColor(resourceId, null);
    }

    public boolean isAvailable() {
        return mStubApkResources != null;
    }