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

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

Merge "Fix tuner crash from dependencies"

parents a449853e c29c2020
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -511,6 +511,9 @@ public class Dependency extends SystemUI {
    public static void initDependencies(Context context) {
        if (sDependency != null) return;
        Dependency d = new Dependency();
        SystemUIFactory.getInstance().getRootComponent()
                .createDependency()
                .createSystemUI(d);
        d.mContext = context;
        d.mComponents = new HashMap<>();
        d.start();
+6 −0
Original line number Diff line number Diff line
@@ -69,4 +69,10 @@ public class DependencyTest extends SysuiTestCase {
        mDependency.onConfigurationChanged(null);
        verify(d).onConfigurationChanged(eq(null));
    }

    @Test
    public void testInitDependency() {
        Dependency.clearDependencies();
        Dependency.initDependencies(mContext);
    }
}