mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 06:09:19 +00:00
Add: Wire show/hide for updates button
This commit is contained in:
@ -7,6 +7,7 @@ import android.view.ViewGroup
|
||||
import androidx.compose.foundation.isSystemInDarkTheme
|
||||
import androidx.compose.material.Scaffold
|
||||
import com.google.android.material.composethemeadapter.MdcTheme
|
||||
import com.looker.droidify.R
|
||||
import com.looker.droidify.content.Preferences
|
||||
import com.looker.droidify.database.entity.Repository
|
||||
import com.looker.droidify.databinding.FragmentInstalledXBinding
|
||||
@ -79,5 +80,22 @@ class InstalledFragment : MainNavFragmentX() {
|
||||
}
|
||||
}
|
||||
}
|
||||
binding.buttonUpdated.setOnClickListener {
|
||||
binding.secondaryComposeRecycler.visibility =
|
||||
when (binding.secondaryComposeRecycler.visibility) {
|
||||
View.VISIBLE -> {
|
||||
binding.buttonUpdated.setCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||
0, 0, R.drawable.ic_arrow_down, 0
|
||||
)
|
||||
View.GONE
|
||||
}
|
||||
else -> {
|
||||
binding.buttonUpdated.setCompoundDrawablesRelativeWithIntrinsicBounds(
|
||||
0, 0, R.drawable.ic_arrow_up, 0
|
||||
)
|
||||
View.VISIBLE
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user