mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-23 06:21:31 +01:00
fix: add defaults so as to fix bug
This commit is contained in:
parent
1ff26ac036
commit
0d9d85f253
1 changed files with 4 additions and 1 deletions
|
@ -81,7 +81,10 @@ class ActionsRecyclerAdapter(val activity: Activity):
|
|||
fun updateViewHolder() {
|
||||
val app = gesture.getApp(activity)
|
||||
val content = app.first
|
||||
if (content == ""){
|
||||
viewHolder.img.visibility = View.VISIBLE
|
||||
viewHolder.removeAction.visibility = View.VISIBLE
|
||||
viewHolder.chooseButton.visibility = View.INVISIBLE
|
||||
if (content.isEmpty()){
|
||||
viewHolder.img.visibility = View.INVISIBLE
|
||||
viewHolder.removeAction.visibility = View.GONE
|
||||
viewHolder.chooseButton.visibility = View.VISIBLE
|
||||
|
|
Loading…
Add table
Reference in a new issue