From 86bc381906684da561998ff4dff429253d6b692e Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 21 Jan 2019 16:50:10 +0800 Subject: 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. --- app/src/main/java/SubredditDatabase/SubredditDao.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (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 df763c93..657da989 100644 --- a/app/src/main/java/SubredditDatabase/SubredditDao.java +++ b/app/src/main/java/SubredditDatabase/SubredditDao.java @@ -14,9 +14,9 @@ public interface SubredditDao { @Query("DELETE FROM subreddits") void deleteAllSubreddits(); - @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1") + @Query("SELECT * from subreddits WHERE name = :namePrefixed COLLATE NOCASE LIMIT 1") LiveData getSubredditLiveDataByName(String namePrefixed); - @Query("SELECT * from subreddits WHERE name = :namePrefixed LIMIT 1") + @Query("SELECT * from subreddits WHERE name = :namePrefixed COLLATE NOCASE LIMIT 1") SubredditData getSubredditData(String namePrefixed); } -- cgit v1.2.3