otherwise they keep references to their parent class
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;
}
}
- private class TransactionLoaderParams {
+ private static class TransactionLoaderParams {
LedgerTransaction transaction;
TransactionRowHolder holder;
int position;