Revert "Fix duplicate dagger binding of MediaProjectionAppSelect..."
Revert submission 24195703-fix-dup-binding-media-proj-activity Reason for revert: b/293589247 Reverted changes: /q/submissionid:24195703-fix-dup-binding-media-proj-activity Change-Id: I957890b825e0269b0cfd67477a55b948d0fe1f2a
This commit is contained in:
committed by
Nick Chameyev
parent
36d7fcd6a3
commit
18dee077b9
@@ -73,7 +73,7 @@ class MediaProjectionAppSelectorActivity(
|
||||
override fun getLayoutResource() = R.layout.media_projection_app_selector
|
||||
|
||||
public override fun onCreate(bundle: Bundle?) {
|
||||
component = componentFactory.create(view = this, resultHandler = this)
|
||||
component = componentFactory.create(activity = this, view = this, resultHandler = this)
|
||||
component.lifecycleObservers.forEach { lifecycle.addObserver(it) }
|
||||
|
||||
// Create a separate configuration controller for this activity as the configuration
|
||||
|
||||
@@ -161,6 +161,7 @@ interface MediaProjectionAppSelectorComponent {
|
||||
interface Factory {
|
||||
/** Create a factory to inject the activity into the graph */
|
||||
fun create(
|
||||
@BindsInstance activity: MediaProjectionAppSelectorActivity,
|
||||
@BindsInstance view: MediaProjectionAppSelectorView,
|
||||
@BindsInstance resultHandler: MediaProjectionAppSelectorResultHandler,
|
||||
): MediaProjectionAppSelectorComponent
|
||||
|
||||
Reference in New Issue
Block a user