Revert "共有ビューモデル実装"

This reverts commit 6d17811ada.
This commit is contained in:
ろむねこ 2024-01-29 11:45:42 +09:00
parent c3e1825542
commit f7a71c70ed
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168

View File

@ -1,19 +0,0 @@
package one.nem.lacerta.component.viewer;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;
public class SharedViewModel extends ViewModel {
private final MutableLiveData<Integer> currentFragmentPosition = new MutableLiveData<>();
public void setCurrentFragmentPosition(int position) {
currentFragmentPosition.setValue(position);
}
public int getCurrentFragmentPosition() {
assert currentFragmentPosition.getValue() != null;
return currentFragmentPosition.getValue();
}
}