回答編集履歴
1
lifecycle-livedata-ktxを使って可読性アップ
test
CHANGED
@@ -12,13 +12,11 @@
|
|
12
12
|
|
13
13
|
```kotlin
|
14
14
|
|
15
|
-
val tasks =
|
15
|
+
val tasks = selectFolder
|
16
16
|
|
17
|
-
.
|
17
|
+
.nonNull()
|
18
18
|
|
19
|
-
|
19
|
+
.switchMap { getTasksByFolder(it, false) }
|
20
|
-
|
21
|
-
}
|
22
20
|
|
23
21
|
.nonNull()
|
24
22
|
|