SmartPack / SmartPack-Kernel-Manager

Source code of SmartPack-Kernel Manager, the Ultimate Tool to Manage your Kernel
https://play.google.com/store/apps/details?id=com.smartpack.kernelmanager.pro
GNU General Public License v3.0
639 stars 71 forks source link

Smartpack:Fix Navigation Bar Lag when on OverallFragment #75

Closed mpschahal16 closed 4 years ago

mpschahal16 commented 4 years ago

This lag was happening because of excessive read in UI thread.

So separated the read operations in non UI thread and displaying them in UI thread.

Tested On Asus max pro m1

No Crash. Now navigation bar does't lag while opening or scrolling when current fragment is Overall

source : https://github.com/SmartPack/SmartPack-Kernel-Manager/blob/2c786315d25eb5a02394499c600d64ff3fb751e3/app/src/main/java/com/smartpack/kernelmanager/fragments/RecyclerViewFragment.java#L796

Signed-off-by: Manpreet Singh mpschahal16@gmail.com

sunilpaulmathew commented 4 years ago

@mpschahal16 Thank you very much for your work. I'll cherry-pick your commit to the beta branch before merging it to the master branch. Edit: Done a5a52af83f82a46e778bfd1d1c1df3fb8c6b6405