Commit Graph

58 Commits

Author SHA1 Message Date
Ammar Githam 16f0a34f55 Merge branch 'master' of https://github.com/austinhuang0131/instagrabber 2021-06-30 00:43:30 +09: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 ad69f7d382
saf cleanup, close #1439 2021-06-20 14:30:08 -04: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 cae457aa9a Convert StoriesRepository and StoriesService to kotlin 2021-06-06 19:29:21 +09: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
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 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 074ee18c9d Improve comments viewer ui and ux. Update ui for likes viewer and follows viewer. 2021-05-02 18:16:25 +09: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 7005527150 Check navigation. Fixes https://github.com/austinhuang0131/barinsta/issues/380 2021-04-03 23:44:46 +09:00
Austin Huang 5421bb4592
fix story seen 2021-03-04 12:33:59 -05:00
Ammar Githam 3795ff2420 Merge remote-tracking branch 'origin/dm-notifications-enhancements' into dm-notifications-enhancements 2021-01-13 22:25:01 +09:00
Austin Huang 7ba116584b
fab prep 2021-01-12 13:40:53 -05:00
Ammar Githam ba10f8b410 Support opening media, hashtag, location, mentions in direct thread 2021-01-10 18:19:27 +09:00
Ammar Githam 404747fedc Add merged changes missed by Gitkraken 2021-01-08 21:50:58 +09:00
Ammar Githam 039194d046 Merge remote-tracking branch 'origin/dm-notifications-enhancements' into dm-notifications-enhancements 2021-01-08 21:49:48 +09:00
Ammar Githam 0018cd0b7f Migrate FeedModel and ProfileModel to Media and User 2021-01-07 21:36:33 +09:00
Austin Huang 7b07361a26
fix #518 pending testing 2021-01-05 23:37:06 -05:00
Austin Huang f85e0fc54c
close #491 2020-12-31 20:20:46 -05:00
Austin Huang 22d327e166
still can't fix the sync issue 2020-12-31 14:07:32 -05:00
Austin Huang f955a81599
story list optimization 2020-12-31 12:44:17 -05:00
Austin Huang 3883c4153c
menu item stuff 2020-12-30 13:43:35 -05:00
Austin Huang 3242fdc7ef
menu button amelioration 2020-12-29 18:17:54 -05:00
Austin Huang 8ebe8dd0f9
story archive, so half of #460 2020-12-29 17:33:44 -05:00
Austin Huang 6e4fa9fdbf
wip: archive and feed stories as a list 2020-12-29 15:19:00 -05:00
Austin Huang e539e426df
story read improvement (WIP) 2020-12-24 14:11:49 -05:00
Austin Huang 8240829fa8
fix #385, fix #417, fix #429, cleanup, prep for splash 2020-12-19 16:59:09 -05:00
Austin Huang c24fd016b1
rewrite stories backend, close #319, close #372, close #405 2020-12-17 15:13:41 -05:00
Ammar Githam d48c72924a Check for null PostsLayoutPreferences before setting variable in fragments 2020-11-15 04:07:38 +09:00
Ammar Githam 6bfb6e1bf3 Put collapsing toolbar layout views in the main layout to improve scroll behaviour.
This removes the spaghetti required to make scroll behaviours work.
2020-11-15 04:07:38 +09:00
Ammar Githam 84467b60b5 Add preference tp disable post open animation, extract some strings to xml, fix one locale string. 2020-11-14 18:32:11 +09:00
Ammar Githam e530a336a7 Scroll feed to top when bottom feed tab clicked 2020-11-07 20:26:20 +09:00
Ammar Githam 4579f2b37e Add download dialog 2020-11-03 19:01:59 +09:00
Ammar Githam 895cf15623 Add multi selection mode to all new post view fragments. Fix Delete action in download notification. 2020-11-03 17:23:20 +09:00
Ammar Githam 2931f2d3ab Add Posts view to Hashtag fragment 2020-11-01 20:34:42 +09:00
Ammar Githam efd9a9c29d Update Discover tab 2020-11-01 15:02:54 +09:00
Ammar Githam 0a67e859e0 Add PostsRecyclerView to ProfileFragment 2020-10-27 20:33:21 +09:00
Ammar Githam 9b83c5e832 More updated. Handle clicks. Updated comments viewer, etc 2020-10-24 18:10:21 +09:00
Ammar Githam 6bf59e83ad Initial commit for new posts layout 2020-10-17 19:07:03 +09:00
Austin Huang 6bd0b811b1
restore location & hashtag stories 2020-09-25 20:15:46 -04:00
Ammar Githam 46014928df Quick workaround for leftover refreshing status 2020-09-19 17:08:24 +09:00
Ammar Githam 122d84fbf2 No more requireContext() as it is fail first. Instead use getContext() and check for null. 2020-09-12 17:51:50 +09:00
Ammar Githam 60d9e64a57 Rename services package to webservices to avoid confusion with native Android services 2020-09-11 23:10:27 +09:00
Ammar Githam 80044b5daf Break down Utils into separate utility classes as Utils was getting bloated 2020-09-10 20:44:25 +09:00
Ammar Githam 3de2f4ea99 Fix auto play videos setting not correctly set 2020-09-09 00:38:49 +09:00
Ammar Githam 7e8fdda81b Add updated profile pic viewer, and view stories from profile. 2020-09-06 18:25:27 +09:00
Ammar Githam 6b0fe3ff78 Move viewmodels package to root directory 2020-09-06 15:06:36 +09:00
Ammar Githam 3c90eebe7a Fix pull to refresh in FeedFragment, and add pull to refresh in ProfileFragment 2020-09-05 17:08:44 +09:00