Browse Source
fixed basic build errors, erase BasePostViewModel
renovate/org.robolectric-robolectric-4.x
Austin Huang
4 years ago
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
4 changed files with
11 additions and
17 deletions
-
app/src/main/java/awais/instagrabber/fragments/directmessages/DirectMessageThreadFragment.java
-
app/src/main/java/awais/instagrabber/fragments/main/viewmodels/BasePostViewModel.java
-
app/src/main/java/awais/instagrabber/fragments/main/viewmodels/ViewerPostViewModel.java
-
app/src/main/java/awais/instagrabber/models/enums/PostItemType.java
|
|
@ -84,7 +84,7 @@ public class DirectMessageThreadFragment extends Fragment { |
|
|
|
private DirectItemModel directItemModel; |
|
|
|
private RecyclerView messageList; |
|
|
|
// private AppCompatImageView dmInfo, dmSeen; |
|
|
|
private boolean hasSentSomething, hasDeletedSomething; |
|
|
|
private boolean hasDeletedSomething; |
|
|
|
private boolean hasOlder = true; |
|
|
|
public static boolean hasSentSomething; |
|
|
|
|
|
|
|
|
|
@ -5,15 +5,9 @@ import androidx.lifecycle.ViewModel; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import awais.instagrabber.models.DiscoverItemModel; |
|
|
|
import awais.instagrabber.models.BasePostModel; |
|
|
|
|
|
|
|
public class DiscoverItemViewModel extends ViewModel { |
|
|
|
private MutableLiveData<List<DiscoverItemModel>> list; |
|
|
|
|
|
|
|
public MutableLiveData<List<DiscoverItemModel>> getList() { |
|
|
|
if (list == null) { |
|
|
|
list = new MutableLiveData<>(); |
|
|
|
} |
|
|
|
return list; |
|
|
|
} |
|
|
|
public class BasePostViewModel extends ViewModel { |
|
|
|
// this file was somehow identical to DiscoverItemViewModel |
|
|
|
// pretty sure you didn't meant to do that |
|
|
|
} |
|
|
@ -6,7 +6,7 @@ import java.util.List; |
|
|
|
|
|
|
|
import awais.instagrabber.models.ViewerPostModel; |
|
|
|
|
|
|
|
public class ViewPostViewModel extends BasePostViewModel<ViewerPostModel> { |
|
|
|
public class ViewerPostViewModel extends BasePostViewModel<ViewerPostModel> { |
|
|
|
private MutableLiveData<List<ViewerPostModel>> list; |
|
|
|
|
|
|
|
public MutableLiveData<List<ViewerPostModel>> getList() { |
|
|
|
|
|
@ -2,9 +2,9 @@ package awais.instagrabber.models.enums; |
|
|
|
|
|
|
|
import java.io.Serializable; |
|
|
|
|
|
|
|
public enum ItemGetType implements Serializable { |
|
|
|
MAIN_ITEMS, |
|
|
|
DISCOVER_ITEMS, |
|
|
|
FEED_ITEMS, |
|
|
|
SAVED_ITEMS |
|
|
|
public enum PostItemType implements Serializable { |
|
|
|
MAIN, |
|
|
|
DISCOVER, |
|
|
|
FEED, |
|
|
|
SAVED |
|
|
|
} |