janithcooray / lin_os_swap_mod

increases the SWAP memory by an additional 4GB or 8GB for Android 7.0 or above
GNU General Public License v3.0
76 stars 6 forks source link

Fix reversed logic for 'Set Swap Priority above Zram?' option #20

Closed Animesh-Does-Code closed 7 months ago

Animesh-Does-Code commented 8 months ago

This was caused by commit https://github.com/janithcooray/lin_os_swap_mod/commit/84440c9f969341a65478003c07911a714c8169df and is related to issue https://github.com/janithcooray/lin_os_swap_mod/issues/10. OVER_ZRAM_PRIOR's values in customize.sh were reversed from what they should be, so answering 'Yes' would not set the swapfile's priority to 0 as expected.

This pull request is the same as #16, but only contains the changes related to ZRAM priority logic, without commits from other PRs.

janithcooray commented 7 months ago

@Animesh-Does-Code Thank you very much!