forked from upstream-mirrors/quik
Fix launch crash on pre-marshmallow devices
This commit is contained in:
@@ -20,6 +20,7 @@ package com.moez.QKSMS.injection
|
||||
|
||||
import com.moez.QKSMS.common.QKApplication
|
||||
import com.moez.QKSMS.common.QkDialog
|
||||
import com.moez.QKSMS.common.util.QkChooserTargetService
|
||||
import com.moez.QKSMS.common.widget.AvatarView
|
||||
import com.moez.QKSMS.common.widget.PagerTitleView
|
||||
import com.moez.QKSMS.common.widget.PreferenceView
|
||||
@@ -67,6 +68,11 @@ interface AppComponent {
|
||||
|
||||
fun inject(service: WidgetAdapter)
|
||||
|
||||
/**
|
||||
* This can't use AndroidInjection, or else it will crash on pre-marshmallow devices
|
||||
*/
|
||||
fun inject(service: QkChooserTargetService)
|
||||
|
||||
fun inject(view: AvatarView)
|
||||
fun inject(view: DetailedChipView)
|
||||
fun inject(view: PagerTitleView)
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
*/
|
||||
package com.moez.QKSMS.injection.android
|
||||
|
||||
import com.moez.QKSMS.common.util.QkChooserTargetService
|
||||
import com.moez.QKSMS.feature.backup.RestoreBackupService
|
||||
import com.moez.QKSMS.injection.scope.ActivityScope
|
||||
import com.moez.QKSMS.service.HeadlessSmsSendService
|
||||
@@ -34,10 +33,6 @@ abstract class ServiceBuilderModule {
|
||||
@ContributesAndroidInjector()
|
||||
abstract fun bindHeadlessSmsSendService(): HeadlessSmsSendService
|
||||
|
||||
@ActivityScope
|
||||
@ContributesAndroidInjector()
|
||||
abstract fun bindQkChooserTargetService(): QkChooserTargetService
|
||||
|
||||
@ActivityScope
|
||||
@ContributesAndroidInjector()
|
||||
abstract fun bindRestoreBackupService(): RestoreBackupService
|
||||
|
||||
Reference in New Issue
Block a user