Skip to content

Change all exposed MutableLiveData to LiveData #782

@iamareebjamal

Description

@iamareebjamal
  1. Find any public MutableLiveData
  2. Rename its variable to prefix mutable
  3. Make it private
  4. Add a public LiveData field to back it
val error = MutableLiveData<String>()

to

private val mutableError = MutableLiveData<String>()
val error: LiveData<String> = mutableError

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions