Skip to content

Commit 3abaf00

Browse files
committed
Revert "Remove unneeded LayoutInflater"
This reverts commit ab73dc1.
1 parent ab73dc1 commit 3abaf00

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/local/LocalItemListAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import android.content.Context;
44
import android.util.Log;
5+
import android.view.LayoutInflater;
56
import android.view.View;
67
import 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));

0 commit comments

Comments
 (0)