From 1c403f2801f000b19744b1ac0f0c3eb080804dea Mon Sep 17 00:00:00 2001 From: Yenaly <2021214976@stu.cqupt.edu.cn> Date: Wed, 21 Sep 2022 18:23:44 +0800 Subject: [PATCH] bug fixes. add comment and reply function. add clear cache function. --- .idea/misc.xml | 7 +- README.md | 12 +- app/build.gradle.kts | 18 +- .../java/com/yenaly/han1meviewer/Constants.kt | 2 + .../yenaly/han1meviewer/logic/NetworkRepo.kt | 208 +++++++++++------- .../logic/model/VideoCommentModel.kt | 40 ++-- .../logic/network/HanimeNetwork.kt | 8 +- .../HanimeBaseService.kt} | 21 +- .../network/service/HanimeCommentService.kt | 44 ++++ .../HanimeVersionService.kt} | 4 +- .../han1meviewer/ui/activity/AboutActivity.kt | 2 +- .../han1meviewer/ui/activity/MainActivity.kt | 4 +- .../ui/activity/SearchActivity.kt | 37 ++-- .../ui/adapter/VideoCommentRvAdapter.kt | 92 +++++++- .../ui/adapter/WatchHistoryRvAdapter.kt | 4 +- .../ui/fragment/CommentFragment.kt | 88 +++++++- .../ui/fragment/CommentReplyFragment.kt | 43 +++- .../ui/fragment/VideoIntroductionFragment.kt | 4 +- .../ui/fragment/home/MyFavVideoFragment.kt | 7 +- .../ui/fragment/home/MyWatchLaterFragment.kt | 7 +- .../ui/fragment/home/WatchHistoryFragment.kt | 8 +- .../home/download/DownloadedFragment.kt | 10 +- .../fragment/settings/HomeSettingsFragment.kt | 52 +++++ .../han1meviewer/ui/popup/CommentPopup.kt | 58 +++++ .../ui/view/AdvancedMaterialSearchBar.kt | 35 +++ .../ui/viewmodel/CommentViewModel.kt | 53 ++++- .../ui/viewmodel/MyListViewModel.kt | 2 + .../res/drawable/ic_baseline_clear_all_24.xml | 5 + .../res/drawable/ic_baseline_reply_24.xml | 5 + .../main/res/drawable/ic_baseline_send_24.xml | 5 + app/src/main/res/layout/fragment_comment.xml | 10 + .../main/res/layout/item_video_comment.xml | 10 + app/src/main/res/layout/layout_search_bar.xml | 2 +- app/src/main/res/layout/pop_up_comment.xml | 27 +++ app/src/main/res/values/strings.xml | 7 + app/src/main/res/xml/settings_home.xml | 5 + build.gradle.kts | 4 +- yenaly_libs/build.gradle.kts | 11 +- .../com/yenaly/yenaly_libs/utils/FileUtil.kt | 9 + .../YenalyHideBottomViewOnScrollBehavior.kt | 2 + 40 files changed, 776 insertions(+), 196 deletions(-) rename app/src/main/java/com/yenaly/han1meviewer/logic/network/{HanimeService.kt => service/HanimeBaseService.kt} (78%) create mode 100644 app/src/main/java/com/yenaly/han1meviewer/logic/network/service/HanimeCommentService.kt rename app/src/main/java/com/yenaly/han1meviewer/logic/network/{VersionService.kt => service/HanimeVersionService.kt} (76%) create mode 100644 app/src/main/java/com/yenaly/han1meviewer/ui/popup/CommentPopup.kt create mode 100644 app/src/main/java/com/yenaly/han1meviewer/ui/view/AdvancedMaterialSearchBar.kt create mode 100644 app/src/main/res/drawable/ic_baseline_clear_all_24.xml create mode 100644 app/src/main/res/drawable/ic_baseline_reply_24.xml create mode 100644 app/src/main/res/drawable/ic_baseline_send_24.xml create mode 100644 app/src/main/res/layout/pop_up_comment.xml diff --git a/.idea/misc.xml b/.idea/misc.xml index 8dc1cc4a..33d87503 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -4,6 +4,7 @@