+31
−3
packages/SystemUI/src/com/android/systemui/qs/tiles/dialog/ScreenRecordDetailsViewModel.kt
0 → 100644
+61
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Create a new details view model called ScreenRecordDetailsViewModel and add it to ScreenRecordTile so that the screen record details view is shown when clicking on the tile (if the flag is enabled). This model class will be further developed in later CLs. The functionality to dismiss the dialog should be in the DialogDelegate, rather than in the view binder, since the detailed view will not dismiss the dialog when start recording button is clicked. Thus, this CL extract the part to dismiss dialog out and move it back to the DialogDelegate. This CL follows the design mentioned in go/al-screen-record-detailed-view. Bug: b/378514312 Flag: com.android.systemui.qs_tile_detailed_view Test: ScreenRecordTileTest Test: Click on screen record tile in the QS -> verify that detailed view is shown. Change-Id: Iaeed00e3ab2678489926d5555b7152e84bae3063