Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc181899 authored by moezbhatti's avatar moezbhatti
Browse files

Add FLAG_ACTIVITY_NEW_TASK when blocking number in CC

parent 354168ab
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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 {