Merge "Move ViewCapture On/Off controls to QuickSettings Tile." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
27f5768520
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user