mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 22:57:29 +00:00
fixed basic build errors, erase BasePostViewModel
This commit is contained in:
parent
ce0302622e
commit
65d19d860e
@ -84,7 +84,7 @@ public class DirectMessageThreadFragment extends Fragment {
|
|||||||
private DirectItemModel directItemModel;
|
private DirectItemModel directItemModel;
|
||||||
private RecyclerView messageList;
|
private RecyclerView messageList;
|
||||||
// private AppCompatImageView dmInfo, dmSeen;
|
// private AppCompatImageView dmInfo, dmSeen;
|
||||||
private boolean hasSentSomething, hasDeletedSomething;
|
private boolean hasDeletedSomething;
|
||||||
private boolean hasOlder = true;
|
private boolean hasOlder = true;
|
||||||
public static boolean hasSentSomething;
|
public static boolean hasSentSomething;
|
||||||
|
|
||||||
|
@ -5,15 +5,9 @@ import androidx.lifecycle.ViewModel;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import awais.instagrabber.models.DiscoverItemModel;
|
import awais.instagrabber.models.BasePostModel;
|
||||||
|
|
||||||
public class DiscoverItemViewModel extends ViewModel {
|
public class BasePostViewModel extends ViewModel {
|
||||||
private MutableLiveData<List<DiscoverItemModel>> list;
|
// this file was somehow identical to DiscoverItemViewModel
|
||||||
|
// pretty sure you didn't meant to do that
|
||||||
public MutableLiveData<List<DiscoverItemModel>> getList() {
|
|
||||||
if (list == null) {
|
|
||||||
list = new MutableLiveData<>();
|
|
||||||
}
|
|
||||||
return list;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -6,7 +6,7 @@ import java.util.List;
|
|||||||
|
|
||||||
import awais.instagrabber.models.ViewerPostModel;
|
import awais.instagrabber.models.ViewerPostModel;
|
||||||
|
|
||||||
public class ViewPostViewModel extends BasePostViewModel<ViewerPostModel> {
|
public class ViewerPostViewModel extends BasePostViewModel<ViewerPostModel> {
|
||||||
private MutableLiveData<List<ViewerPostModel>> list;
|
private MutableLiveData<List<ViewerPostModel>> list;
|
||||||
|
|
||||||
public MutableLiveData<List<ViewerPostModel>> getList() {
|
public MutableLiveData<List<ViewerPostModel>> getList() {
|
||||||
|
@ -2,9 +2,9 @@ package awais.instagrabber.models.enums;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
public enum ItemGetType implements Serializable {
|
public enum PostItemType implements Serializable {
|
||||||
MAIN_ITEMS,
|
MAIN,
|
||||||
DISCOVER_ITEMS,
|
DISCOVER,
|
||||||
FEED_ITEMS,
|
FEED,
|
||||||
SAVED_ITEMS
|
SAVED
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user