Fix crash when starting daydream setting with wrong context

am: d9c6692f25

Change-Id: I723b66eced5ace06f5821463c3dd783a18496327
This commit is contained in:
Fan Zhang
2018-11-07 10:51:48 -08:00
committed by android-build-merger

View File

@@ -69,7 +69,7 @@ public class CurrentDreamPreferenceController extends AbstractPreferenceControll
private void launchScreenSaverSettings() {
Optional<DreamInfo> info = getActiveDreamInfo();
if (!info.isPresent()) return;
mBackend.launchSettings(info.get());
mBackend.launchSettings(mContext, info.get());
}
private Optional<DreamInfo> getActiveDreamInfo() {