优化文件信息弹窗

This commit is contained in:
1
2024-09-10 11:25:03 +08:00
parent 0ee1c753e9
commit ac100232ba
2 changed files with 2 additions and 5 deletions

View File

@@ -14,8 +14,8 @@ android {
applicationId = "com.donut.mixfile"
minSdk = 24
targetSdk = 34
versionCode = 18
versionName = "1.1.1.1"
versionCode = 19
versionName = "1.1.1.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {

View File

@@ -211,7 +211,6 @@ fun showFileShareDialog(shareInfo: MixShareInfo, onDismiss: () -> Unit = {}) {
if (shareInfo.contentType().startsWith("video/")) {
AssistChip(onClick = {
closeDialog()
val intent = Intent(app, VideoActivity::class.java).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK
putExtra("url", shareInfo.downloadUrl)
@@ -230,7 +229,6 @@ fun showFileShareDialog(shareInfo: MixShareInfo, onDismiss: () -> Unit = {}) {
}
AssistChip(onClick = {
closeDialog()
shareInfo.lanUrl.copyToClipboard()
}, label = {
Text(text = "复制局域网地址", color = colorScheme.primary)
@@ -239,7 +237,6 @@ fun showFileShareDialog(shareInfo: MixShareInfo, onDismiss: () -> Unit = {}) {
}
}
setPositiveButton("下载文件") {
closeDialog()
downloadFile(shareInfo)
}
show()