Remove: Installed layout views

This commit is contained in:
machiav3lli
2022-04-12 17:56:14 +02:00
parent e170bfe905
commit 2edccc38e5
2 changed files with 4 additions and 127 deletions

View File

@ -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) {