Commit Graph

15 Commits

Author SHA1 Message Date
Alex Ning
c4690a6e38 Reimplement ViewPostActivity using one recyclerview to display a post and its comments instead of using a recyclerview inside NestedScrollView to prevent onBindViewHolder gets called for all the comments data at once and thus consumes more memory and freezes after the comments are loaded. 2019-06-25 09:21:44 +08:00
Alex Ning
502cbe02ba Reply to comments. Preparing for comment deletion. 2019-06-14 18:14:49 +08:00
Alex Ning
42c7b316f3 Add CommentActivity for sending comments (not implemented yet). Minor UI tweaks. 2019-06-13 12:16:04 +08:00
Alex Ning
1293eac5c8 Add a search view in MainActivity and add a SearchActivity. 2019-02-22 13:34:24 +08:00
Alex Ning
9d729579bf Minor UI tweaks. 2019-01-04 16:02:11 +08:00
Alex Ning
11ac14a3f1 Display a crosspost icon if the post is a crosspost. Hide the thumbtack icon if the post is not viewed in its subreddit. Tweak the post layout. Minor bugs fixed. 2018-10-05 14:28:14 +08:00
Alex Ning
17ccccfa0e Add an error view when loading the image fails in ViewImageActivity. 2018-10-01 13:45:02 +08:00
Alex Ning
1bd9ba61c6 Change the layout of post. Add an error view when loading the preview image fails. 2018-09-28 14:49:49 +08:00
Alex Ning
bfb311d75f Add a feature which is refreshing the posts by clicking the refresh button. Minor bugs fixed. Rewrite some code. 2018-09-24 17:03:57 +08:00
Alex Ning
06a692130c Replace the RecyclerView for comments to MultiLevelRecyclerView in order to display the comment trees easily. Click the expand more button to expand the comment tree. Click the expand less button to hide the comment tree. Rewrite some code. 2018-09-03 00:05:42 +08:00
Alex Ning
4364e20e36 Display a custom error view when there is something wrong when loading best posts. Probably fix a bug that holder.getAdapterPosition() returns -1 when loading subreddit icons in the RecyclerView of PostFragment. Subreddit banners are parsed correctly in ParseSubscribedThing. Check if the api call is successful in onResponse. Rewrite some methods. 2018-08-30 14:08:02 +08:00
Alex Ning
d83ded0193 Display a thumbtack icon if the post is stickied on top. Display a gold icon and the number of gold if the post is gilded. Load subreddit icons in LoadSubredditIconAsyncTaskListener instead of loading the icons in onPostExecute() of LoadSubredditIconAsyncTask in order to avoid loading icons on a destroyed activity when start the Activity and then press back or up button immediately. 2018-08-24 10:38:37 +08:00
Alex Ning
eb973138f7 Fixed a bug which causes the app to crash when there is no comment in a post. Add a no comment placeholder which is displayed when there is no comment in a post. 2018-08-11 17:49:30 +08:00
Alex Ning
0e6d4ae525 Add RecyclerView for subscribed subreddits in navigation drawer and rewrite some code 2018-07-28 13:38:50 +08:00
Alex Ning
1f2137dd36 First commit 2018-07-26 23:04:44 +08:00