From 9b83c5e832916f3d5403ec87cc6d8a0f1479a7f7 Mon Sep 17 00:00:00 2001 From: Ammar Githam Date: Sat, 24 Oct 2020 18:10:21 +0900 Subject: [PATCH] More updated. Handle clicks. Updated comments viewer, etc --- .idea/compiler.xml | 6 + .idea/gradle.xml | 1 + .idea/misc.xml | 2 +- .idea/runConfigurations/app.xml | 8 +- app/build.gradle | 9 +- .../adapters/CommentsAdapter.java | 248 ++++++---- .../instagrabber/adapters/FeedAdapter.java | 222 ++++----- .../instagrabber/adapters/FeedAdapterV2.java | 77 ++- .../adapters/FeedItemCallbackAdapter.java | 40 ++ .../adapters/SliderItemsAdapter.java | 9 +- .../viewholder/CommentViewHolder.java | 95 ---- .../viewholder/FeedGridItemViewHolder.java | 31 +- .../viewholder/SliderVideoViewHolder.java | 54 +- .../comments/ChildCommentViewHolder.java | 93 ++++ .../comments/ParentCommentViewHolder.java | 93 ++++ .../viewholder/feed/FeedItemViewHolder.java | 171 +++---- .../viewholder/feed/FeedPhotoViewHolder.java | 109 ++-- .../viewholder/feed/FeedSliderViewHolder.java | 54 +- .../viewholder/feed/FeedVideoViewHolder.java | 49 +- .../instagrabber/asyncs/CommentsFetcher.java | 189 +++---- .../customviews/PostsRecyclerView.java | 60 ++- .../customviews/RamboTextViewV2.java | 152 ++++++ ...SharedElementTransitionDialogFragment.java | 2 + .../customviews/VideoPlayerViewHelper.java | 64 ++- .../PostsLayoutPreferencesDialogFragment.java | 70 ++- .../fragments/CommentsViewerFragment.java | 466 +++++++++--------- .../fragments/HashTagFragment.java | 38 +- .../fragments/PostViewV2Fragment.java | 101 ++-- .../fragments/main/FeedFragment.java | 406 ++++++--------- .../fragments/main/ProfileFragment.java | 2 +- .../instagrabber/models/CommentModel.java | 62 +-- .../java/awais/instagrabber/utils/Utils.java | 20 + .../viewmodels/CommentsViewModel.java | 19 + .../instagrabber/workers/DownloadWorker.java | 56 +-- app/src/main/res/layout/dialog_post_view.xml | 26 +- app/src/main/res/layout/fragment_comments.xml | 6 +- app/src/main/res/layout/fragment_feed.xml | 10 +- app/src/main/res/layout/item_comment.xml | 215 ++++---- .../main/res/layout/item_comment_small.xml | 15 +- app/src/main/res/layout/item_feed_bottom.xml | 92 ++-- app/src/main/res/layout/item_feed_photo.xml | 6 +- app/src/main/res/layout/item_feed_slider.xml | 6 +- app/src/main/res/layout/item_feed_top.xml | 20 +- app/src/main/res/layout/item_feed_video.xml | 6 +- .../layout_video_player_with_thumbnail.xml | 2 +- .../res/navigation/comments_nav_graph.xml | 4 +- app/src/main/res/values/color.xml | 2 + app/src/main/res/values/strings.xml | 3 +- 48 files changed, 1861 insertions(+), 1630 deletions(-) create mode 100644 .idea/compiler.xml create mode 100644 app/src/main/java/awais/instagrabber/adapters/FeedItemCallbackAdapter.java delete mode 100755 app/src/main/java/awais/instagrabber/adapters/viewholder/CommentViewHolder.java create mode 100644 app/src/main/java/awais/instagrabber/adapters/viewholder/comments/ChildCommentViewHolder.java create mode 100644 app/src/main/java/awais/instagrabber/adapters/viewholder/comments/ParentCommentViewHolder.java create mode 100644 app/src/main/java/awais/instagrabber/customviews/RamboTextViewV2.java create mode 100644 app/src/main/java/awais/instagrabber/viewmodels/CommentsViewModel.java diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 00000000..61a9130c --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index ac6b0aec..23a89bbb 100755 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -15,6 +15,7 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index 3ea378e6..6e6363fe 100755 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -40,7 +40,7 @@ - + diff --git a/.idea/runConfigurations/app.xml b/.idea/runConfigurations/app.xml index fe1ee5d0..6276ac27 100755 --- a/.idea/runConfigurations/app.xml +++ b/.idea/runConfigurations/app.xml @@ -1,11 +1,12 @@ - +