From 106e2406a112946d1b2035881f8e8bf057091d63 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 15 Aug 2020 12:06:33 +0000 Subject: [PATCH] declare several inner classes as static otherwise they keep references to their parent class --- .../mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java | 2 +- .../ui/transaction_list/TransactionListAdapter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java index ac90ce32..1da1cbb1 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java @@ -235,7 +235,7 @@ public class ProfilesRecyclerViewAdapter final ArrayList profiles = Data.profiles.getValue(); return profiles != null ? profiles.size() : 0; } - class ProfileListViewHolder extends RecyclerView.ViewHolder { + static class ProfileListViewHolder extends RecyclerView.ViewHolder { final TextView mEditButton; final TextView mTitle, mColorTag; final LinearLayout tagAndHandleLayout; diff --git a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java index d251cc8d..b959acfd 100644 --- a/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java +++ b/app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java @@ -289,7 +289,7 @@ public class TransactionListAdapter extends RecyclerView.Adapter