You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
462 B
19 lines
462 B
package com.community.pocket.ui.main.ui.garbage;
|
|
|
|
import androidx.lifecycle.LiveData;
|
|
import androidx.lifecycle.MutableLiveData;
|
|
import androidx.lifecycle.ViewModel;
|
|
|
|
public class GarbageViewModel extends ViewModel {
|
|
|
|
private MutableLiveData<String> mText;
|
|
|
|
public GarbageViewModel() {
|
|
mText = new MutableLiveData<>();
|
|
mText.setValue("This is notifications fragment");
|
|
}
|
|
|
|
LiveData<String> getText() {
|
|
return mText;
|
|
}
|
|
} |