Skip to content

Commit

Permalink
fix disabled apps not opening settings
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Sep 9, 2024
1 parent d38a1bc commit 171089c
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ class RecyclerViewAdapter(private var mContext: Context, private val folders: Li
binding.title.text = getAppname(name, mContext)
binding.imageView.imageTintList = null
binding.imageView.setImageDrawable(getAppIcon(name, mContext))
if(isAppEnabled(name, mContext)) {
setMenu(R.menu.context_folder_app_menu, branch)
} else {
setMenu(R.menu.context_folder_app_menu, branch)
if(!isAppEnabled(name, mContext)) {
binding.title.text = getAppname(name, mContext) + " " + mContext.getString(R.string.app_disabled_suffix)
binding.title.isEnabled = false
binding.imageView.setImageDrawable(getAppIconDisabled(name, mContext))
Expand Down

0 comments on commit 171089c

Please sign in to comment.