Merge "Move ViewCapture On/Off controls to QuickSettings Tile." into tm-qpr-dev

This commit is contained in:
Stefan Andonian
2023-01-31 17:19:57 +00:00
committed by Android (Google) Code Review

View File

@@ -19,7 +19,6 @@ package com.android.systemui.motiontool
import android.view.WindowManagerGlobal import android.view.WindowManagerGlobal
import com.android.app.motiontool.DdmHandleMotionTool import com.android.app.motiontool.DdmHandleMotionTool
import com.android.app.motiontool.MotionToolManager import com.android.app.motiontool.MotionToolManager
import com.android.app.viewcapture.ViewCapture
import com.android.systemui.CoreStartable import com.android.systemui.CoreStartable
import dagger.Binds import dagger.Binds
import dagger.Module import dagger.Module
@@ -38,17 +37,12 @@ interface MotionToolModule {
} }
@Provides @Provides
fun provideMotionToolManager( fun provideMotionToolManager(windowManagerGlobal: WindowManagerGlobal): MotionToolManager {
viewCapture: ViewCapture, return MotionToolManager.getInstance(windowManagerGlobal)
windowManagerGlobal: WindowManagerGlobal
): MotionToolManager {
return MotionToolManager.getInstance(viewCapture, windowManagerGlobal)
} }
@Provides @Provides
fun provideWindowManagerGlobal(): WindowManagerGlobal = WindowManagerGlobal.getInstance() fun provideWindowManagerGlobal(): WindowManagerGlobal = WindowManagerGlobal.getInstance()
@Provides fun provideViewCapture(): ViewCapture = ViewCapture.getInstance()
} }
@Binds @Binds