@onekeyfe/react-native-lite-card 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -52,9 +52,12 @@ class OKLiteManager(private val context: ReactApplicationContext) :
|
|
|
52
52
|
private var mCurrentCardState: CardState? = null
|
|
53
53
|
|
|
54
54
|
private val mActivityEventListener = object : BaseActivityEventListener() {
|
|
55
|
-
override fun onNewIntent(intent: Intent
|
|
55
|
+
override fun onNewIntent(intent: Intent) {
|
|
56
56
|
super.onNewIntent(intent)
|
|
57
|
-
val action = intent
|
|
57
|
+
val action = intent.action
|
|
58
|
+
if (action == null) {
|
|
59
|
+
return
|
|
60
|
+
}
|
|
58
61
|
if ((action == NfcAdapter.ACTION_NDEF_DISCOVERED)
|
|
59
62
|
|| action == NfcAdapter.ACTION_TECH_DISCOVERED
|
|
60
63
|
|| action == NfcAdapter.ACTION_TAG_DISCOVERED
|
|
Binary file
|