Skip to content

Commit

Permalink
Mark placement for future preference item
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Mar 30, 2024
1 parent 29749c8 commit 92a0be7
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/src/main/java/com/hiddenramblings/tagmo/nfctech/TagWriter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@ object TagWriter {
} catch (e: Exception) {
throw Exception(context.getString(R.string.error_password_write), e)
}
try {
writeLockInfo(mifare)
Debug.verbose(TagWriter::class.java, R.string.lock_write)
} catch (e: Exception) {
throw Exception(context.getString(R.string.error_lock_write), e)
if (true) {
try {
writeLockInfo(mifare)
Debug.verbose(TagWriter::class.java, R.string.lock_write)
} catch (e: Exception) {
throw Exception(context.getString(R.string.error_lock_write), e)
}
}
}

Expand Down Expand Up @@ -88,11 +90,13 @@ object TagWriter {
} catch (e: Exception) {
throw Exception(TagMo.appContext.getString(R.string.error_password_write), e)
}
try {
writeLockInfo(mifare)
Debug.verbose(TagWriter::class.java, R.string.lock_write)
} catch (e: Exception) {
throw Exception(TagMo.appContext.getString(R.string.error_lock_write), e)
if (true) {
try {
writeLockInfo(mifare)
Debug.verbose(TagWriter::class.java, R.string.lock_write)
} catch (e: Exception) {
throw Exception(TagMo.appContext.getString(R.string.error_lock_write), e)
}
}
}

Expand Down

0 comments on commit 92a0be7

Please sign in to comment.