Updated on 2026-08-14
This commit is contained in:
parent
9ef9542750
commit
436a5a115f
9 changed files with 74 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
package com.tangem.domain.notifications
|
||||
|
||||
import com.tangem.utils.info.AppInfoProvider
|
||||
import com.tangem.utils.notifications.PushNotificationsTokenProvider
|
||||
import javax.inject.Inject
|
||||
|
||||
class ShouldShowHuaweiWarningUseCase @Inject constructor(
|
||||
private val appInfoProvider: AppInfoProvider,
|
||||
private val pushNotificationsTokenProvider: PushNotificationsTokenProvider,
|
||||
) {
|
||||
|
||||
suspend operator fun invoke(): Boolean {
|
||||
return appInfoProvider.isHuaweiDevice && pushNotificationsTokenProvider.getToken().isEmpty()
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue