]> git.ktnx.net Git - mobile-ledger.git/commitdiff
declare several inner classes as static
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 15 Aug 2020 12:06:33 +0000 (12:06 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 15 Aug 2020 12:48:13 +0000 (12:48 +0000)
otherwise they keep references to their parent class

app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfilesRecyclerViewAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java

index ac90ce3237a5b24128e187d33118d8fcb2c103e8..1da1cbb10a7cead39aa6babfcbdd9542f06fc355 100644 (file)
@@ -235,7 +235,7 @@ public class ProfilesRecyclerViewAdapter
         final ArrayList<MobileLedgerProfile> 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;
index d251cc8dc79962110cf42b9f72f62c481c9a6e85..b959acfdf30ed75523c64a020c32328b1753cc0a 100644 (file)
@@ -289,7 +289,7 @@ public class TransactionListAdapter extends RecyclerView.Adapter<TransactionRowH
         }
     }
 
-    private class TransactionLoaderParams {
+    private static class TransactionLoaderParams {
         LedgerTransaction transaction;
         TransactionRowHolder holder;
         int position;