mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-02 06:20:14 +01:00
fix NPE on older phones
This commit is contained in:
parent
7743fc52d5
commit
8260fb1437
1 changed files with 3 additions and 1 deletions
|
@ -76,7 +76,9 @@ public class NFCUtils {
|
|||
NfcManager manager =
|
||||
(NfcManager)activity.getSystemService( Context.NFC_SERVICE );
|
||||
NfcAdapter adapter = manager.getDefaultAdapter();
|
||||
adapter.setNdefPushMessageCallback( cb, activity );
|
||||
if ( null != adapter ) {
|
||||
adapter.setNdefPushMessageCallback( cb, activity );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue