Commit Graph

7 Commits

Author SHA1 Message Date
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