Don't use system blocking provider, since it won't let messages reach QKSMS anyway

This commit is contained in:
moezbhatti
2019-08-22 22:14:27 +02:00
parent 6b3fffda85
commit d91c9043da
12 changed files with 74 additions and 113 deletions
@@ -13,7 +13,7 @@ import javax.inject.Singleton
class BlockingManager @Inject constructor(
private val prefs: Preferences,
private val callControlBlockingClient: CallControlBlockingClient,
private val androidBlockingClient: AndroidBlockingClient,
private val qksmsBlockingClient: QksmsBlockingClient,
private val shouldIAnswerBlockingClient: ShouldIAnswerBlockingClient
) : BlockingClient {
@@ -21,7 +21,7 @@ class BlockingManager @Inject constructor(
get() = when (prefs.blockingManager.get()) {
Preferences.BLOCKING_MANAGER_SIA -> shouldIAnswerBlockingClient
Preferences.BLOCKING_MANAGER_CC -> callControlBlockingClient
else -> androidBlockingClient
else -> qksmsBlockingClient
}
init {