JasonZ
JasonZ
`fun onSaveSourceClicked(url: String) = viewModelScope.launch(Dispatchers.IO) { val trimmedUrl = url.trimIndent() if (Patterns.WEB_URL.matcher(trimmedUrl.toLowerCase(Locale.US)).matches()) { sourceErrText.postValue(R.string.empty_string) val cleanUrl = URLUtil.guessUrl(trimmedUrl) val alreadyExists = sourceRepo.isSourceExisting(cleanUrl) if (alreadyExists) { sourceErrText.postValue(R.string.error_source_exists) } else { isSourceProgressVisible.postValue(true)...
### The language of WCDB > e.g. Objective-C, Swift or Java java ### The version of WCDB > e.g. v1.0.5 v1.0.5 ### The platform of WCDB > e.g. iOS, macOS...
使用foreach可能会造成concurrentmodifiedexception(删除第二个元素后会发生)。 可以使用迭代器来删除。 项目全局搜下 foreach 的使用
# 平台(如果交叉编译请再附上交叉编译目标平台): # Platform(Include target platform as well if cross-compiling): 是否能够用鸿蒙编译工具链编译出来 # Github版本: # Github Version: 直接下载ZIP包请提供下载日期以及压缩包注释里的git版本(可通过``7z l zip包路径``命令并在输出信息中搜索``Comment`` 获得,形如``Comment = bc80b11110cd440aacdabbf59658d630527a7f2b``)。 git clone请提供 ``git commit`` 第一行的commit id Provide date...