Commit Graph

175 Commits

Author SHA1 Message Date
Kirill Kamakin ebba1889c7 Update version to 0.1.1 2021-11-27 10:48:05 +03:00
Kirill Kamakin 9ea2facc8d Extract recipe info adapters to ViewModel 2021-11-27 10:44:28 +03:00
Kirill Kamakin 715e63a1d4 Specify RecipeInfoFragment's layout managers in xml 2021-11-27 10:39:57 +03:00
Kirill Kamakin cc5c9edb1f Refactor RecipesFragment
This commit extracts SwipeRefreshLayout extension to a
separate file. Additionally, it refactors RecipesFragment in
order to move all the logic to the ViewModel from the View.
2021-11-27 00:22:52 +03:00
Kirill Kamakin 897698ab02 Extract remote classes to local ones mapping 2021-11-27 00:21:15 +03:00
Kirill Kamakin b3d03c5281 Extract SharedPreferences extensions to a file 2021-11-27 00:19:49 +03:00
Kirill Kamakin dc6084ee25 Move auth response handling to runCatching
runCatching is easier to read and understand than mapCatching
2021-11-27 00:18:56 +03:00
Kirill Kamakin b5606f3241 Move network extensions to separate file 2021-11-27 00:18:12 +03:00
Kirill Kamakin 20c19fd644 Move RoomTypeConverters to util 2021-11-27 00:17:18 +03:00
Kirill Kamakin 91078de1a7 Replace PagingSource factory with Google's impl 2021-11-26 19:39:44 +03:00
Kirill Kamakin 20c3fa8e20 Specify version name 2021-11-25 20:43:09 +03:00
Kirill Kamakin 8d00cde725 Show screenshots in line 2021-11-25 20:41:39 +03:00
Kirill Kamakin cf7fa45241 Scale UI screenshots 2021-11-25 20:39:57 +03:00
Kirill Kamakin 1d1b791d57 Add UI screenshots 2021-11-25 20:35:28 +03:00
Kirill Kamakin 7ecad55a60 Update recipe view holder ellipsize params 2021-11-25 20:18:21 +03:00
Kirill Kamakin 0d3dfeebd9 Use rounded corners for recipe view holder 2021-11-25 20:15:01 +03:00
Kirill Kamakin e701b5d7df Show recipe info in bottom sheet dialog 2021-11-25 20:06:53 +03:00
Kirill Kamakin 6c41c4fcf6 Use center crop for recipe images 2021-11-25 19:34:31 +03:00
Kirill Kamakin 5070f975c4 Use placeholder_recipe in layout designer 2021-11-25 19:07:49 +03:00
Kirill Kamakin d2032380c7 Extract corner radius dimension 2021-11-25 19:06:46 +03:00
Kirill Kamakin 57babcbd1f Fix using trySendBlocking where trySend must be 2021-11-23 23:48:53 +03:00
Kirill Kamakin db2a0b4a94 Wait a second on splash to show image properly 2021-11-23 22:16:22 +03:00
Kirill Kamakin 20cb747b2a Change fullscreen state as soon as possible in splash 2021-11-23 22:16:05 +03:00
Kirill Kamakin cf9bd407a4 Add new splash fragment image 2021-11-23 22:15:48 +03:00
Kirill Kamakin 6e92d6a233 Improve disclaimer fragment layout 2021-11-23 22:07:26 +03:00
Kirill Kamakin d8b4245eef Remove app title after user authenticates 2021-11-23 21:04:16 +03:00
Kirill Kamakin 0b00868acc Add icon to the app toolbar 2021-11-23 21:03:43 +03:00
Kirill Kamakin b69034ec49 Replace app icon 2021-11-23 20:28:34 +03:00
Kirill Kamakin 54753f6ee9 Improve view holder recipe layout 2021-11-23 20:17:24 +03:00
Kirill Kamakin 5639fe4517 Implement toolbar hiding on scroll 2021-11-21 20:45:15 +03:00
Kirill Kamakin 263ebbd431 Replace recipe placeholder image 2021-11-21 20:42:25 +03:00
Kirill Kamakin 9e39b286b9 Set new primary color 2021-11-21 20:42:11 +03:00
Kirill Kamakin 9f0b85127a Remove "tools:targetApi=l" because minSdk is already L 2021-11-21 20:39:58 +03:00
Kirill Kamakin ecd41c9dc6 Make sure recycler view scrolls recipes 2021-11-21 20:38:38 +03:00
Kirill Kamakin 552d0d2f6c Disable overScrollMode entirely 2021-11-21 20:38:05 +03:00
Kirill Kamakin d36ebfe50c Show auth errors to the user 2021-11-21 17:29:44 +03:00
Kirill Kamakin 808e1ce359 Map auth errors to internal representation 2021-11-21 17:27:22 +03:00
Kirill Kamakin e8089c6684 Allow using user's SSL certificates in Debug mode
This is required for Charles Proxy
2021-11-21 16:35:44 +03:00
Kirill Kamakin 0121e90c99 Make bottom left toolbar corner rounded 2021-11-21 15:41:27 +03:00
Kirill Kamakin 316ae55013 Remove screenshots as they aren't displayed properly and should be hosted elsewhere. 2021-11-21 11:49:04 +03:00
Kirill Kamakin 13d69b9167 Show screenshots as images, not links 2021-11-21 11:44:03 +03:00
Kirill Kamakin e5edf045d8 Improve disclaimer wording and fill README.md 2021-11-21 11:42:38 +03:00
Kirill Kamakin 0a0472c17d Fix ability to click login twice 2021-11-20 22:59:13 +03:00
Kirill Kamakin 5067e1e98f Add bottom padding to instructions list 2021-11-20 22:52:39 +03:00
Kirill Kamakin 35612d14ad Update disclaimer text 2021-11-20 22:42:06 +03:00
Kirill Kamakin 3a4400a14a Use OkHttp for glide too 2021-11-20 22:27:05 +03:00
Kirill Kamakin dd9c302729 Reuse OkHttp instance 2021-11-20 22:23:51 +03:00
Kirill Kamakin a6e948ca6b Fix calling navigateToAuth twice and even more
Calling that method several times in a row is not supported,
Navigation library throws an Exception saying it doesn't know how
to navigate there
2021-11-20 22:07:43 +03:00
Kirill Kamakin 3cc3d1f174 Fix LICENSE text 2021-11-20 21:16:46 +03:00
Kirill Kamakin 70c0df1cf7 Fix ConcurrentModificationException in RecipePagingSourceFactory
It seems that it is possible to launch several coroutines on same
main thread of application. That's why it is possible to launch both
invoke and invalidate at the same time even though they are marked as
synchronized. To fix the issue this commit uses a concurrent collection
instead of synchronization.
2021-11-20 21:13:26 +03:00