-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AND-4628 Moved NFC enable check #333
Conversation
@@ -32,7 +32,7 @@ fun TangemSdk.Companion.init(activity: ComponentActivity, config: Config = Confi | |||
val secureStorage = SecureStorage.create(activity) | |||
val nfcManager = TangemSdk.initNfcManager(activity) | |||
|
|||
val viewDelegate = DefaultSessionViewDelegate(nfcManager, nfcManager.reader, activity) | |||
val viewDelegate = DefaultSessionViewDelegate(nfcManager, activity) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ты не подлил изменения конструктора DefaultSessionViewDelegate, на тесты не собирается с ошибкой
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
готово
# Conflicts: # tangem-sdk-android/src/main/java/com/tangem/sdk/DefaultSessionViewDelegate.kt
@@ -46,6 +46,17 @@ class DefaultSessionViewDelegate( | |||
) { | |||
Log.view { "session started" } | |||
createAndShowState(SessionViewDelegateState.Ready(formatCardId(cardId)), enableHowTo, message, iconScanRes) | |||
checkNfcEnabled() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а если не дал разрешение на nfc то диалог скана так и останется подвешенный?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ага, помню обсуждали что так ок будет,
иначе много изменений будет в механизме обработки сессии, и в чистоте он потеряет
можно будет сделать отдельной задачей, если сильно понадобится
No description provided.