aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/SubredditDatabase
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-01-21 08:50:10 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-01-21 08:50:10 +0000
commit86bc381906684da561998ff4dff429253d6b692e (patch)
tree864f633e06c060e847075a29c2df29a1927c4289 /app/src/main/java/SubredditDatabase
parent047e31936fa87830b38d4f9a52c7c4dabb84467e (diff)
downloadinfinity-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 '')
-rw-r--r--app/src/main/java/SubredditDatabase/SubredditDao.java4
1 files changed, 2 insertions, 2 deletions
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<SubredditData> 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);
}