fix #4720
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
from kivy.uix.widget import Widget
|
||||
from kivy.properties import ObjectProperty
|
||||
|
||||
__all__ = ('NFCBase', 'NFCScanner')
|
||||
|
||||
class NFCBase(Widget):
|
||||
|
||||
@@ -117,8 +117,8 @@ class ScannerAndroid(NFCBase):
|
||||
recTypes = []
|
||||
for record in ndefrecords:
|
||||
recTypes.append({
|
||||
'type': ''.join(map(unichr, record.getType())),
|
||||
'payload': ''.join(map(unichr, record.getPayload()))
|
||||
'type': ''.join(map(chr, record.getType())),
|
||||
'payload': ''.join(map(chr, record.getPayload()))
|
||||
})
|
||||
|
||||
details['recTypes'] = recTypes
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
from . import NFCBase
|
||||
from kivy.clock import Clock
|
||||
from kivy.logger import Logger
|
||||
from kivy.app import App
|
||||
|
||||
class ScannerDummy(NFCBase):
|
||||
'''This is the dummy interface that gets selected in case any other
|
||||
|
||||
Reference in New Issue
Block a user