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

Commit ea945ada authored by Fan Zhang's avatar Fan Zhang
Browse files

Take a context to start setting intent in DreamBackend

Change-Id: I76d3751c950b1af9065d58b3b740736b3432606d
Fixes: 111375261
Test: rebuild
parent db4a640c
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -256,11 +256,12 @@ public class DreamBackend {
        }
    }

    public void launchSettings(DreamInfo dreamInfo) {
    public void launchSettings(Context uiContext, DreamInfo dreamInfo) {
        logd("launchSettings(%s)", dreamInfo);
        if (dreamInfo == null || dreamInfo.settingsComponentName == null)
        if (dreamInfo == null || dreamInfo.settingsComponentName == null) {
            return;
        mContext.startActivity(new Intent().setComponent(dreamInfo.settingsComponentName));
        }
        uiContext.startActivity(new Intent().setComponent(dreamInfo.settingsComponentName));
    }

    public void preview(DreamInfo dreamInfo) {