mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-22 07:28:16 +01:00
don't offer NFC on Android 10, where it's broken.
This commit is contained in:
parent
06b6afe612
commit
96f4d2cfc0
1 changed files with 3 additions and 1 deletions
|
@ -30,6 +30,7 @@ import android.nfc.NdefRecord;
|
||||||
import android.nfc.NfcAdapter;
|
import android.nfc.NfcAdapter;
|
||||||
import android.nfc.NfcEvent;
|
import android.nfc.NfcEvent;
|
||||||
import android.nfc.NfcManager;
|
import android.nfc.NfcManager;
|
||||||
|
import android.os.Build;
|
||||||
import android.os.Parcelable;
|
import android.os.Parcelable;
|
||||||
|
|
||||||
import org.eehouse.android.xw4.loc.LocUtils;
|
import org.eehouse.android.xw4.loc.LocUtils;
|
||||||
|
@ -47,7 +48,8 @@ public class NFCUtils {
|
||||||
private static boolean[] s_nfcAvail;
|
private static boolean[] s_nfcAvail;
|
||||||
private static SafeNFC s_safeNFC;
|
private static SafeNFC s_safeNFC;
|
||||||
static {
|
static {
|
||||||
s_inSDK = 14 <= Integer.valueOf( android.os.Build.VERSION.SDK );
|
s_inSDK = 14 <= Build.VERSION.SDK_INT
|
||||||
|
&& Build.VERSION.SDK_INT <= Build.VERSION_CODES.P;
|
||||||
if ( s_inSDK ) {
|
if ( s_inSDK ) {
|
||||||
s_safeNFC = new SafeNFCImpl();
|
s_safeNFC = new SafeNFCImpl();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue