From ae3e49086b75704f9cb9d87eac8b590bc2980832 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sun, 3 May 2020 12:10:14 +0300 Subject: [PATCH] private access when appropriate --- .../activity/NewTransactionItemsAdapter.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java index 741af1b0..7aaacf9e 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/activity/NewTransactionItemsAdapter.java @@ -52,7 +52,7 @@ import static net.ktnx.mobileledger.utils.Logger.debug; class NewTransactionItemsAdapter extends RecyclerView.Adapter implements DescriptionSelectedCallback { - NewTransactionModel model; + private NewTransactionModel model; private MobileLedgerProfile mProfile; private ItemTouchHelper touchHelper; private RecyclerView recyclerView; @@ -126,10 +126,10 @@ class NewTransactionItemsAdapter extends RecyclerView.Adapter 2) notifyItemRangeRemoved(3, presentItemCount - 2); // all the rest are gone } - public void updateFocusedItem(int position) { + void updateFocusedItem(int position) { model.updateFocusedItem(position); } - public void noteFocusIsOnAccount(int position) { + void noteFocusIsOnAccount(int position) { model.noteFocusChanged(position, NewTransactionModel.FocusedElement.Account); } - public void noteFocusIsOnAmount(int position) { + void noteFocusIsOnAmount(int position) { model.noteFocusChanged(position, NewTransactionModel.FocusedElement.Amount); } - public void noteFocusIsOnComment(int position) { + void noteFocusIsOnComment(int position) { model.noteFocusChanged(position, NewTransactionModel.FocusedElement.Comment); } private void holdSubmittableChecks() { -- 2.39.5