L
Size: a a a
L
К
L
К
К
АИ
L
private MutableLiveData<ArrayList<Person>> currentList = new MutableLiveData<>();
L
К
private MutableLiveData<ArrayList<Person>> currentList = new MutableLiveData<>();
"currentList = new MutableLiveData<>()" ты точно понял меня?L
L
К
MutableLiveData<ArrayList<..>>, а наружу отдавай LiveData<List<..>>, чтобы ее не могли изменить из-внеК
MutableLiveData<ArrayList<..>>, а наружу отдавай LiveData<List<..>>, чтобы ее не могли изменить из-внеL
К
К
L
L
private MutableLiveData<ArrayList<Person>> currentList = new MutableLiveData<>();
LiveData<List<Person>> getCurrentList() {
return currentList;
}К
private MutableLiveData<ArrayList<Person>> currentList = new MutableLiveData<>();
LiveData<List<Person>> getCurrentList() {
return currentList;
}L