aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/SubredditDatabase
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-01-01 15:32:03 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-01-01 15:32:03 +0000
commit49d25314d561e8f01b4d3c5dad5fdf95babad287 (patch)
tree04c2dc23b04d9c574c823c6cef7cfe3c030b5fbf /app/src/main/java/SubredditDatabase
parentf529bba550b63ff1ea0b254c308257f5fd0c25ed (diff)
downloadinfinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.tar
infinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.tar.gz
infinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.tar.bz2
infinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.tar.lz
infinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.tar.xz
infinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.tar.zst
infinity-for-reddit-49d25314d561e8f01b4d3c5dad5fdf95babad287.zip
Display user name and user icon in each post when loading posts in specific subreddits.
Diffstat (limited to 'app/src/main/java/SubredditDatabase')
-rw-r--r--app/src/main/java/SubredditDatabase/SubredditDao.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/SubredditDatabase/SubredditDao.java b/app/src/main/java/SubredditDatabase/SubredditDao.java
index 9b2fcabb..e7b564f7 100644
--- a/app/src/main/java/SubredditDatabase/SubredditDao.java
+++ b/app/src/main/java/SubredditDatabase/SubredditDao.java
@@ -20,6 +20,6 @@ public interface SubredditDao {
@Query("SELECT * from subreddits WHERE name = :namePrefixed")
LiveData<SubredditData> getSubredditLiveDataByNamePrefixed(String namePrefixed);
- @Query("SELECT * from subreddits WHERE name = :namePrefixed")
+ @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1")
SubredditData getSubredditData(String namePrefixed);
}