Commit 3e8083ab authored by wanglei's avatar wanglei

白包定版

parent ab4de150
...@@ -80,7 +80,7 @@ class KoInternalkoAdapter( ...@@ -80,7 +80,7 @@ class KoInternalkoAdapter(
} else { } else {
vOverly.visibility = View.GONE vOverly.visibility = View.GONE
root.setOnClickListener { root.setOnClickListener {
if (canPage) { if (canPage && data.toFile().isDirectory) {
pageNext(context, data) pageNext(context, data)
} }
} }
......
...@@ -45,25 +45,26 @@ class KoHomekoFragment : Fragment() { ...@@ -45,25 +45,26 @@ class KoHomekoFragment : Fragment() {
val inPercent = 1 - outPercent val inPercent = 1 - outPercent
binding.ss.setPercent(outPercent, inPercent) binding.ss.setPercent(outPercent, inPercent)
binding.tvScanEmpty.setOnClickListener {
binding.cardEmpty.setOnClickListener {
val bundle = Bundle().apply { val bundle = Bundle().apply {
putString("Tittle", EMPTY_FILE) putString("Tittle", EMPTY_FILE)
} }
findNavController().navigate(R.id.koListFilekoActivity, bundle) findNavController().navigate(R.id.koListFilekoActivity, bundle)
} }
binding.tvScanLarge.setOnClickListener { binding.cardLarge.setOnClickListener {
val bundle = Bundle().apply { val bundle = Bundle().apply {
putString("Tittle", LARGE_FILE) putString("Tittle", LARGE_FILE)
} }
findNavController().navigate(R.id.koListFilekoActivity, bundle) findNavController().navigate(R.id.koListFilekoActivity, bundle)
} }
binding.tvScanDupImage.setOnClickListener { binding.cardDupImage.setOnClickListener {
val bundle = Bundle().apply { val bundle = Bundle().apply {
putString("Tittle", DUP_IMAGE) putString("Tittle", DUP_IMAGE)
} }
findNavController().navigate(R.id.koDupFilekoActivity, bundle) findNavController().navigate(R.id.koDupFilekoActivity, bundle)
} }
binding.tvScanDupFiles.setOnClickListener { binding.cardDupFile.setOnClickListener {
val bundle = Bundle().apply { val bundle = Bundle().apply {
putString("Tittle", DUP_FILE) putString("Tittle", DUP_FILE)
} }
......
...@@ -156,6 +156,7 @@ ...@@ -156,6 +156,7 @@
app:layout_constraintTop_toBottomOf="@id/fl_storage"> app:layout_constraintTop_toBottomOf="@id/fl_storage">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/card_empty"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="5dp" android:layout_marginVertical="5dp"
...@@ -204,6 +205,7 @@ ...@@ -204,6 +205,7 @@
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/card_large"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="5dp" android:layout_marginVertical="5dp"
...@@ -277,6 +279,7 @@ ...@@ -277,6 +279,7 @@
app:layout_constraintTop_toBottomOf="@id/tv_dup"> app:layout_constraintTop_toBottomOf="@id/tv_dup">
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/card_dup_image"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="5dp" android:layout_marginVertical="5dp"
...@@ -326,6 +329,7 @@ ...@@ -326,6 +329,7 @@
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>
<androidx.cardview.widget.CardView <androidx.cardview.widget.CardView
android:id="@+id/card_dup_file"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginVertical="5dp" android:layout_marginVertical="5dp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment