Skip to content

Commit

Permalink
fix (KeyActionTypeViewModel) set non-null MutableLiveData to null
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Sep 17, 2020
1 parent af7b00a commit 8a91e75
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import io.github.sds100.keymapper.util.KeyEventUtils
*/

class KeyActionTypeViewModel : ViewModel() {
val keyEvent = MutableLiveData<KeyEvent>()
val keyEvent = MutableLiveData<KeyEvent?>()

val keyLabel = Transformations.map(keyEvent) {
it ?: return@map null
Expand Down

0 comments on commit 8a91e75

Please sign in to comment.