From: Damyan Ivanov Date: Sat, 15 Aug 2020 12:06:33 +0000 (+0000) Subject: declare several inner classes as static X-Git-Tag: v0.15.0~59 X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=106e2406a112946d1b2035881f8e8bf057091d63;p=mobile-ledger.git declare several inner classes as static otherwise they keep references to their parent class --- 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