Add FLAG_ACTIVITY_NEW_TASK when blocking number in CC

This commit is contained in:
moezbhatti
2019-07-30 12:37:30 -04:00
parent 354168ab21
commit dc181899eb
@@ -61,7 +61,8 @@ class CallControlBlockingClient @Inject constructor(
override fun block(addresses: List<String>): Completable = Completable.fromCallable {
val reports = addresses.map { CallControl.Report(it) }
CallControl.report(context, arrayListOf<CallControl.Report>().apply { addAll(reports) })
CallControl.report(context, arrayListOf<CallControl.Report>().apply { addAll(reports) },
Intent.FLAG_ACTIVITY_NEW_TASK)
}
override fun unblock(addresses: List<String>): Completable = Completable.fromCallable {