Address lint issues #4
2 changed files with 5 additions and 2 deletions
|
@ -235,7 +235,9 @@ class MarkdownTests {
|
||||||
val markdownMatcher = SemanticsMatcher("Markdown = [$markdown]") {
|
val markdownMatcher = SemanticsMatcher("Markdown = [$markdown]") {
|
||||||
it.config.getOrNull(SemanticsProperties.EditableText)?.text == markdown
|
it.config.getOrNull(SemanticsProperties.EditableText)?.text == markdown
|
||||||
}
|
}
|
||||||
onNode(hasSetTextAction()).assert(markdownMatcher)
|
onNode(hasSetTextAction()).waitUntil {
|
||||||
|
assert(markdownMatcher)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun ComposeTestRule.openPreview() = onNodeWithText("Preview").performClick()
|
private fun ComposeTestRule.openPreview() = onNodeWithText("Preview").performClick()
|
||||||
|
|
|
@ -209,7 +209,8 @@ class MarkdownViewModel(
|
||||||
))
|
))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
_state.value = EditorState(fileName = untitledFileName)
|
_state.value =
|
||||||
|
EditorState(fileName = untitledFileName, reloadToggle = _state.value.reloadToggle.inv())
|
||||||
Timber.i("Removing autosave uri from shared prefs")
|
Timber.i("Removing autosave uri from shared prefs")
|
||||||
preferenceHelper[Preference.AUTOSAVE_URI] = null
|
preferenceHelper[Preference.AUTOSAVE_URI] = null
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue