mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
Fix: Only change the button color if the current theme is "custom"
This commit is contained in:
parent
2581981c6c
commit
80e8c57930
1 changed files with 4 additions and 2 deletions
|
@ -62,7 +62,8 @@ class ActionsRecyclerAdapter(val activity: Activity):
|
|||
viewHolder.removeAction.visibility = View.GONE
|
||||
viewHolder.chooseButton.visibility = View.VISIBLE
|
||||
viewHolder.chooseButton.setOnClickListener{ chooseApp(actionName.toString()) }
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
if (getSavedTheme(activity) =="custom")
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
}
|
||||
|
||||
} catch (e : Exception) {
|
||||
|
@ -70,7 +71,8 @@ class ActionsRecyclerAdapter(val activity: Activity):
|
|||
viewHolder.removeAction.visibility = View.GONE
|
||||
viewHolder.chooseButton.visibility = View.VISIBLE
|
||||
viewHolder.chooseButton.setOnClickListener{ chooseApp(actionName.toString()) }
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
if (getSavedTheme(activity) =="custom")
|
||||
setButtonColor(viewHolder.chooseButton, vibrantColor)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue