From 5aec3808de833367e5c9f2967978ecb64e69c97f Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 31 Jan 2021 11:38:41 +0000 Subject: [PATCH] Rename QEScanAbleFragment to QRScanCapableFragment --- .../{QRScanAbleFragment.java => QRScanCapableFragment.java} | 2 +- .../ui/new_transaction/NewTransactionFragment.java | 4 ++-- .../ktnx/mobileledger/ui/patterns/PatternDetailsAdapter.java | 4 ++-- .../ktnx/mobileledger/ui/patterns/PatternDetailsFragment.java | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename app/src/main/java/net/ktnx/mobileledger/ui/{QRScanAbleFragment.java => QRScanCapableFragment.java} (95%) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/QRScanAbleFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/QRScanCapableFragment.java similarity index 95% rename from app/src/main/java/net/ktnx/mobileledger/ui/QRScanAbleFragment.java rename to app/src/main/java/net/ktnx/mobileledger/ui/QRScanCapableFragment.java index 6acb4497..a23a402a 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/QRScanAbleFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/QRScanCapableFragment.java @@ -24,7 +24,7 @@ import androidx.annotation.NonNull; import androidx.fragment.app.Fragment; import androidx.lifecycle.MutableLiveData; -public abstract class QRScanAbleFragment extends Fragment { +public abstract class QRScanCapableFragment extends Fragment { private static final MutableLiveData qrScanTrigger = new MutableLiveData<>(); protected final ActivityResultLauncher scanQrLauncher = QR.registerLauncher(this, this::onQrScanned); public static void triggerQRScan() { diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionFragment.java b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionFragment.java index 9a2226f3..0b82c27b 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionFragment.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionFragment.java @@ -56,7 +56,7 @@ import net.ktnx.mobileledger.model.Data; import net.ktnx.mobileledger.model.LedgerTransaction; import net.ktnx.mobileledger.model.LedgerTransactionAccount; import net.ktnx.mobileledger.model.MobileLedgerProfile; -import net.ktnx.mobileledger.ui.QRScanAbleFragment; +import net.ktnx.mobileledger.ui.QRScanCapableFragment; import net.ktnx.mobileledger.ui.patterns.PatternsActivity; import net.ktnx.mobileledger.utils.Logger; import net.ktnx.mobileledger.utils.Misc; @@ -79,7 +79,7 @@ import java.util.regex.Pattern; // TODO: offer to undo account remove-on-swipe -public class NewTransactionFragment extends QRScanAbleFragment { +public class NewTransactionFragment extends QRScanCapableFragment { private NewTransactionItemsAdapter listAdapter; private NewTransactionModel viewModel; private FloatingActionButton fab; diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternDetailsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternDetailsAdapter.java index 25083fac..1484eab7 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternDetailsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/patterns/PatternDetailsAdapter.java @@ -36,7 +36,7 @@ import net.ktnx.mobileledger.db.PatternBase; import net.ktnx.mobileledger.model.Data; import net.ktnx.mobileledger.model.PatternDetailsItem; import net.ktnx.mobileledger.ui.PatternDetailSourceSelectorFragment; -import net.ktnx.mobileledger.ui.QRScanAbleFragment; +import net.ktnx.mobileledger.ui.QRScanCapableFragment; import net.ktnx.mobileledger.utils.Logger; import net.ktnx.mobileledger.utils.Misc; @@ -417,7 +417,7 @@ class PatternDetailsAdapter extends RecyclerView.Adapter