SubhamTyagi / Last-Launcher

Lightweight: Faster than light, Low on memory
GNU General Public License v3.0
167 stars 52 forks source link

fix reset color bug #179

Open xuzhi2021 opened 2 years ago

xuzhi2021 commented 2 years ago
  1. Because resetAppColor() sortNeeded=(dbutils.getsortstypes ()==SORT_BY_COLOR) is usually false, it passes the parameter sortNeeded=false to addAppAfterReset method. Then it will not call sortApps() and not refresh UI.
  2. If the parameter sortNeeded is passed true from resetAppColor(), the effect will be the same as "Reset All". Because the original size is not preserved. After solving thiese two problems and manually testing the effect, "Reset Color" resets the app text color without changing its size. successfully.