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

Commit c29c2020 authored by Jason Monk's avatar Jason Monk
Browse files

Fix tuner crash from dependencies

Test: atest SystemUITests
Change-Id: I530ac3fa5d7dc2a044feab81de9587a21a3bcef7
Fixes: 122320435
parent 7ee09966
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -512,6 +512,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);
    }
}