diff options
| author | 2020-06-03 14:45:26 -0400 | |
|---|---|---|
| committer | 2020-06-03 14:45:26 -0400 | |
| commit | eb9e73a1901fe2956096b40335defa643d365725 (patch) | |
| tree | fe7f11c537e4c0ff8a9ce2e30e91f9be59e28773 | |
| parent | bc109d011e040014a59d91361e8acef7ddc736e5 (diff) | |
Controls UI - Handle activity dismissal from dialog
When the task stack indicates a removal, from say the back gesture,
also close the dialog.
Bug: 157664596
Test: Use back gesture within panels
Change-Id: I60beb61a58677b686d1fad5cf72bb38786cd5f34
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt | 4 |
1 files changed, 4 insertions, 0 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 f97015282222..9ec14523a809 100644 --- a/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt +++ b/packages/SystemUI/src/com/android/systemui/controls/ui/DetailDialog.kt @@ -64,6 +64,10 @@ class DetailDialog( } override fun onActivityViewDestroyed(view: ActivityView) {} + + override fun onTaskRemovalStarted(taskId: Int) { + dismiss() + } } init { |