mirror of https://github.com/ThmmyNoLife/mTHMMY
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.
18 lines
515 B
18 lines
515 B
package gr.thmmy.mthmmy.viewmodel;
|
|
|
|
import androidx.lifecycle.LiveData;
|
|
import androidx.lifecycle.MutableLiveData;
|
|
import androidx.lifecycle.ViewModel;
|
|
|
|
import gr.thmmy.mthmmy.model.Bookmark;
|
|
|
|
public class BaseViewModel extends ViewModel {
|
|
protected MutableLiveData<Bookmark> currentPageBookmark;
|
|
|
|
public LiveData<Bookmark> getCurrentPageBookmark() {
|
|
if (currentPageBookmark == null) {
|
|
currentPageBookmark = new MutableLiveData<>();
|
|
}
|
|
return currentPageBookmark;
|
|
}
|
|
}
|
|
|