Merge "Take a context to start setting intent in DreamBackend" into pi-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
31c29dd826
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user