Skip to content

Commit 48e826e

Browse files
authored
Fix header crash in History List view (#12214)
* Adapt header handling changes from other recyclerview adapters to fix issue #4475 in StatisticsPlaylistFragment * Remove unneeded LayoutInflater * Revert "Remove unneeded LayoutInflater" This reverts commit ab73dc1. * Revert "Adapt header handling changes from other recyclerview adapters to fix issue #4475 in StatisticsPlaylistFragment" This reverts commit 2abe71c. * Remove header animation causing view recycling issue
1 parent 088cb83 commit 48e826e

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ public void showLoading() {
194194
if (itemsList != null) {
195195
animateHideRecyclerViewAllowingScrolling(itemsList);
196196
}
197-
if (headerRootBinding != null) {
198-
animate(headerRootBinding.getRoot(), false, 200);
199-
}
200197
}
201198

202199
@Override
@@ -205,9 +202,6 @@ public void hideLoading() {
205202
if (itemsList != null) {
206203
animate(itemsList, true, 200);
207204
}
208-
if (headerRootBinding != null) {
209-
animate(headerRootBinding.getRoot(), true, 200);
210-
}
211205
}
212206

213207
@Override
@@ -253,9 +247,6 @@ public void handleError() {
253247
if (itemsList != null) {
254248
animateHideRecyclerViewAllowingScrolling(itemsList);
255249
}
256-
if (headerRootBinding != null) {
257-
animate(headerRootBinding.getRoot(), false, 200);
258-
}
259250
}
260251

261252
@Override

0 commit comments

Comments
 (0)