From 92a0be73ec1e64321cd3c7c0fb48a49bbe3d6c9e Mon Sep 17 00:00:00 2001 From: Abandoned Cart Date: Sat, 30 Mar 2024 09:23:10 -0400 Subject: [PATCH] Mark placement for future preference item --- .../tagmo/nfctech/TagWriter.kt | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/app/src/main/java/com/hiddenramblings/tagmo/nfctech/TagWriter.kt b/app/src/main/java/com/hiddenramblings/tagmo/nfctech/TagWriter.kt index e4d33262e..c5042869d 100644 --- a/app/src/main/java/com/hiddenramblings/tagmo/nfctech/TagWriter.kt +++ b/app/src/main/java/com/hiddenramblings/tagmo/nfctech/TagWriter.kt @@ -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) + } } } @@ -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) + } } }