mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
refactor: ui designer workspace
This commit is contained in:
+2
-1
@@ -82,8 +82,9 @@ class DesignerWorkspaceFragment : BaseFragment() {
|
||||
binding!!
|
||||
.workspace
|
||||
.addView(createErrorView("${e.message}${e.cause?.message?.let { "\n$it" } ?: ""}"))
|
||||
emptyList()
|
||||
}
|
||||
if (inflated == null) {
|
||||
if (inflated.isEmpty()) {
|
||||
binding!!.workspace.addView(createErrorView("Failed to infflate view"))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user