Skip to content

Commit

Permalink
AND-9232 disable before enable
Browse files Browse the repository at this point in the history
  • Loading branch information
kozarezvlad committed Nov 26, 2024
1 parent 64ce2f5 commit e6ecff7
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ class NfcManager : NfcAdapter.ReaderCallback, ReadingActiveListener, DefaultLife
}

override fun onStartSession() {
disableReaderMode()
Thread.sleep(DELAY_BEFORE_ENABLE)
enableReaderModeIfNfcEnabled()
}

Expand Down Expand Up @@ -142,5 +144,6 @@ class NfcManager : NfcAdapter.ReaderCallback, ReadingActiveListener, DefaultLife
NfcAdapter.FLAG_READER_NO_PLATFORM_SOUNDS

const val IGNORE_DEBOUNCE_MS = 1_500
private const val DELAY_BEFORE_ENABLE = 200L
}
}

0 comments on commit e6ecff7

Please sign in to comment.