Commit Graph

48 Commits

Author SHA1 Message Date
Alex Ning
7d8c497c77 Fixed UI problems introduced by dark theme. 2019-06-05 11:25:05 +08:00
Alex Ning
1d294609f5 Unescape HTML for post content and comments. Minor UI fixes. 2019-04-26 21:53:32 +08:00
Alex Ning
cd4730c649 Synchronizing voting state between PostRecyclerViewAdapter and ViewPostDetailActivity using EventBus by greenrobot. Minor bugs fixed. 2019-04-18 23:31:41 +08:00
Alex Ning
246d4f45ab Fixed displaying wrong score when rapidly clicking vote buttons in PostRecyclerViewAdapter. 2019-04-18 17:18:19 +08:00
Alex Ning
9530e1f497 Fixed user icon and user banner not displaying after user login. LoginActivity will not show page not found error after login finish. 2019-02-26 21:56:51 +08:00
Alex Ning
0ea2b24c60 Add two features: refresh searching and searching in SearchActivity. Fixed a bug which is the listener object is null when it is called because the parse failed in ParsePost, ParseSubredditData and ParseUserData. 2019-02-26 09:27:51 +08:00
Alex Ning
b1db59fda2 Add a feature: Search for users. Change some names of interfaces and methods. 2019-02-23 12:04:16 +08:00
Alex Ning
3fa6969b75 Add a feature: Search for users. Fixed calling callback.onResult twice when loading user's posts. 2019-02-23 10:12:26 +08:00
Alex Ning
ce4773230a Change SearchView style in MainActivity. Solve tab layout covering fragments in viewpager in SearchActivity. 2019-02-22 17:26:50 +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
82d97cf732 Migrate to AndroidX 2019-02-21 17:24:23 +08:00
Alex Ning
2b0228ab47 Use another GifImageView library. 2019-02-21 13:21:32 +08:00
Alex Ning
c00aaf04b9 Temporarily use the old way to load comments instead of Paging library. Load more parent-level comments once. Loading comments of comments is now working. 2019-02-20 22:13:26 +08:00
Alex Ning
0d6296c1a4 Load All comments of a post using paging library. Loading comments of comments is now broken. 2019-02-12 14:37:36 +08:00
Alex Ning
86570d4959 Enlarge the area which contains subreddit or user name and icon for easier touching in ViewPostDetailActivity. Fixed subreddit icon cannot be loaded in ViewPostDetailActivity. Smoothly play gif subreddit icon in ViewPostDetailActivity. 2019-01-22 22:28:05 +08:00
Alex Ning
d733be6e55 Fixed the user's posts cannot be loaded. Refreshing in MainActivity also refreshes user info, subscribed users and subreddits. Enlarge the area which contains subreddit or user name and icon for easier touching. 2019-01-22 18:45:02 +08:00
Alex Ning
86bc381906 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. 2019-01-21 16:50:10 +08:00
Alex Ning
f0b149ce82 Use MarkwonView (a markdown library) instead of HtmlTextView to display post content and comments. 2019-01-09 10:05:20 +08:00
Alex Ning
38be0ba01f New feature: Subscribe or unsubscribe to a subreddit. Allow clear text traffic in Android Pie. Rewrite some code in lambda. 2019-01-07 19:03:49 +08:00
Alex Ning
9d729579bf Minor UI tweaks. 2019-01-04 16:02:11 +08:00
Alex Ning
f529bba550 Refreshing posts is working now. 2018-12-30 21:54:44 +08:00
Alex Ning
b7e1d92c7e Error handling for loading posts now works again. Don't show refresh button as an icon. Rewrite some code. 2018-12-29 13:38:18 +08:00
Alex Ning
93a9ad9ece Display a MaterialLoadingProgressBar instead of a ProgressBar when loading posts. Correctly handle the visibility of the MaterialLoadingProgressBar when loading posts. 2018-12-27 15:14:10 +08:00
Alex Ning
45f67457fa Use Android Paging Library to load and display best posts. Loading best posts in a specific subreddit is broken. Fixed a bug which is PostViewModel's data becoming null after the app restart. Add notch support for Android Pie. 2018-12-27 11:29:02 +08:00
Alex Ning
60b659e651 Use GifImageView to display all the images in order to prevent slow playing of the gifs. Extend GifImageView as AspectRatioGifImageView to retain the features of AspectRatioImageView. 2018-12-22 10:42:24 +08:00
Alex Ning
6e5a0e7ef3 Use AspectRatiotImageView instead of ImageView to fully display the preview images of posts and prevent scrolling jump in PostFragment and ViewPostDetailActivity. 2018-10-28 23:18:01 +08:00
Alex Ning
86ea4c8982 Bind views using ButterKnife. Let volume controls adjust music stream in ViewVideoActivity. 2018-10-27 00:06:35 +08:00
Alex Ning
8b52810d7c Use Dagger 2 to inject the Retrofit singleton to classes. Minor bugs fixed. 2018-10-12 23:52:23 +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
cdcd5923fa Fixed a bug which causes the LastItemSynchronizer object in PaginationSynchronizer becomes null when the app is reopened after it was killed. Prepare to use Dagger 2 to manage Retrofit singleton. 2018-09-28 09:18:28 +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
fc356c6505 Disable the animation for finishing activity in ViewImageActivity and ViewVideoActivity. Fixed a bug that occurred when parsing posts finishes but the PostFragment is not added in any Activity (e.g. Activity finishes). 2018-09-22 10:45:38 +08:00
Alex Ning
5c51450a8e Fixed a bug that the expand less button and the expand more button is not shown at the right time. 2018-09-03 16:17:51 +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
6637cefc05 Blur the preview image if the post is NSFW. Tweak some layouts. Optimize some methods. 2018-08-30 21:18:21 +08:00
Alex Ning
a6a951732d Change some methods related to parsing data to static methods. Preparing to use Retrofit to send API requests. Already made a change to use Retrofit to fetch comments. 2018-08-27 23:05:56 +08:00
Alex Ning
41b243be7d Display the number of gold given to the post. 2018-08-26 14:51:13 +08:00
Alex Ning
80058ff6ab Load comment and post content text in HTML form instead of String. Fixed a bug that the icon of subreddits was not parsed properly in ParseSubredditData class. 2018-08-21 00:08:48 +08:00
Alex Ning
0fa03cba21 Rename some classes and layout resources. Feature added: view posts in ViewSubredditDetailActivity. 2018-08-20 22:33:00 +08:00
Alex Ning
23bf92d9cf Added feature: Vote in ViewPostDetailActivity. Fix some behavior after the vote fails. 2018-08-19 00:03:56 +08:00
Alex Ning
cca0313990 Load user info after the new access token is retrieved if the old access token expired. Feature added: vote comment 2018-08-18 09:22:31 +08:00
Alex Ning
c6026e5659 Fetch the subreddit info and save it to the database. Solve a bug that cannot create a instance of SubredditViewModel. 2018-08-05 12:26:50 +08:00
Alex Ning
9334d3860e Preparing to fetch the subreddit info and save it to the database. 2018-08-01 00:15:58 +08:00
Alex Ning
ddc7b36e72 Save subscribed subreddits and users to the SQLite database by using Room Persistence Library. Add a following section in the navigation drawer to display all the followed users. Add a NestedScrollView in the navigation drawer to wrap all the elements. Disable nested scrolling feature in all the RecyclerViews in the navigation drawer. 2018-07-29 20:25:55 +08:00
Alex Ning
e3653eb503 Add a RecyclerView for subscribed subreddits in navigation drawer, rewrite some code and minor bugs fixed 2018-07-28 13:45:01 +08:00
Alex Ning
1f2137dd36 First commit 2018-07-26 23:04:44 +08:00