Commit Graph

661 Commits

Author SHA1 Message Date
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
Ammar Githam 45e629ee61 Convert DirectMessageSettingsFragment to kotlin 2021-06-02 07:14:38 +09:00
Vonter caa71faab1
added scroll position save and restore in favorites tab 2021-06-01 19:55:49 +05:30
Ammar Githam 01c944486d Convert DirectPendingInboxFragment to kotlin 2021-06-01 21:23:42 +09:00
Ammar Githam ffafda0085 Rename .java to .kt 2021-06-01 21:23:42 +09:00
Ammar Githam da41393177 Some refactoring and fixes 2021-06-01 20:54:20 +09:00
Ammar Githam fd3b1a8d18 Convert DirectMessageInboxFragment to kotlin 2021-06-01 20:03:00 +09:00
Ammar Githam 652c57aa24 Rename .java to .kt 2021-06-01 20:03:00 +09:00
Ammar Githam cc1741005b DirectMessagesRepository migrated to suspend functions 2021-06-01 06:45:36 +09:00
Ammar Githam 741a997424 More suspend funs 2021-05-31 22:16:18 +09:00
Ammar Githam 538a1406a6 Merge remote-tracking branch 'upstream/master' 2021-05-31 20:56:06 +09:00
Ammar Githam 87e6e4440f Convert to kotlin, suspend funs, and viewModelScope 2021-05-31 20:55:22 +09:00
Austin Huang 267096ff39
move private post warning to share dialog
i don't know if this works on android 10+ but eh
2021-05-30 20:02:18 -04:00
Austin Huang 241c9437c5
close #1360, close #1361 2021-05-30 19:23:09 -04:00
Austin Huang 972f71c480
convert some to kotlin 2021-05-30 19:07:58 -04:00
Austin Huang e8ce2898b6
Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-05-29 10:47:52 -04:00
Austin Huang 890139a287
comments redo (logged-in endpoint) 2021-05-29 10:46:23 -04:00
Ammar Githam 3db7b53757 Convert DirectThreadViewModel to kotlin and fix ThreadManager 2021-05-29 23:14:04 +09:00
Ammar Githam 59750b1026 Convert DM managers to kotlin 2021-05-29 22:22:28 +09:00
Ammar Githam 9830a04ec3 Handle '@' in username in ProfileFragment. Fixes austinhuang0131/barinsta#1337 2021-05-28 21:48:59 +09:00
Ammar Githam 77965f9634 Convert FavoritesViewModel to kotlin and optimise code 2021-05-25 07:36:47 +09:00
Ammar Githam d284a1901e Convert FavoritesFragment to kotlin 2021-05-25 06:45:07 +09:00
Ammar Githam 7f21eed5cf Rename .java to .kt 2021-05-25 06:45:07 +09:00
Austin Huang 2395b3b892
remake date formatter 2021-05-23 20:51:29 -04:00
Ammar Githam b273bff738 Replace some usages of Date with LocalDateTime. austinhuang0131/barinsta#1309 2021-05-23 21:58:19 +09:00
Ammar Githam c784ca937d Fix FriendshipStatus variable names 2021-05-23 20:17:52 +09:00
Ammar Githam 7dc3732e3e Convert to kotlin 2021-05-23 17:10:49 +09:00
Ammar Githam d7462109db Convert to kotlin 2021-05-23 16:48:27 +09:00
Ammar Githam 742b696d17 Share posts via DM. Resolves part of austinhuang0131/barinsta#537 2021-05-23 15:57:01 +09:00
Ammar Githam 0dfdc4bb41 Replace Toast with Tooltip in PostViewV2Fragment. Fixes austinhuang0131/barinsta#1264 2021-05-23 12:10:42 +09:00
Ammar Githam b3680584bf Fix fullscreen mode showing bottom nav bar and fix austinhuang0131/barinsta#1292 2021-05-23 08:07:49 +09:00
Ammar Githam 505d5acef3 Merge remote-tracking branch 'upstream/master' 2021-05-23 06:31:04 +09:00
Ammar Githam 13bfc9cb84 Convert some retrofit response classes to kotlin 2021-05-23 06:26:33 +09:00
Austin Huang c003cf5900
convert some more classes to kotlin 2021-05-22 16:22:16 -04:00
Austin Huang 1ad2b3e72b
Rename .java to .kt 2021-05-22 16:22:15 -04:00
Austin Huang 43b2d37c4f
fix #1300 2021-05-22 12:12:57 -04:00
Ammar Githam 0c7fb20b2b Merge branch 'master' of https://github.com/austinhuang0131/barinsta
Merge branch 'master'
2021-05-22 18:03:03 +09:00
Ammar Githam 84e93431ae Add Kotlin and convert some model classes to kotlin 2021-05-22 17:58:18 +09:00
Austin Huang 98d7260927
fix archive viewing bug 2021-05-21 14:21:44 -04:00
Austin Huang ec9e28bc09
close #1267 and also simplify FriendshipService 2021-05-21 12:23:24 -04:00
Austin Huang 447ef0d660
replace CreateThreadAction 2021-05-20 15:07:09 -04:00
Austin Huang 55624dbdce
Merge pull request #1219 from raniapl/raniapl/development
Disable scrolling on empty profiles - Fix issues #1093, #1135, #1061
2021-05-19 12:57:46 -04:00
Austin Huang 62f63a33a3
retire PostFetcher 2021-05-19 12:38:29 -04:00
Ammar Githam 644f2ddff8 Add some null checks and formatting. 2021-05-19 20:09:49 +09:00
Ammar Githam f501f68f98 Merge branch 'master' into raniapl/development 2021-05-19 19:55:14 +09:00
Austin Huang a462f1e6b2
Merge pull request #1190 from raniapl/stamatiap/development
add an alert dialog for swipe up link - fix issue #1101
2021-05-18 17:15:33 -04:00
Austin Huang f85daef6ea
remove redundant import 2021-05-18 17:15:09 -04:00
Austin Huang 78caa4286a
fix indentations 2021-05-18 17:14:28 -04:00
Austin Huang d5e75d16c3
long-clicking a discover topic should now show cover post 2021-05-18 16:43:11 -04:00
Austin Huang f4d1575edb
close #1263 2021-05-18 16:24:37 -04:00
Austin Huang 4161c7bc4d
close #1271 2021-05-18 16:21:30 -04:00
Austin Huang 256a2ae88d
option to show keyboard immediately on search, close #1261 2021-05-18 15:48:28 -04:00
Austin Huang bedae1804f
Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-05-18 15:39:24 -04:00
Austin Huang ba0d51d0b6
migrate preference keys 2021-05-18 14:54:26 -04:00
Rania Pilioura c0cc45bcc3 Format code 2021-05-17 05:51:56 +03:00
Rania Pilioura 86b724d998 Disable scrolling on blank or private profiles
works with MotionLayout
See #1219
2021-05-17 05:38:30 +03:00
Rania Pilioura 3ca326d520 Merge remote-tracking branch 'upstream/master' into raniapl/development 2021-05-17 03:14:53 +03:00
stamatiap 892bfa336f Merge branch 'stamatiap/development' of https://github.com/raniapl/barinsta into stamatiap/development 2021-05-16 10:10:52 +03:00
Stamatia Papageorgiou cdb566a160 Merge branch 'austinhuang0131:master' into stamatiap/development 2021-05-16 10:09:08 +03:00
stamatiap 407f0680c1 make changes in dialog 2021-05-16 10:00:16 +03:00
Austin Huang 23b7119846
null check to avoid launch crash
immediately hitting the feed tab after launch will produce the following crash, so this resolves it by a null check:

```
java.lang.NullPointerException: Attempt to read from field 'awais.instagrabber.customviews.PostsRecyclerView awais.instagrabber.databinding.FragmentFeedBinding.feedRecyclerView' on a null object reference
	at awais.instagrabber.fragments.main.FeedFragment.scrollToTop(FeedFragment.java:461)
	at awais.instagrabber.utils.NavigationExtensions.lambda$setupItemReselected$2(NavigationExtensions.java:190)
	at awais.instagrabber.utils.-$$Lambda$NavigationExtensions$C3II1R-NOFB80ERAxio06uf3Qto.onNavigationItemReselected(Unknown Source:4)
...
```
2021-05-15 20:40:02 -04:00
Austin Huang fc70129c96
close #1040 (probably) 2021-05-15 12:53:00 -04:00
Ammar Githam 37edc0171e Pause story player in onPause instead of releasing it. Fixes austinhuang0131/barinsta#1060 2021-05-15 13:27:51 +09:00
Ammar Githam b3cd83ad31 Fix clicking story from story list after searching opens wrong story. Fixes austinhuang0131/barinsta#1189 2021-05-15 13:21:58 +09:00
Ammar Githam e1057c8781 Fix sending videos in DM. Fixes austinhuang0131/barinsta#1217 2021-05-15 12:44:03 +09:00
Ammar Githam 5daec513ba Fix post view button colors wrong for some themes 2021-05-15 11:47:30 +09:00
Ammar Githam eb1e55470a Fix null menuItemView warnings 2021-05-15 11:46:15 +09:00
Ammar Githam 1e94c73e10 Fix feed stories not rendered if app goes in background immediately after startup. Fixes austinhuang0131/barinsta#1258 2021-05-15 08:21:38 +09:00
Ammar Githam 988033f5fd Fix verified, private icons in profile details shifting when scrolling 2021-05-15 07:07:27 +09:00
Ammar Githam 78cfa32a83 Fix navigating away from post view causing app resize 2021-05-15 06:51:33 +09:00
Austin Huang 429bcc4e91
fix #1255 2021-05-14 15:00:31 -04:00
Austin Huang 1e2cf4f3a9
Merge pull request #1229 from raniapl/stamatiap/fixissue1075
fix highlight title - issue #1075
2021-05-14 14:08:23 -04:00
Rania Pilioura e8a4477cbc Merge branch 'master' into raniapl/development 2021-05-14 14:51:50 +03:00
Rania Pilioura 78484a86ac Trying to solve merge conflicts
disable scrolling functionality first try removed
2021-05-14 14:19:59 +03:00
Ammar Githam cf71ca682e Update keyboard/emojipicker visiblity logic. Fixes austinhuang0131/barinsta#1181. Also check description.
This commits adds some special handling for Android 11+ users regarding keyboard visibility. Check https://github.com/android/user-interface-samples/tree/master/WindowInsetsAnimation.
2021-05-14 00:53:23 +09:00
Ammar Githam 1ede8ad4bf Fix some bottom nav bar related issues. Check description.
1. Fixed inconsistent bottom bar hiding. Since currently bottom bar cannot hide with motionlayout, keep bottom bar visible.
2. Remove unnecessary padding in location and hashtag fragment.
3. Fix the last item in more preference screen hidden under bottom bar.
2021-05-11 20:07:10 +09:00
Ammar Githam 413f12c3c2 parse locationId to long before setting to bundle. Fixes austinhuang0131/barinsta#1235 2021-05-11 19:45:28 +09:00
Stamatia Papageorgiou d9248d2fb9
Merge branch 'master' into stamatiap/development 2021-05-10 22:25:07 +03:00
stamatiap 38b7f29d44 update alert dialog title 2021-05-10 21:54:07 +03:00
stamatiap 1f61926108 add default case to switch statement - issue #1101 2021-05-10 21:54:06 +03:00
stamatiap fdacd1b421 add alert dialog for swipe up link - issue #1101 2021-05-10 21:54:06 +03:00
Ammar Githam 1c5bdb1cca Possible fix for Tmp detached view error. Fixes austinhuang0131/barinsta#1200 2021-05-10 21:39:13 +09:00
stamatiap 1665262fdf fix highlight title - issue #1075 2021-05-09 13:40:05 +03:00
Ammar Githam 2f4fe657e9 Allow reacting direct item with any emoji. Fixes austinhuang0131/barinsta#1137 2021-05-09 03:57:47 +09:00
Ammar Githam 5744a1a687 Add fullscreen mode to post view 2021-05-09 02:14:36 +09:00
Rania Pilioura 6502bceb2e Make AppBarLayout.LayoutParams toolbarLayoutParams final 2021-05-08 14:59:24 +03:00
Ammar Githam 3dde61d91a Show tooltip to make user aware of expandable count. Fix FormattedNumberTextView animation. 2021-05-08 20:22:26 +09:00
Ammar Githam 2f4eff741e Update post view layout and a height related bug. Use exo's internal layout for controls. 2021-05-08 15:49:20 +09:00
Rania Pilioura 8210347e66 Disable scrolling when profile has no posts
Fix #1093
2021-05-08 06:35:57 +03:00
Ammar Githam 59c8a325fe Fix collapsing toolbar with covers 2021-05-07 21:19:16 +09:00
Ammar Githam 96da16ff84 Convert Post view to a regular fragment instead of dialog.
Added global fragment animations too
2021-05-07 20:34:31 +09:00
Ammar Githam 9dae40fae0 More null checks. Probably resolves austinhuang0131/barinsta#992 2021-05-03 17:31:00 +09:00
Ammar Githam a6e9a34024 Switch to use exo controls 2021-05-03 03:16:40 +09:00
Ammar Githam 074ee18c9d Improve comments viewer ui and ux. Update ui for likes viewer and follows viewer. 2021-05-02 18:16:25 +09:00
stamatiap 990cb8fdcd make needed changes - issue #1047 2021-04-28 20:36:25 +03:00
stamatiap a5759b6c1b fix Add to favorites button's visibility - issue #1047 2021-04-28 20:36:25 +03:00
Ammar Githam 1cd75f2462 Popup to first fragment on tab reselect. Closes austinhuang0131/barinsta#1079 2021-04-29 01:38:46 +09:00
Ammar Githam 1a57c4c813 Handle no map app. Fixes austinhuang0131/barinsta#1175 2021-04-29 00:22:13 +09:00
Ammar Githam c0fb6e3a50 Fix comments input color in dark black theme. Fixes austinhuang0131/barinsta#1062 2021-04-29 00:14:12 +09:00
Ammar Githam 6df5bc056c Fix tapping search input not showing keyboard the first time 2021-04-28 23:16:35 +09:00
Austin Huang f88bc49c30
Merge pull request #1077 from ammargitham/feature/search-history
Search history with separate search fragment
2021-04-26 17:53:20 -04:00