From 49d25314d561e8f01b4d3c5dad5fdf95babad287 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 1 Jan 2019 23:32:03 +0800 Subject: Display user name and user icon in each post when loading posts in specific subreddits. --- app/src/main/java/SubredditDatabase/SubredditDao.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src/main/java/SubredditDatabase') 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 getSubredditLiveDataByNamePrefixed(String namePrefixed); - @Query("SELECT * from subreddits WHERE name = :namePrefixed") + @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1") SubredditData getSubredditData(String namePrefixed); } -- cgit v1.2.3