diff --git a/app/src/main/java/protect/card_locker/BarcodeSelectorActivity.java b/app/src/main/java/protect/card_locker/BarcodeSelectorActivity.java index 9e1c29830..4a9384cd3 100644 --- a/app/src/main/java/protect/card_locker/BarcodeSelectorActivity.java +++ b/app/src/main/java/protect/card_locker/BarcodeSelectorActivity.java @@ -191,14 +191,7 @@ public class BarcodeSelectorActivity extends AppCompatActivity public void onGlobalLayout() { Log.d(TAG, "Global layout finished, type: + " + formatType + ", width: " + image.getWidth()); - if (Build.VERSION.SDK_INT < 16) - { - image.getViewTreeObserver().removeGlobalOnLayoutListener(this); - } - else - { - image.getViewTreeObserver().removeOnGlobalLayoutListener(this); - } + image.getViewTreeObserver().removeOnGlobalLayoutListener(this); Log.d(TAG, "Generating barcode for type " + formatType); BarcodeImageWriterTask task = new BarcodeImageWriterTask(image, cardId, format, text); diff --git a/app/src/main/java/protect/card_locker/LoyaltyCardEditActivity.java b/app/src/main/java/protect/card_locker/LoyaltyCardEditActivity.java index 2bb279610..ca15b6a42 100644 --- a/app/src/main/java/protect/card_locker/LoyaltyCardEditActivity.java +++ b/app/src/main/java/protect/card_locker/LoyaltyCardEditActivity.java @@ -590,11 +590,7 @@ public class LoyaltyCardEditActivity extends AppCompatActivity new ViewTreeObserver.OnGlobalLayoutListener() { @Override public void onGlobalLayout() { - if (Build.VERSION.SDK_INT < 16) { - barcodeImage.getViewTreeObserver().removeGlobalOnLayoutListener(this); - } else { - barcodeImage.getViewTreeObserver().removeOnGlobalLayoutListener(this); - } + barcodeImage.getViewTreeObserver().removeOnGlobalLayoutListener(this); Log.d(TAG, "ImageView size now known"); new BarcodeImageWriterTask(barcodeImage, cardId, barcodeFormat).execute(); diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3d7ad24fd..ea6d16bd6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,5 +1,6 @@ + xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" + xmlns:tools="http://schemas.android.com/tools"> Catima Search @@ -69,7 +70,7 @@ Use external app About - Copyright 2019–%d Sylvia van Os. + Copyright 2019–%d Sylvia van Os. Based on Loyalty Card Keychain, copyright 2016–2020 Branden Archer. Copylefted libre software, licensed GPLv3+. About %s