Commit graph

361 commits

Author SHA1 Message Date
Vishnu Mohandas 5214d194df Use a sync loader within the Gallery whenever possible 2020-07-13 03:47:44 +05:30
Vishnu Mohandas 5364344d04 Minor refactor 2020-07-13 03:15:50 +05:30
Vishnu Mohandas e89ee6c7f8 Add log statements to track the annoying bug that's causing gallery to not refresh itself 2020-07-10 23:48:21 +05:30
Vishnu Mohandas dd85f629ab Don't block on the photo manager sync 2020-07-10 23:47:51 +05:30
Vishnu Mohandas 00bbca7048 Handle errors thrown while fetching folders 2020-07-10 23:38:26 +05:30
Vishnu Mohandas b01bad8090 Remove direct file access for thumbnails 2020-07-09 02:40:14 +05:30
Vishnu Mohandas ddb25a1536 Remove the notion of direct access URLs for files 2020-07-09 02:21:36 +05:30
Vishnu Mohandas 15966ce95f Update API to download a file 2020-07-09 01:16:04 +05:30
Vishnu Mohandas f333f32681 Update the URL to access thumbnails 2020-07-09 01:14:51 +05:30
Vishnu Mohandas 8d73735e93 Pass token while accessing a file or stream 2020-07-08 21:11:11 +05:30
Vishnu Mohandas ccc635c663 Fix issue with showing toast 2020-07-08 21:09:49 +05:30
Vishnu Mohandas 8f1e4297aa Add progress dialog while fetching data to share files 2020-07-08 03:34:08 +05:30
Vishnu Mohandas 4d6b9074aa Remove unused imports 2020-07-08 03:26:56 +05:30
Vishnu Mohandas b7e898e95f Load the original file URL when the file is not available for streaming yet 2020-07-08 03:24:11 +05:30
Vishnu Mohandas f4fe539df4 Accept toast-length as a parameter 2020-07-08 03:23:09 +05:30
Vishnu Mohandas 8f0b606713 Add a util for displaying toasts 2020-07-08 03:16:14 +05:30
Vishnu Mohandas c75551db99 Stream videos instead of downloading them raw 2020-07-08 03:07:13 +05:30
Vishnu Mohandas 936659b8d8 Remove debugging condition 2020-07-07 19:22:56 +05:30
Vishnu Mohandas 8c031a87fd Add modificationTime as an attribute of a file 2020-07-07 00:39:47 +05:30
Vishnu Mohandas f79f2497e7 Mark files in the "Recent" folder also as important 2020-07-06 14:44:34 +05:30
Vishnu Mohandas 42d9d21af5 Minor refactor 2020-07-06 14:43:59 +05:30
Vishnu Mohandas 849cedbf5f Update style of buffered color in the video control 2020-06-29 16:52:13 +05:30
Vishnu Mohandas 4a90dde9a3 Ensure that the controller is disposed only if initialized 2020-06-24 06:19:12 +05:30
Vishnu Mohandas 36467b6673 Fix cache-issues due to hash collisions 2020-06-24 01:43:45 +05:30
Vishnu Mohandas 45611be9b2 Ensure that thumbnail does not replace the hidef image 2020-06-24 01:42:43 +05:30
Vishnu Mohandas 060cc2b41b Fix the aspect ratio of video thumbnails 2020-06-24 00:44:18 +05:30
Vishnu Mohandas 22bb3138ef Remove unused widget 2020-06-24 00:38:17 +05:30
Vishnu Mohandas 46ea30c4fd Fix the hero tag in videos 2020-06-24 00:34:28 +05:30
Vishnu Mohandas cd32098360 Fix the hero animation for remote images 2020-06-24 00:27:22 +05:30
Vishnu Mohandas 56783b97d3 Add fade-in animation to thumbnails 2020-06-24 00:20:10 +05:30
Vishnu Mohandas d7c18069ce Reuse the cached thumbnail if available within the detail view 2020-06-23 23:24:18 +05:30
Vishnu Mohandas 90ff5247de Cache thumbnails to disk 2020-06-23 23:11:27 +05:30
Vishnu Mohandas 71fd7277b1 Update loading widget style 2020-06-23 23:09:45 +05:30
Vishnu Mohandas 82af9306f8 Trigger the folder sync without blocking 2020-06-23 21:19:04 +05:30
Vishnu Mohandas d042d0dc2e Add hero animation to videos 2020-06-23 20:35:48 +05:30
Vishnu Mohandas 42a1471c58 Add thumbnail image to the video loading screen 2020-06-23 20:29:51 +05:30
Vishnu Mohandas 2f4b4c3280 Do not preload videos 2020-06-23 20:29:27 +05:30
Vishnu Mohandas f12ef4fe6a Add extra logline to help with debugging 2020-06-23 20:27:57 +05:30
Vishnu Mohandas 93b2516205 Fix OOMs while uploading large files 2020-06-22 05:17:55 +05:30
Vishnu Mohandas 3660aadd3d Ensure that on delete a refresh is triggered 2020-06-21 23:19:50 +05:30
Vishnu Mohandas 985fd2f38a Auto play video only when loaded directly 2020-06-21 23:14:21 +05:30
Vishnu Mohandas e040de1d55 Add option to delete a file within the detail page 2020-06-21 18:46:27 +05:30
Vishnu Mohandas c4dfc72aac Add a separate folder for videos 2020-06-21 05:35:15 +05:30
Vishnu Mohandas 8b6685c3e2 Update video controls 2020-06-21 05:21:10 +05:30
Vishnu Mohandas 93ed21a444 Fix overflowing issue 2020-06-21 04:25:39 +05:30
Vishnu Mohandas 12e5fa1450 Fix full screen behavior for videos 2020-06-21 04:17:09 +05:30
Vishnu Mohandas 40c2218285 Hide app bar on the detail page 2020-06-21 03:07:44 +05:30
Vishnu Mohandas 33da12c857 Center align loading text 2020-06-21 02:46:39 +05:30
Vishnu Mohandas 1965c30dfa Fix overscrolling text on device folder page 2020-06-21 00:25:46 +05:30
Vishnu Mohandas 32000499b5 Set background color of detail page to black 2020-06-20 15:36:55 +05:30
Vishnu Mohandas 5bda9a0457 Add a play icon to video thumbnails 2020-06-20 15:33:45 +05:30
Vishnu Mohandas 532540d4ac Decouple folder sync from that of files 2020-06-20 04:37:53 +05:30
Vishnu Mohandas 12ba36a0d4 Rename file 2020-06-20 04:36:07 +05:30
Vishnu Mohandas a5aaf91460 Extend support for videos 2020-06-20 04:33:26 +05:30
Vishnu Mohandas 1e92a0ad08 Ensure that the selected photo change is propogated to fix the issue where in the favorite button was not getting updated 2020-06-19 00:09:05 +05:30
Vishnu Mohandas a99bfde90d Fix the title matching logic for remote HEIC files that was triggering duplicate entries 2020-06-18 01:46:46 +05:30
Vishnu Mohandas d178b0838d Improve log statement readability 2020-06-18 01:17:49 +05:30
Vishnu Mohandas 46fcd8607f Minor changes to sync manager 2020-06-18 00:08:49 +05:30
Vishnu Mohandas dcd34b0d60 Change to friendlier copy 2020-06-18 00:04:16 +05:30
Vishnu Mohandas df1240fd0c Remove the extended page view nonsense 2020-06-17 20:39:47 +05:30
Vishnu Mohandas 6ccc40b17c Remove unused variable 2020-06-17 18:26:06 +05:30
Vishnu Mohandas 456f30738c Refactor ZoomableImage 2020-06-17 18:08:18 +05:30
Vishnu Mohandas e145358a84 Refactor sync manager 2020-06-17 17:22:31 +05:30
Vishnu Mohandas 0218623f70 Fix bug leading to perpetual loading state in Gallery 2020-06-17 16:51:29 +05:30
Vishnu Mohandas efde1b6fe3 Refactor gallery 2020-06-16 18:26:23 +05:30
Vishnu Mohandas 46654b767e Update strings in app 2020-06-16 01:29:18 +05:30
Vishnu Mohandas 668ff881c7 Add loading state for first time load 2020-06-16 01:27:48 +05:30
Vishnu Mohandas b133fb6c4f Add some emojis to the empty states 2020-06-16 01:08:57 +05:30
Vishnu Mohandas e584226728 Remove unnecessary subscription to event 2020-06-16 00:36:00 +05:30
Vishnu Mohandas a387d026ae Setup a reload trigger for Gallery 2020-06-16 00:33:43 +05:30
Vishnu Mohandas 0e5416d4ff Make Gallery agnostic to the photo-upload events 2020-06-16 00:25:07 +05:30
Vishnu Mohandas bdb317956a Display uploading status on the refresh indicator 2020-06-16 00:12:25 +05:30
Vishnu Mohandas 4d77ccc8ba Wrap sync-ing attemts inside a try-catch block to avoid uncaught errors 2020-06-16 00:08:08 +05:30
Vishnu Mohandas baeb54f534 Add cache to prevent gallery reloads for each rebuild 2020-06-15 18:16:51 +05:30
Vishnu Mohandas d5580915e3 Cache remote images 2020-06-15 10:20:26 +05:30
Vishnu Mohandas d84456bd5c Prevent multiple syncs from triggering 2020-06-15 10:02:12 +05:30
Vishnu Mohandas 583f087da5 Move the logic for loading photos to the Gallery widget 2020-06-15 09:55:58 +05:30
Vishnu Mohandas 69d5ea1199 Move to pre Android Q API for fetching location 2020-06-15 08:55:05 +05:30
Vishnu Mohandas 6e688cd445 Sync only folders that aren't owned by the user 2020-06-15 08:54:41 +05:30
Vishnu Mohandas c8e7e9bedb Move the pull to sync logic out of Gallery 2020-06-15 08:42:02 +05:30
Vishnu Mohandas 63f90ca519 Update the tag used for heroes 2020-06-15 06:23:12 +05:30
Vishnu Mohandas b98a3cc530 Remove unnecessary deduplication logic 2020-06-15 06:16:56 +05:30
Vishnu Mohandas 4b38828d4c Let the uploaded ID be set to null when loading photo from disk 2020-06-15 06:03:24 +05:30
Vishnu Mohandas 44965a3473 Remove unneccessary non-null constraints 2020-06-15 05:27:50 +05:30
Vishnu Mohandas d196284dfd Update photo when it was updated on remote 2020-06-15 05:02:37 +05:30
Vishnu Mohandas 464829e650 Precache final image only if mounted 2020-06-15 04:41:48 +05:30
Vishnu Mohandas 1d3849fe1e Return an empty diff in case the request fails 2020-06-14 00:50:02 +05:30
Vishnu Mohandas 46ca969392 Hide share button on favorites folder 2020-06-14 00:30:59 +05:30
Vishnu Mohandas e4017d91df Add an info button to photos 2020-06-14 00:17:48 +05:30
Vishnu Mohandas b42bbbe0b4 Set the initial state of the pull-down widget to refreshing 2020-06-13 23:39:19 +05:30
Vishnu Mohandas c9d5cc9e1a Request photos from a specific timestamp 2020-06-13 23:32:06 +05:30
Vishnu Mohandas 81d90da546 Fix image loading on Android Q 2020-06-13 22:14:16 +05:30
Vishnu Mohandas d09b0dfa8e Remove restriction on folders to be uploaded 2020-06-13 20:34:09 +05:30
Vishnu Mohandas 4f7fc1f3a0 Send the correct title with an HEIC image 2020-06-12 22:24:58 +05:30
Vishnu Mohandas 5639f3739a Reduce the cache size 2020-06-12 22:23:23 +05:30
Vishnu Mohandas 31e3ac7251 Simplify code in thumbnail widget 2020-06-11 03:11:19 +05:30
Vishnu Mohandas 83fc76f479 Fix hero behavior 2020-06-11 03:06:01 +05:30
Vishnu Mohandas 25de85aea6 Check if widget is mounted before precaching image 2020-06-11 02:32:24 +05:30
Vishnu Mohandas 59dcc38ba5 Cache photos to the left and right 2020-06-10 23:47:54 +05:30
Vishnu Mohandas a659fefa6d Reduce the number of rebuilds 2020-06-10 05:34:22 +05:30