mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-04-19 14:27:01 -04:00
Fix deprecated code
Replace removeGlobalOnLayoutListener by removeOnGlobalLayoutListener
This commit is contained in:
committed by
Hans-Christoph Steiner
parent
0292e7a299
commit
11b6d26e9d
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user