Commit 82f1e8fe authored by wanglei's avatar wanglei

...

parent fd0ef373
......@@ -97,10 +97,22 @@ class RecycleBinDetailActivity : BaseActivity<ActivityRecycleBinDetailBinding>()
recycleBinBean?.let { bean ->
val file = File(bean.path)
val binFile = findRecycleBinFile(file.name)
VideoPlayerUtil.playVideo(this,binFile?.absolutePath)
VideoPlayerUtil.playVideo(this, binFile?.absolutePath)
}
}
binding.flDelete.setOnClickListener {
recycleBinBean?.let { bean ->
val file = File(bean.path)
val binFile = findRecycleBinFile(file.name)
val binJsonFile = findRecycleBinJsonFile(file.name)
binFile?.delete()
binJsonFile?.delete()
}
finish()
}
}
}
\ No newline at end of file
......@@ -7,6 +7,13 @@
android:layout_height="match_parent"
tools:context=".activity.recyclebin.RecycleBinDetailActivity">
<ImageView
android:id="@+id/iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription" />
<FrameLayout
android:id="@+id/fl_back"
android:layout_width="wrap_content"
......@@ -23,11 +30,22 @@
tools:ignore="ContentDescription,UseAppTint" />
</FrameLayout>
<FrameLayout
android:id="@+id/fl_delete"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="40dp"
android:padding="15dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent">
<ImageView
android:id="@+id/iv"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="ContentDescription" />
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/delete_b"
tools:ignore="ContentDescription,UseAppTint" />
</FrameLayout>
<ImageView
android:id="@+id/iv_bofang"
......
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