feat: opt attachment preview
This commit is contained in:
@@ -150,7 +150,9 @@ class GjcInspectionDetailsViewModel : BaseViewModel() {
|
||||
attach.name.endsWith(".png", true) ||
|
||||
attach.name.endsWith(".jpeg", true) -> {
|
||||
val fileBean = FileBean(
|
||||
url = MediaUtil.fillUrl(attach.path),
|
||||
// url = MediaUtil.fillUrl(attach.path),
|
||||
// 服务器返回全url,无需本地组装
|
||||
url = attach.path,
|
||||
originalPic = attach.path
|
||||
)
|
||||
PreviewActivity.start(getTopActivity(), listOf(fileBean))
|
||||
|
||||
Reference in New Issue
Block a user