Loading packages/SystemUI/src/com/android/systemui/screencapture/record/largescreen/ui/compose/PreCaptureUI.kt +7 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,13 @@ fun PreCaptureUI(viewModel: PreCaptureViewModel) { } } ScreenCaptureRegion.PARTIAL -> { // TODO(b/422834671) If the capture region is PARTIAL, add region box here. // TODO(b/427541309) Set the initial width and height of the RegionBox based on the // viewmodel state. RegionBox( initialWidth = 100.dp, initialHeight = 100.dp, onDragEnd = viewModel::onPartialRegionDragEnd, ) } ScreenCaptureRegion.APP_WINDOW -> {} } Loading packages/SystemUI/src/com/android/systemui/screencapture/record/largescreen/ui/viewmodel/PreCaptureViewModel.kt +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ package com.android.systemui.screencapture.record.largescreen.ui.viewmodel import android.content.Context import androidx.compose.ui.geometry.Offset import androidx.compose.ui.unit.Dp import com.android.systemui.dagger.qualifiers.Application import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.lifecycle.HydratedActivatable Loading Loading @@ -102,6 +104,10 @@ constructor( // TODO(b/427500006) Close the window after requesting a fullscreen screenshot. } fun onPartialRegionDragEnd(offset: Offset, width: Dp, height: Dp) { // TODO(b/427541309) Update region box position and size. } override suspend fun onActivated() { coroutineScope { launch { iconProvider.collectIcons() } } } Loading Loading
packages/SystemUI/src/com/android/systemui/screencapture/record/largescreen/ui/compose/PreCaptureUI.kt +7 −1 Original line number Diff line number Diff line Loading @@ -65,7 +65,13 @@ fun PreCaptureUI(viewModel: PreCaptureViewModel) { } } ScreenCaptureRegion.PARTIAL -> { // TODO(b/422834671) If the capture region is PARTIAL, add region box here. // TODO(b/427541309) Set the initial width and height of the RegionBox based on the // viewmodel state. RegionBox( initialWidth = 100.dp, initialHeight = 100.dp, onDragEnd = viewModel::onPartialRegionDragEnd, ) } ScreenCaptureRegion.APP_WINDOW -> {} } Loading
packages/SystemUI/src/com/android/systemui/screencapture/record/largescreen/ui/viewmodel/PreCaptureViewModel.kt +6 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,8 @@ package com.android.systemui.screencapture.record.largescreen.ui.viewmodel import android.content.Context import androidx.compose.ui.geometry.Offset import androidx.compose.ui.unit.Dp import com.android.systemui.dagger.qualifiers.Application import com.android.systemui.dagger.qualifiers.Background import com.android.systemui.lifecycle.HydratedActivatable Loading Loading @@ -102,6 +104,10 @@ constructor( // TODO(b/427500006) Close the window after requesting a fullscreen screenshot. } fun onPartialRegionDragEnd(offset: Offset, width: Dp, height: Dp) { // TODO(b/427541309) Update region box position and size. } override suspend fun onActivated() { coroutineScope { launch { iconProvider.collectIcons() } } } Loading