mirror of https://github.com/alibaba/MNN.git
Merge pull request #3517 from Juude/bugfix/input_press
wiki / sync_wiki (push) Has been cancelled
Details
wiki / sync_wiki (push) Has been cancelled
Details
fix crash when the model of the history item is deleted
This commit is contained in:
commit
f7ec9237e7
|
@ -104,7 +104,16 @@ class MainActivity : AppCompatActivity() {
|
|||
progressDialog!!.show()
|
||||
if (destPath == null) {
|
||||
destPath =
|
||||
ModelDownloadManager.getInstance(this).getDownloadedFile(modelId!!)!!.absolutePath
|
||||
ModelDownloadManager.getInstance(this).getDownloadedFile(modelId!!)?.absolutePath
|
||||
if (destPath == null) {
|
||||
Toast.makeText(
|
||||
this,
|
||||
getString(R.string.model_not_found, modelId),
|
||||
Toast.LENGTH_LONG
|
||||
).show()
|
||||
progressDialog?.dismiss()
|
||||
return
|
||||
}
|
||||
}
|
||||
val isDiffusion = ModelUtils.isDiffusionModel(modelId!!)
|
||||
var configFilePath: String? = null
|
||||
|
|
|
@ -97,4 +97,5 @@
|
|||
<string name="regenerate">重新生成</string>
|
||||
<string name="copy_audio_info">Copy Audio Info</string>
|
||||
<string name="report_crash">Report Crash</string>
|
||||
<string name="model_not_found">Model not foud %1$s</string>
|
||||
</resources>
|
||||
|
|
|
@ -97,4 +97,5 @@
|
|||
<string name="regenerate">Regenerate</string>
|
||||
<string name="copy_audio_info">Copy Audio Info</string>
|
||||
<string name="report_crash">Report Crash</string>
|
||||
<string name="model_not_found">Model not foud %1$s</string>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in New Issue