change variable name
create a private method (convertToPrefKey)
refactor (extract some logics to private method)
fix bug about detecting checked app list