diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-07-08 15:54:54 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-07-08 15:54:54 +0000 |
commit | 4338dbd2774925d9ecbe6a29616d330d5f2602a2 (patch) | |
tree | ce32a7d7c63ca85dbdc7a3ce670b1d6e132c0b94 /app/src/main/java/SubredditDatabase/SubredditViewModel.java | |
parent | 69b08a6d563cef786375e2c18614f5ff9074c641 (diff) | |
download | infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.tar infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.tar.gz infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.tar.bz2 infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.tar.lz infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.tar.xz infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.tar.zst infinity-for-reddit-4338dbd2774925d9ecbe6a29616d330d5f2602a2.zip |
Retain comments after orientation changes in ViewPostDetailActivity.
Diffstat (limited to 'app/src/main/java/SubredditDatabase/SubredditViewModel.java')
-rw-r--r-- | app/src/main/java/SubredditDatabase/SubredditViewModel.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/SubredditDatabase/SubredditViewModel.java b/app/src/main/java/SubredditDatabase/SubredditViewModel.java index a0dfa7c9..8899abdd 100644 --- a/app/src/main/java/SubredditDatabase/SubredditViewModel.java +++ b/app/src/main/java/SubredditDatabase/SubredditViewModel.java @@ -37,8 +37,9 @@ public class SubredditViewModel extends AndroidViewModel { this.subredditName = subredditName; } + @NonNull @Override - public <T extends ViewModel> T create(Class<T> modelClass) { + public <T extends ViewModel> T create(@NonNull Class<T> modelClass) { //noinspection unchecked return (T) new SubredditViewModel(mApplication, subredditName); } |