Commit Graph

59 Commits

Author SHA1 Message Date
Alex Ning
40fc423b33 Use rounded corner bottom fragment. Tweak bottom sheet fragment UI. Change post type bottom sheet dialog to fragment. Exit SearchActivity no matter searchview is open or not. 2019-07-26 23:31:48 +08:00
Alex Ning
1fc8423906 Sorting posts is now available. Minor bugs fixed. 2019-07-26 10:50:32 +08:00
Alex Ning
2f15543f91 Add a ViewPager in ViewUserDetailActivity to display comments. Fixed searching posts without specifying subreddit will result in no posts. Use another api endpoint for fetching posts in ViewUserDetailActivity. 2019-07-22 00:09:40 +08:00
Alex Ning
216228cf02 Add a search button in ViewSubredditDetailActivity and ViewUserDetailActivity. Search posts in a specific subreddit is available. Rename SearchActivity to SearchResultActivity. Add SearchActivity for searching instead of searching in MainActivity. 2019-07-18 23:59:14 +08:00
Alex Ning
611d6a90ec Viewing rules after pressing rules button in PostXXXActivity is available. Extend MarkwonView to support opening reddit subreddit and user links. 2019-07-18 12:00:46 +08:00
Alex Ning
ebf542161e Flair, spoiler and nsfw support for submitting posts. 2019-07-17 09:31:49 +08:00
Alex Ning
e0212985f8 Sumbitting gif and video posts is now available. 2019-07-14 21:29:10 +08:00
Alex Ning
de4b53ddf0 Preparing to submit image posts. 2019-07-13 00:05:38 +08:00
Alex Ning
fcc34b45d4 Use a modal bottom sheet to display post selection instead of an alert dialog. Fixed some icons. 2019-07-12 11:31:28 +08:00
Alex Ning
68d3a7b09f Submitting link posts is available. Fixed force stop when a user has no post in ViewUserDetailActivity. 2019-07-12 09:35:05 +08:00
Alex Ning
bc91260e8a Place all the subscribed subreddits and users to SubscribedThingListingActivity instead of the navigation drawer in MainActivity. 2019-07-10 15:59:47 +08:00
Alex Ning
117a33be3b Minor UI tweaks. Preparing for submitting text posts. 2019-07-09 17:47:40 +08:00
Alex Ning
a22b491a30 Fixed bugs in CommentRecyclerViewAdapter. Minor layout tweaks. 2019-06-26 12:03:41 +08:00
Alex Ning
25f2a35d22 Reimplemented parsing comments using recursion to parse all the child comments. Reimplemented CommentRecyclerView (some methods need proper implementation. Minor bugs fixed. 2019-06-18 00:01:15 +08:00
Alex Ning
72d811186f Show a snackbar when sending comment and sending comment fails. Display the sent comment data after the comment is sent. 2019-06-14 11:58:52 +08:00
Alex Ning
f69ae29bb9 Added a feature: Sending comments. 2019-06-14 10:30:26 +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
ef8daed571 Minor layout tweaks. Fixed action bar color in ViewPostDetailActivity in dark mode. 2019-06-11 19:59:23 +08:00
Alex Ning
fe4ba7501e Refresh post in ViewPostDetailActivity. 2019-06-06 12:05:11 +08:00
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
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
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
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
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
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