Skip to content

Commit 738338d

Browse files
Remove unneeded LayoutInflater from LocalItemListAdapter
Co-Authored-By: j-haldane <200528955+j-haldane@users.noreply.github.com>
1 parent e758b5f commit 738338d

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

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

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

33
import android.content.Context;
44
import android.util.Log;
5-
import android.view.LayoutInflater;
65
import android.view.View;
76
import android.view.ViewGroup;
87

@@ -84,7 +83,6 @@ public class LocalItemListAdapter extends RecyclerView.Adapter<RecyclerView.View
8483
private static final int REMOTE_PLAYLIST_CARD_HOLDER_TYPE = 0x3002;
8584
private static final int REMOTE_BOOKMARK_PLAYLIST_HOLDER_TYPE = 0x3003;
8685

87-
private final LayoutInflater layoutInflater;
8886
private final LocalItemBuilder localItemBuilder;
8987
private final ArrayList<LocalItem> localItems;
9088
private final HistoryRecordManager recordManager;
@@ -100,7 +98,6 @@ public LocalItemListAdapter(final Context context) {
10098
recordManager = new HistoryRecordManager(context);
10199
localItemBuilder = new LocalItemBuilder(context);
102100
localItems = new ArrayList<>();
103-
layoutInflater = LayoutInflater.from(context);
104101

105102
dateTimeFormatter = DateTimeFormatter.ofLocalizedDate(FormatStyle.SHORT)
106103
.withLocale(Localization.getPreferredLocale(context));

0 commit comments

Comments
 (0)