From 458bf2c3a7b735ff0aad787562acac1e8ce6c39a Mon Sep 17 00:00:00 2001 From: Matt Pietal Date: Mon, 18 May 2020 14:54:06 -0400 Subject: [PATCH] Controls UI - Detail dialog fix Address an error when kotlin was getting a null value for a non-null parameter. Bug: 156626956 Test: Use detail panel Change-Id: I87bdeafdbefa1664fd5fe9a300f020f3b837f823 --- .../src/com/android/systemui/controls/ui/DetailDialog.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt b/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt index 236fa2d29aca3..f970152822224 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt @@ -18,7 +18,6 @@ package com.android.systemui.controls.ui import android.app.ActivityView import android.app.Dialog -import android.content.ComponentName import android.content.Intent import android.provider.Settings import android.view.View @@ -58,17 +57,13 @@ class DetailDialog( launchIntent.putExtra(EXTRA_USE_PANEL, true) // Apply flags to make behaviour match documentLaunchMode=always. - launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) + launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_DOCUMENT) launchIntent.addFlags(Intent.FLAG_ACTIVITY_MULTIPLE_TASK) view.startActivity(launchIntent) } override fun onActivityViewDestroyed(view: ActivityView) {} - - override fun onTaskCreated(taskId: Int, componentName: ComponentName) {} - - override fun onTaskRemovalStarted(taskId: Int) {} } init {