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.

NotificationsViewModel.java 470B

12345678910111213141516171819
  1. package com.example.meinwald.ui.task;
  2. import androidx.lifecycle.LiveData;
  3. import androidx.lifecycle.MutableLiveData;
  4. import androidx.lifecycle.ViewModel;
  5. public class NotificationsViewModel extends ViewModel {
  6. private MutableLiveData<String> mText;
  7. public NotificationsViewModel() {
  8. mText = new MutableLiveData<>();
  9. mText.setValue("This is notifications fragment");
  10. }
  11. public LiveData<String> getText() {
  12. return mText;
  13. }
  14. }