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

Commit d9f11ebb authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Fix bug: Google Talk update title not found anymore"

parents 1cb12707 5b8835d1
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -57,10 +57,15 @@ public class ContactBadgeUtil {

        final String statusLabelRes = streamItem.getLabelRes();
        final String statusResPackage = streamItem.getResPackage();

        // Package name used for resources.getIdentifier()
        String identiferPackage = statusResPackage;
        if (statusLabelRes  != null) {
            Resources resources;
            if (TextUtils.isEmpty(statusResPackage)) {
                resources = context.getResources();
                // In this case, we're using the framework resources.
                identiferPackage = "android";
            } else {
                PackageManager pm = context.getPackageManager();
                try {
@@ -74,7 +79,7 @@ public class ContactBadgeUtil {

            if (resources != null) {
                final int resId = resources.getIdentifier(statusLabelRes, "string",
                        statusResPackage);
                        identiferPackage);
                if (resId == 0) {
                    Log.w(TAG, "Contact status update resource not found: " + statusLabelRes +
                            " in " + statusResPackage);