mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-06-20 06:09:19 +00:00
Remove: Installed layout views
This commit is contained in:
@ -50,45 +50,6 @@ class InstalledFragment : MainNavFragmentX() {
|
||||
redrawPage(it)
|
||||
}
|
||||
viewModel.secondaryProducts.observe(viewLifecycleOwner) {
|
||||
binding.updatedBar.visibility = if (it.isNotEmpty()) View.VISIBLE else View.GONE
|
||||
binding.secondaryComposeRecycler.setContent {
|
||||
AppTheme(
|
||||
darkTheme = when (Preferences[Preferences.Key.Theme]) {
|
||||
is Preferences.Theme.System -> isSystemInDarkTheme()
|
||||
is Preferences.Theme.AmoledSystem -> isSystemInDarkTheme()
|
||||
else -> isDarkTheme
|
||||
}
|
||||
) {
|
||||
MdcTheme {
|
||||
ProductsHorizontalRecycler(it, repositories) { item ->
|
||||
AppSheetX(item.packageName)
|
||||
.showNow(parentFragmentManager, "Product ${item.packageName}")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
binding.buttonUpdateAll.setOnClickListener {
|
||||
viewModel.secondaryProducts.value?.let {
|
||||
mainActivityX.syncConnection.binder?.updateApps(it.map(Product::toItem))
|
||||
}
|
||||
}
|
||||
mainActivityX.menuSetup.observe(viewLifecycleOwner) {
|
||||
if (it != null) {
|
||||
|
Reference in New Issue
Block a user