diff options
author | Alex Ning <chineseperson5@gmail.com> | 2019-01-21 08:50:10 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2019-01-21 08:50:10 +0000 |
commit | 86bc381906684da561998ff4dff429253d6b692e (patch) | |
tree | 864f633e06c060e847075a29c2df29a1927c4289 /app/src/main/java/SubscribedSubredditDatabase | |
parent | 047e31936fa87830b38d4f9a52c7c4dabb84467e (diff) | |
download | infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.tar infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.tar.gz infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.tar.bz2 infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.tar.lz infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.tar.xz infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.tar.zst infinity-for-reddit-86bc381906684da561998ff4dff429253d6b692e.zip |
Click subreddit names and user names in post content and comment content to start ViewSubredditDetailActiviy and ViewUserDetailActivity respectively. Use Chrome custom tab to open URL in post content and comment content.
Diffstat (limited to 'app/src/main/java/SubscribedSubredditDatabase')
-rw-r--r-- | app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java index ed77c65c..35ceac47 100644 --- a/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java +++ b/app/src/main/java/SubscribedSubredditDatabase/SubscribedSubredditDao.java @@ -19,7 +19,7 @@ public interface SubscribedSubredditDao { @Query("SELECT * from subscribed_subreddits ORDER BY name COLLATE NOCASE ASC") LiveData<List<SubscribedSubredditData>> getAllSubscribedSubreddits(); - @Query("SELECT * from subscribed_subreddits WHERE name = :subredditName LIMIT 1") + @Query("SELECT * from subscribed_subreddits WHERE name = :subredditName COLLATE NOCASE LIMIT 1") SubscribedSubredditData getSubscribedSubreddit(String subredditName); @Query("DELETE FROM subscribed_subreddits WHERE name = :subredditName") |