Fix deprecated code

Replace removeGlobalOnLayoutListener by removeOnGlobalLayoutListener
This commit is contained in:
Tobias_Groza
2023-10-01 01:56:42 +02:00
committed by Hans-Christoph Steiner
parent 0292e7a299
commit 11b6d26e9d

View File

@@ -1282,7 +1282,7 @@ public class AppDetailsRecyclerViewAdapter
// Expanded item dimensions should be already calculated at this moment
// so it's possible to correctly scroll to a given position
recyclerView.smoothScrollToPosition(currentPosition);
recyclerView.getViewTreeObserver().removeGlobalOnLayoutListener(this);
recyclerView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
}
});
}