Skip to content

Commit

Permalink
Some minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepylee committed Jun 18, 2018
1 parent 7699fce commit 8bba9dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/com/nimbl3/ui/second/SecondViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SecondViewModel
init {
val dataFromIntent = intent()
.subscribeOn(schedulers.io())
.map({ it.getParcelableExtra<Data>(Const.EXTRAS_DATA) })
.map { it.getParcelableExtra<Data>(Const.EXTRAS_DATA) }

dataFromIntent
.subscribe(persistData::onNext)
Expand Down
2 changes: 0 additions & 2 deletions app/src/main/res/layout/activity_second.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.nimbl3.ui.second.SecondActivity">


<TextView
android:id="@+id/persistTextView"
android:layout_width="wrap_content"
Expand Down

0 comments on commit 8bba9dd

Please sign in to comment.