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

Commit 4b60648b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only pass resources to updatable"

parents c694cde7 365ded39
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package android.media.update;

import android.content.res.Resources;
import android.content.res.Resources.Theme;
import android.content.Context;
import android.content.pm.PackageManager.NameNotFoundException;

@@ -49,8 +51,8 @@ public final class ApiLoader {
                Context.CONTEXT_INCLUDE_CODE | Context.CONTEXT_IGNORE_SECURITY);
        sMediaLibrary = libContext.getClassLoader()
                .loadClass(UPDATE_CLASS)
                .getMethod(UPDATE_METHOD, Context.class, Context.class)
                .invoke(null, appContext, libContext);
                .getMethod(UPDATE_METHOD, Resources.class, Theme.class)
                .invoke(null, libContext.getResources(), libContext.getTheme());
        return sMediaLibrary;
    }
}