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

Commit 715cce9b authored by Erik Wolsheimer's avatar Erik Wolsheimer Committed by Android (Google) Code Review
Browse files

Merge "Use Context#getPackageName when retrieving string resource identifier" into sc-dev

parents 8ab6bd5b 3e0558a8
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -84,8 +84,7 @@ public class MDNSFilterPlugin implements PrintServicePlugin {
     */
    public MDNSFilterPlugin(@NonNull Context context, @NonNull String name,
            @NonNull CharSequence packageName, @NonNull List<String> mDNSNames) {
        mName = context.getResources().getIdentifier(name, null,
                "com.android.printservice.recommendation");
        mName = context.getResources().getIdentifier(name, null, context.getPackageName());
        mPackageName = packageName;
        mMDNSFilteredDiscovery = new MDNSFilteredDiscovery(context, PRINTER_SERVICE_TYPES,
                new VendorNameFilter(new HashSet<>(mDNSNames)));