Fix Android Lint tests (182 bunch only)

This commit is contained in:
Yan Zhulanow
2018-12-03 22:37:41 +09:00
parent f5bb9d5866
commit eb28ce3007
5 changed files with 206 additions and 13 deletions
+1 -1
View File
@@ -36,6 +36,6 @@ class MainActivity : Activity() {
// KT-14780: Kotlin Lint: "Missing commit() calls" false positive when the result of `commit()` is assigned or used as receiver
fun testResultOfCommit(fm: FragmentManager) {
val r1 = fm.beginTransaction().hide(fm.findFragmentByTag("aTag")).commit()
val r2 = fm.beginTransaction().hide(fm.findFragmentByTag("aTag")).commit().toString()
val r2 = fm.<warning descr="This transaction should be completed with a `commit()` call">beginTransaction</warning>().hide(fm.findFragmentByTag("aTag")).commit().toString()
}
}