Commit Graph

661 Commits

Author SHA1 Message Date
Ammar Githam 64600ceb04 Convert UserSearchFragment to kotlin and fix UserSearchMode 2021-07-07 16:29:44 +09:00
Ammar Githam 751259d430 Re-add ProfileFragmentViewModel params and fix tests 2021-07-07 15:09:33 +09:00
Austin Huang 390b3c384b
follow-up on merge (story directions) 2021-07-06 17:22:53 -04:00
Austin Huang f0a2feeaa8
Merge branch 'master' into pr/1542 2021-07-06 17:05:01 -04:00
Austin Huang fef2552bdf
actually support highlights and user stories
properly, meaning not trying to init another ProfileFragmentViewModel
2021-07-06 16:56:45 -04:00
Austin Huang 7e9e3b0fbf
re-implement viewing individual user stories 2021-07-06 15:30:37 -04:00
Austin Huang 379468d577
re-implement viewing highlights 2021-07-06 15:08:10 -04:00
Austin Huang cd1b1d5da2
some profile viewmodel refactoring 2021-07-06 12:35:19 -04:00
Austin Huang 7522b5f083
finish up stories viewer UI
close #537, close #1554
2021-07-06 11:26:24 -04:00
Austin Huang cade09aceb
remove SHOW_CAPTION setting 2021-07-06 11:23:53 -04:00
Austin Huang bb5244665b
story viewmodel (wip)
hiding the storylist doesn't work yet but everything else should be good
2021-07-05 20:11:58 -04:00
Ammar Githam 606fb986a2 Handle ActivityNotFoundException for OPEN_DOCUMENT_TREE. Fixes austinhuang0131/barinsta#1467 2021-07-06 07:48:12 +09:00
Ammar Githam 82d7555eee Change input setup flow. Fixes austinhuang0131/barinsta#1529 2021-07-06 06:50:18 +09:00
Ammar Githam 49780a61b0 Fix swipe to reply not working. Fixes austinhuang0131/barinsta#1570 2021-07-06 06:40:50 +09:00
Ammar Githam 0d35f37bbc Merge branch 'master' into feature/multistack-navigation 2021-07-04 22:05:27 +09:00
Ammar Githam 506e0c5685 Fix saved collections not refreshing properly on delete. Fixes austinhuang0131/barinsta#966 2021-07-04 20:32:46 +09:00
Ammar Githam da637bf04e Merge branch 'master' into feature/multistack-navigation 2021-07-04 18:22:54 +09:00
Austin Huang d4b6ca23cd
remove slider video view count
those don't exist anymore
2021-07-03 14:14:22 -04:00
Ammar Githam a41d2a2f73 Make comments to animation follow disable transition preference 2021-07-04 02:52:37 +09:00
Ammar Githam 97490d5c0b Add back screen transitions with option to disable them 2021-07-04 02:40:38 +09:00
Ammar Githam 05f8b1b8e3 Migrate Navigation to 2.4.0-alpha4
1. 2.4.0 introduces multistack navigation. Which removes the need for NavigationExtensions
2. Organised all nav graphs into a single graph to remove global action redundancy.
2021-07-03 21:36:34 +09:00
Austin Huang 8dc128563a
close #517 2021-06-30 18:13:51 -04:00
Austin Huang 80787c7e5e
various story fixes, closes #1496 2021-06-30 11:32:39 -04:00
Austin Huang 19d3434dbf
convert stuff to kotlin 2021-06-29 22:43:17 -04:00
Austin Huang 5593860e6c
close #998 2021-06-29 17:10:39 -04:00
Austin Huang da82759d19
close #1064 2021-06-29 16:59:42 -04:00
Austin Huang 4d9494cbcf
convert StoryModel to StoryMedia
close #1151, close #1208
2021-06-29 16:56:12 -04:00
Austin Huang 53b0301385
Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-06-29 12:58:23 -04:00
Ammar Githam e23f72f4d1 Remove unused param 2021-06-30 00:46:07 +09:00
Ammar Githam 16f0a34f55 Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-06-30 00:43:30 +09:00
Austin Huang 9e711638c4
remove hashtag and location stories
r/instagram said they were removed during the us election and never came back
2021-06-29 11:42:43 -04:00
Ammar Githam 27d919e6b2 Migrate ProfileFragment to kotlin and use viewmodel 2021-06-30 00:21:10 +09:00
Austin Huang 7ead5046d9
convert HighlightModel usages (as archives) to Story 2021-06-29 11:07:01 -04:00
Austin Huang f7ce2eeea2
convert HighlightModel usages (as highlights) to Story 2021-06-29 11:04:43 -04:00
Austin Huang 817a16873c
convert FeedStoryModel to Story and Broadcast response data classes
there seems to be a toolbar problem with live stories, will check tomorrow
2021-06-28 22:34:02 -04:00
Austin Huang 8bf9f5f2cc
reading exact child from dm media shares
https://t.me/barinsta_app/21890
2021-06-28 16:14:28 -04:00
Austin Huang 3f6ed5f78b
sending dm media shares with exact child
https://t.me/barinsta_app/21890
2021-06-28 15:29:37 -04:00
Austin Huang bf1a05a38c
restore slider position on resume 2021-06-28 15:29:02 -04:00
Austin Huang 786c567cca
allow replying to replies 2021-06-28 12:02:34 -04:00
Austin Huang 5e016e3210
close #1447 2021-06-26 15:30:20 -04:00
Austin Huang 9c811a6291
show documentprovider error details 2021-06-26 13:56:47 -04:00
Austin Huang 3032a388f0
share profile (unfinished) 2021-06-24 13:01:23 -04:00
Austin Huang 73c6cc4a5a
close #1457 2021-06-24 11:27:36 -04:00
Ammar Githam 63df44624e Add update favorite logic in ProfileFragmentViewModel and corresponding test 2021-06-24 20:41:48 +09:00
Austin Huang 832641603a
validate uri before writing pref
also made pref summary up-to-date
2021-06-22 12:12:42 -04:00
Austin Huang d031998123
show proper error for download category 2021-06-22 12:11:16 -04:00
Austin Huang 4a93d65253
proper share link chooser 2021-06-21 15:55:24 -04:00
Austin Huang f04a5bd2c6
disable unfinished dm share profile 2021-06-21 15:44:28 -04:00
Austin Huang 3db95163f8
fix not detecting downloaded video 2021-06-20 15:07:15 -04:00
Austin Huang ad69f7d382
saf cleanup, close #1439 2021-06-20 14:30:08 -04:00
Austin Huang dcd00ce60b
restore stories autoplay; close #1409 (main) 2021-06-19 12:39:58 -04:00
Austin Huang c2ac61986f
close #1362 2021-06-19 12:10:56 -04:00
Austin Huang 18de019c0d
remove legacy write-storage parts 2021-06-19 11:21:16 -04:00
Austin Huang f657f61aa7
proper self-profile handling when offline; close #1328 2021-06-18 20:00:42 -04:00
Austin Huang 7345ecefd0
option to disable auto backup; close #1433 2021-06-18 16:08:32 -04:00
Austin Huang 5ab794941e
convert switch back to if-then (auto) 2021-06-16 12:52:20 -04:00
Austin Huang d76018596d
share profile by dm: preparation 2021-06-15 13:27:58 -04:00
Austin Huang a45844b50e
simplify replying to stories
no need to create thread before sending
2021-06-14 21:13:12 -04:00
Austin Huang 95b90ab72f
Merge pull request #934 from ammargitham/support-android-11
Migrate to SAF (Storage Access Framework)
2021-06-14 13:53:30 -04:00
Austin Huang 2038f57472
preference and post support (not functional) 2021-06-13 17:58:25 -04:00
Austin Huang b287f96415
made pr buildable (not functional) 2021-06-13 17:21:34 -04:00
Austin Huang f961c422ca
Merge branch 'master' into pr/934 2021-06-13 12:02:51 -04:00
Austin Huang 0d7db5237f
Merge pull request #1374 from Vonter/restore_scroll_favorites
Save and Restore scroll position on Favorites Tab - Issue #1359
2021-06-13 11:46:17 -04:00
Ammar Githam 70ffac3025 Add some ProfileFragmentViewModel logic and tests 2021-06-13 20:52:03 +09:00
Ammar Githam 1d9eb43442 Make currentUser in AppStateViewModel a Resource 2021-06-13 20:01:09 +09:00
Ammar Githam de9a1e06a9 Add FavoriteRepository to ProfileFragmentViewModel constructor 2021-06-12 13:22:49 +09:00
Ammar Githam 77868838b9 Update how FavoriteDataSource and FavoriteRepository get initialised 2021-06-12 13:19:25 +09:00
Ammar Githam 8253328788 Add AccountRepository to ProfileFragmentViewModel constructor 2021-06-12 13:04:55 +09:00
Ammar Githam 06508ca78d Update how AccountDataSource and AccountRepository get initialised 2021-06-12 13:02:15 +09:00
Ammar Githam dad2260ea2 Add GraphQLRepository to ProfileFragmentViewModel constructor 2021-06-12 12:43:15 +09:00
Ammar Githam 205e21b07c Move GraphQLService object to GraphQLRepository constructor parameter. 2021-06-12 12:39:55 +09:00
Ammar Githam 69b685ae0d Interchange GraphQLService and GraphQLRepository names. 2021-06-12 12:34:50 +09:00
Ammar Githam 2a0295e325 Add MediaRepository to ProfileFragmentViewModel constructor 2021-06-12 10:07:31 +09:00
Ammar Githam 58e0863de5 Move MediaService object to MediaRepository constructor parameter. 2021-06-12 10:03:21 +09:00
Ammar Githam b2cbc18dbb Interchange MediaService and MediaRepository names. 2021-06-12 09:53:38 +09:00
Ammar Githam 02cb1f5db5 Add StoriesRepository to ProfileFragmentViewModel constructor 2021-06-12 08:54:00 +09:00
Ammar Githam 3d69148d9b Move StoriesService object to StoriesRepository constructor parameter. 2021-06-12 08:49:49 +09:00
Ammar Githam 1191b416ce Interchange StoriesService and StoriesRepository names. 2021-06-12 08:37:22 +09:00
Ammar Githam 8f218b9515 Add FriendshipRepository to ProfileFragmentViewModel constructor 2021-06-10 17:03:24 +09:00
Ammar Githam e1532eb4b8 Move FriendService object to FriendshipRepository constructor parameter. 2021-06-10 16:50:25 +09:00
Ammar Githam 0126fca36d Interchange FriendshipService and FriendshipRepository names. 2021-06-10 16:16:41 +09:00
Ammar Githam ed8ca2da02 More groundwork for ProfileFragmentViewModel 2021-06-09 09:09:40 +09:00
Ammar Githam 29d2b894d8 Interchange UserService and UserRepository names. Check description.
As per the sample provided at https://github.com/android/architecture-components-samples/tree/main/GithubBrowserSample, the Retrofit interfaces should be named Services and the classes using the services are Repositories.

Once all are properly named, we can move the db repositories inside the repositories package.
2021-06-09 08:40:13 +09:00
Ammar Githam d4bf5a57c2 Convert db entities to kotlin 2021-06-08 22:24:27 +09:00
Vonter ae23dd74ba Merge branch 'austinhuang0131:master' into restore_scroll_favorites 2021-06-07 23:02:11 +05:30
Vonter 257d707c14
Change favorites tab scroll position restore to use StateRestorationPolicy 2021-06-07 22:16:17 +05:30
Ammar Githam 76b246573d Convert FavoriteDao, FavoriteDataSource and FavoriteRepository to kotlin 2021-06-07 06:54:12 +09:00
Ammar Githam c647e22293 Convert AccountDao, AccountDataSource and AccountRepository to kotlin 2021-06-06 20:59:56 +09:00
Ammar Githam 6b499e3dfc Migrate DirectMessagesService to object 2021-06-06 20:11:36 +09:00
Ammar Githam cae457aa9a Convert StoriesRepository and StoriesService to kotlin 2021-06-06 19:29:21 +09:00
Ammar Githam cf65ed0fc5 Convert FriendshipRepository and FriendshipService to kotlin 2021-06-06 14:18:27 +09:00
Ammar Githam 143a0ce259 Convert GraphQLRepository and GraphQLService to kotlin 2021-06-06 13:14:29 +09:00
Ammar Githam a2bd2e4b53 Convert UserRepository and UserService to kotlin 2021-06-06 10:11:30 +09:00
Ammar Githam e56e4c17c9 Migrate MediaService to object 2021-06-06 09:43:19 +09:00
Ammar Githam 3f09c7d173 Convert User to kotlin 2021-06-05 19:58:01 +09:00
Ammar Githam faf299f6f0 Preparation for adding ProfileFragmentViewModel 2021-06-05 19:36:00 +09:00
Austin Huang 696a8c9c61
close #1383 2021-06-04 16:02:29 -04:00
Austin Huang bcfe4819cb
close #1346 2021-06-04 15:51:59 -04:00
Ammar Githam b997504602 Convert MediaRepository and MediaService to kotlin. 2021-06-04 07:17:24 +09:00
Ammar Githam 8491d1aac7 Convert BitmapUtils to kotlin and migrate MediaUploader funcs to suspend 2021-06-03 20:40:13 +09:00