File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/local Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33import android .content .Context ;
44import android .util .Log ;
5+ import android .view .LayoutInflater ;
56import android .view .View ;
67import android .view .ViewGroup ;
78
@@ -83,6 +84,7 @@ public class LocalItemListAdapter extends RecyclerView.Adapter<RecyclerView.View
8384 private static final int REMOTE_PLAYLIST_CARD_HOLDER_TYPE = 0x3002 ;
8485 private static final int REMOTE_BOOKMARK_PLAYLIST_HOLDER_TYPE = 0x3003 ;
8586
87+ private final LayoutInflater layoutInflater ;
8688 private final LocalItemBuilder localItemBuilder ;
8789 private final ArrayList <LocalItem > localItems ;
8890 private final HistoryRecordManager recordManager ;
@@ -98,6 +100,7 @@ public LocalItemListAdapter(final Context context) {
98100 recordManager = new HistoryRecordManager (context );
99101 localItemBuilder = new LocalItemBuilder (context );
100102 localItems = new ArrayList <>();
103+ layoutInflater = LayoutInflater .from (context );
101104
102105 dateTimeFormatter = DateTimeFormatter .ofLocalizedDate (FormatStyle .SHORT )
103106 .withLocale (Localization .getPreferredLocale (context ));
You can’t perform that action at this time.
0 commit comments