mirror of
https://github.com/Aviortheking/Neo-Store.git
synced 2025-04-25 12:22:13 +00:00
Clean up
This commit is contained in:
parent
b38dd1b77c
commit
148e3fcc27
@ -1,15 +1,15 @@
|
|||||||
package com.looker.droidify.entity
|
package com.looker.droidify.entity
|
||||||
|
|
||||||
data class ProductItem(
|
data class ProductItem(
|
||||||
var repositoryId: Long,
|
var repositoryId: Long = 0,
|
||||||
var packageName: String,
|
var packageName: String = "com.looker.droidify",
|
||||||
var name: String,
|
var name: String = "Droid-ify",
|
||||||
var summary: String,
|
var summary: String = "A great F-Droid client",
|
||||||
val icon: String,
|
val icon: String = "",
|
||||||
val metadataIcon: String,
|
val metadataIcon: String = "",
|
||||||
val version: String,
|
val version: String = "69",
|
||||||
var installedVersion: String,
|
var installedVersion: String = "69",
|
||||||
var compatible: Boolean,
|
var compatible: Boolean = false,
|
||||||
var canUpdate: Boolean,
|
var canUpdate: Boolean = false,
|
||||||
var matchRank: Int,
|
var matchRank: Int = 0,
|
||||||
)
|
)
|
||||||
|
@ -55,11 +55,9 @@ class ExploreFragment : MainNavFragmentX() {
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Scaffold { _ ->
|
Scaffold { _ ->
|
||||||
ProductsVerticalRecycler(it, repositories) {
|
ProductsVerticalRecycler(it, repositories) { item ->
|
||||||
it.let {
|
AppSheetX(item.packageName)
|
||||||
AppSheetX(it.packageName)
|
.showNow(parentFragmentManager, "Product ${item.packageName}")
|
||||||
.showNow(parentFragmentManager, "Product ${it.packageName}")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -52,11 +52,9 @@ class InstalledFragment : MainNavFragmentX() {
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Scaffold { _ ->
|
Scaffold { _ ->
|
||||||
ProductsVerticalRecycler(it, repositories) {
|
ProductsVerticalRecycler(it, repositories) { item ->
|
||||||
it.let {
|
AppSheetX(item.packageName)
|
||||||
AppSheetX(it.packageName)
|
.showNow(parentFragmentManager, "Product ${item.packageName}")
|
||||||
.showNow(parentFragmentManager, "Product ${it.packageName}")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -74,10 +72,8 @@ class InstalledFragment : MainNavFragmentX() {
|
|||||||
) {
|
) {
|
||||||
MdcTheme {
|
MdcTheme {
|
||||||
ProductsHorizontalRecycler(it, repositories) { item ->
|
ProductsHorizontalRecycler(it, repositories) { item ->
|
||||||
item.let {
|
AppSheetX(item.packageName)
|
||||||
AppSheetX(it.packageName)
|
.showNow(parentFragmentManager, "Product ${item.packageName}")
|
||||||
.showNow(parentFragmentManager, "Product ${it.packageName}")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,11 +53,9 @@ class LatestFragment : MainNavFragmentX() {
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
Scaffold { _ ->
|
Scaffold { _ ->
|
||||||
ProductsVerticalRecycler(it, repositories) {
|
ProductsVerticalRecycler(it, repositories) { item ->
|
||||||
it.let {
|
AppSheetX(item.packageName)
|
||||||
AppSheetX(it.packageName)
|
.showNow(parentFragmentManager, "Product ${item.packageName}")
|
||||||
.showNow(parentFragmentManager, "Product ${it.packageName}")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -73,11 +71,9 @@ class LatestFragment : MainNavFragmentX() {
|
|||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
MdcTheme {
|
MdcTheme {
|
||||||
ProductsHorizontalRecycler(it, repositories) {
|
ProductsHorizontalRecycler(it, repositories) { item ->
|
||||||
it.let {
|
AppSheetX(item.packageName)
|
||||||
AppSheetX(it.packageName)
|
.showNow(parentFragmentManager, "Product ${item.packageName}")
|
||||||
.showNow(parentFragmentManager, "Product ${it.packageName}")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,30 +19,6 @@ abstract class MainNavFragmentX : BaseNavFragment() {
|
|||||||
|
|
||||||
open fun onBackPressed(): Boolean = false
|
open fun onBackPressed(): Boolean = false
|
||||||
|
|
||||||
internal fun setSearchQuery(searchQuery: String) {
|
|
||||||
viewModel.setSearchQuery(searchQuery) {
|
|
||||||
if (view != null) {
|
|
||||||
//viewModel.fillList(source)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal fun setSection(section: Section) {
|
|
||||||
viewModel.setSection(section) {
|
|
||||||
if (view != null) {
|
|
||||||
//viewModel.fillList(source)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
internal fun setOrder(order: Order) {
|
|
||||||
viewModel.setOrder(order) {
|
|
||||||
if (view != null) {
|
|
||||||
//viewModel.fillList(source)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
protected fun launchFragment(fragment: Fragment): Boolean {
|
protected fun launchFragment(fragment: Fragment): Boolean {
|
||||||
requireActivity().supportFragmentManager
|
requireActivity().supportFragmentManager
|
||||||
.beginTransaction()
|
.beginTransaction()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user