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

Commit 365ded39 authored by Christofer Åkersten's avatar Christofer Åkersten
Browse files

Only pass resources to updatable

Test: Instantiate MediaController2
Change-Id: If357a01847d8a2f9995af3f4c3ec3a777082c662
parent 34524151
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;
    }
}