feat: opt attachment preview
This commit is contained in:
@@ -79,6 +79,9 @@ class IntExpMoveActivity : BaseBindingActivity<ActivityIntExpMoveBinding, IntExp
|
||||
FlowBus.with<String>(ConstantEvent.EVENT_REFRESH).observe(this) {
|
||||
viewModel.refresh()
|
||||
}
|
||||
|
||||
// 初始加载数据
|
||||
viewModel.refresh()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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