setSmoothScrollEnabled

open fun setSmoothScrollEnabled(@NonNull overScroller: OverScroller, enabled: Boolean)(source)

Enables or disables Samsung-specific smooth scrolling behavior on the given OverScroller instance.

On Samsung devices running One UI (Android Oreo/API 26 or higher), this method uses Java reflection to invoke the hidden method semSetSmoothScrollEnabled(boolean) on the OverScroller class. This method enables/disables temporarily boosting the CPU/GPU frequencies and scheduling when scrolling.

Parameters

overScroller

the OverScroller object whose scrolling behavior should be adjusted

enabled

true to enable Samsung’s smooth scrolling optimization, false to disable it