mirror of
https://github.com/InvertGeek/MixFile.git
synced 2026-06-01 17:10:49 +08:00
优化文件信息弹窗
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user