Commit 3a978da2 authored by Lars Schmertmann's avatar Lars Schmertmann Committed by André Klitzing
Browse files

Avoid app crash on android when using nfc within a service


Change-Id: I28a165c7b7503b1c8159dd0c46f3f7450e599c74
Reviewed-by: default avatarAlex Blasche <alexander.blasche@qt.io>
parent 6210bfa8
No related merge requests found
Showing with 2 additions and 0 deletions
......@@ -153,6 +153,8 @@ public class QtNfc
static public boolean isAvailable()
{
if (m_activity == null) return false;
m_adapter = NfcAdapter.getDefaultAdapter(m_activity);
if (m_adapter == null) {
//Log.e(TAG, "No NFC available (Adapter is null)");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment