1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00
Commit graph

281 commits

Author SHA1 Message Date
Christophe Beyls
4df07a40b3
Refactor all database code to use Room, LiveData and the pagination library (#42)
* Bump minSDK version to 16 because SQLite < 3.7.11 doesn't support syntax 'CREATE TABLE IF NOT EXISTS' for FTS tables

* Reimplement search results screen using pagination, share a ViewModel between the Activity and the Fragment to allow updating the same fragment instance

* Preserve scroll position 0 in live fragments to ensure the insert/remove animation will be visible

* Simplify MultiChoiceHelper to always dispatch selection changes to the adapter using a payload, which prevents item crossfading on selection state change

* Use withLayer() for better performance of progress bar fade out animation
2019-01-28 13:30:07 +01:00
Christophe Beyls
bc27d4af49 Mirror the drawer shadow image for RTL configuration 2019-01-27 21:13:28 +01:00
Christophe Beyls
c33f7b23e3 Improve RTL support in all layouts
Disable RTL mode for TabLayout
Fix RTL support of CollapsingToolbarLayout
Use android:textAppearance attribute instead of style when possible.
2019-01-27 19:35:56 +01:00
Christophe Beyls
924e089e86 Replace legacy horizontal progress bar with material horizontal progress bar backport implementation on API <21 2019-01-27 02:56:08 +01:00
Christophe Beyls
b79e29a67c Performance fix: ensure the ViewPager is only made visible when the adapter is set to avoid it to layout pages too early 2019-01-25 02:00:48 +01:00
Christophe Beyls
7e15f7de55 Use a consumable LiveData event to report the schedule download result to UI in place of LocalBroadcastManager
Use a simple AtomicBoolean instead of a lock to prevent concurrent downloads
2019-01-24 20:20:50 +01:00
Christophe Beyls
2a7b1439cc Rewrite LiveRoomStatusesLiveData to not inherit from AsyncTaskLiveData and not cancel the running download task 2019-01-23 21:37:02 +01:00
Christophe Beyls
18e69e8860 Make RecyclerView INVISIBLE instead of GONE to prevent relayout causing blinking items 2019-01-22 00:35:54 +01:00
Christophe Beyls
133a247544 Don't perform identical searches twice in SearchResultActivity, and display the error message about query size using a Snackbar instead of a dialog 2019-01-18 00:53:07 +01:00
Christophe Beyls
e438eca1c3 Code cleanups and remove unused resources 2019-01-07 02:41:53 +01:00
Christophe Beyls
d9d656017e Update preferences library to alpha02 2019-01-06 00:44:57 +01:00
Christophe Beyls
9b6339737d Bump version number to 1.6.0 2019-01-06 00:42:27 +01:00
Christophe Beyls
cdf4cc46b6 Update used libraries in the README and about screen 2019-01-06 00:42:04 +01:00
Christophe Beyls
90087e1539 Properly handle '@' in URLs 2019-01-05 23:37:09 +01:00
Christophe Beyls
79cedff72f Update DatabaseManager.getYear() to ensure it's never called from the main thread and compute the year from the Event day whenever possible 2019-01-05 23:13:26 +01:00
Christophe Beyls
48318d1f4f Refactor TrackScheduleListFragment to use a RecyclerView instead of a ListView and removed remaining ListView-specific code 2019-01-02 11:11:49 +01:00
Christophe Beyls
6d569f27da Refactor PersonsListFragment to use a RecyclerView with fast scrolling instead of a ListView 2018-12-30 20:42:58 +01:00
Christophe Beyls
f8d97d0270 Update RecyclerViewFragment to stop using a custom RecyclerView and allow overriding the creation of the RecyclerView 2018-12-30 19:36:15 +01:00
Christophe Beyls
311a7c8e89 Remove warning about deleted method in ConcatAdapter 2018-12-30 03:44:46 +01:00
Christophe Beyls
166907578a Use Material style fast scroll thumb and track drawables on API<21 2018-12-29 22:02:56 +01:00
Christophe Beyls
e873f6d62a Use CollapsingToolbarLayout to implement the extended header in PersonInfoActivity 2018-12-17 22:02:40 +01:00
Christophe Beyls
961a6b0c8e Replace custom widgets with Material components for SnackBar, NavigationView, FAB and TabLayout 2018-12-16 19:47:20 +01:00
Christophe Beyls
a7a62ebd15 Use the newer ViewPropertyAnimator API to fade out the progress bar 2018-12-16 16:45:51 +01:00
Christophe Beyls
b09ad57411 Pass the parent view to the header view LayoutInflater in PersonInfoListFragment 2018-12-15 22:20:25 +01:00
Christophe Beyls
05c229a313 Update the settings screen to Preferences library 1.1.0 2018-12-15 14:33:06 +01:00
Christophe Beyls
e92766abaa Migrate to AndroidX and reorganize imports 2018-12-13 04:19:20 +01:00
Christophe Beyls
ca89d4b325 Fix deprecation warnings 2018-12-13 03:50:08 +01:00
Christophe Beyls
50307373b8 Moved ConcatAdapter out of the support library private package 2018-12-13 03:30:28 +01:00
Christophe Beyls
96e1a9302d Use static factory method to retrieve LoaderManager instances 2018-12-13 01:54:30 +01:00
Christophe Beyls
8bd33a04ec Upgrade to support libraries 28.0.0 2018-10-17 02:23:51 +02:00
Christophe Beyls
40ba5569ae Removed obsolete class SafeLoaderUtils 2018-09-26 23:16:44 +02:00
Christophe Beyls
d9b0301f04 Updated Gradle plugin to 3.2.0 2018-09-26 23:13:30 +02:00
Christophe Beyls
a9336e7384 Update PhotoView and Lifecycle extensions dependencies to their latest stable release 2018-07-24 17:08:12 +02:00
Christophe Beyls
5c82c7edae Update version code for next minor release 2018-07-24 17:00:48 +02:00
Christophe Beyls
f021b1cdea Added start/end layout attributes where missing instead of falling back to left/right 2018-07-24 16:57:46 +02:00
Christophe Beyls
d68432d252 Added room status ton event details ContentDescription in lists for visually impaired people 2018-07-24 16:29:08 +02:00
Christophe Beyls
1fdedba500 Added missing @NonNull annotations 2018-06-17 22:41:29 +02:00
Christophe Beyls
2ba84ae11c Use onSupportNavigateUp() for up navigation 2018-06-17 22:30:48 +02:00
Christophe Beyls
909e4d1aff Migrate the settings screen to the preferences support library.
Added some custom layouts to fix small display issues
2018-06-17 22:22:07 +02:00
Christophe Beyls
e0b93b8959 Renamed animator-v11 folder since the project now has minSDK > 11 2018-06-17 18:22:05 +02:00
Christophe Beyls
df3ec2e7a6 Updated AppCompat to 27.1.1 and removed Loader hacks which are no longer necessary 2018-06-17 18:11:37 +02:00
Christophe Beyls
65178e5b5a Implement a custom MovementMethod to properly support clickable spans with text selection. Fixes #38 2018-06-08 23:13:29 +02:00
Christophe Beyls
2f2f3e705d Fixed version code for next release 2018-01-31 01:17:39 +01:00
Christophe Beyls
e95fb8740e Merge branch 'master' into feature/room_status 2018-01-31 00:51:24 +01:00
Christophe Beyls
a0e5dbb14a Switch nav URLs to https 2018-01-31 00:05:05 +01:00
Christophe Beyls
f54a5ccd02 Added "Volunteer" link in main menu, fixes #29 2018-01-31 00:01:21 +01:00
Christophe Beyls
955c17feee Move the "About" dialog to the settings screen 2018-01-30 23:47:09 +01:00
Christophe Beyls
1f85faa66b Updated room status url for production and adjusted timings 2018-01-30 18:34:44 +01:00
Christophe Beyls
9f367e65a0 Fix: properly schedule the room status strategy update when the days list changes 2018-01-30 16:56:38 +01:00
Christophe Beyls
a1ba1d2c5e Added notes for implementors on how to disable room status support 2018-01-30 16:49:28 +01:00
Christophe Beyls
ab338dad67 Display room status in event lists, event details screen & room dialog title 2018-01-30 16:32:39 +01:00
Christophe Beyls
21a89885d0 Properly handle the case when the system clock is turned backwards in TrackScheduleListFragment 2018-01-30 15:58:27 +01:00
Christophe Beyls
439fcf973f Removed unnecessary toolbar titleTextAppearance attribute 2018-01-29 23:35:45 +01:00
Christophe Beyls
aacb75954d Use DatabaseUtils where applicable to simplify code 2018-01-29 18:16:10 +01:00
Christophe Beyls
892e6ccf7a Update the version code for the next release 2018-01-29 17:50:00 +01:00
Christophe Beyls
655057f93e Implemented complex refresh logic for Room Statuses 2018-01-28 22:24:26 +01:00
Christophe Beyls
2561ebdf44 Merge branch 'master' into feature/room_status
# Conflicts:
#	app/src/main/java/be/digitalia/fosdem/api/FosdemApi.java
2018-01-27 21:50:52 +01:00
Christophe Beyls
56b69585ad Use LiveData instead of local broadcasts to update the ProgressBar in MainActivity.
This simplifies code and allows the progress bar to always reflect the current status.
2018-01-27 02:13:05 +01:00
Christophe Beyls
74e0c1270c Fix: disable the up navigation button while the event is loading 2018-01-27 00:41:02 +01:00
Christophe Beyls
d7ddcc4ad7 Migrate all non-Cursor Loaders code to LiveData & ViewModel 2018-01-27 00:00:05 +01:00
Christophe Beyls
9b39c73615 Removed unnecessary use of ViewConfigurationCompat 2018-01-22 15:01:34 +01:00
Christophe Beyls
10c06ac6dc Merge branch 'master' into feature/room_status 2018-01-18 15:47:12 +01:00
Christophe Beyls
ed3f4daf86 Removed dependency to Context in HttpUtils 2018-01-18 15:10:03 +01:00
Christophe Beyls
d859676d62 Added the Room Status API 2018-01-17 21:10:36 +01:00
Edward Betts
0f5eba3593
Correct a spelling mistake. 2018-01-13 14:01:57 +00:00
Christophe Beyls
40d2485c0d Use the new "implementation" qualifier for dependencies 2018-01-12 00:09:23 +01:00
Christophe Beyls
96b48a5d68 Added adaptive launcher icon and shortcut icons 2018-01-11 00:16:01 +01:00
Christophe Beyls
1304bc147d Disable unnecessary permissions on recent Android versions 2018-01-09 22:18:20 +01:00
Christophe Beyls
3f989d6c34 Bump minSdkVersion to 15 which is the minimum one required by the Custom tabs library 2018-01-09 22:11:21 +01:00
Christophe Beyls
dccbb8e74b Optimized the FOSDEM title VectorDrawable 2018-01-09 15:49:05 +01:00
Christophe Beyls
f48d275909 Added support for JobScheduler and notification channels in Android O 2018-01-09 15:44:36 +01:00
Christophe Beyls
b16bf335b7 Updated code to the latest support library and build tools.
MinSDK is now 14; removed legacy code
2018-01-03 17:04:01 +01:00
Christophe Beyls
5f3f09f0b3 Use LocalBroadcastCursor to listen for DB changes instead of ContentResolver with fake Uris 2017-10-07 23:55:32 +02:00
Christophe Beyls
66bb625955 Drop support for API 7-8 devices.
It's been a good time!
2017-05-21 19:55:32 +02:00
Christophe Beyls
92c98f0929 Prepare for minor release 1.4.6 2017-05-06 19:09:14 +02:00
Christophe Beyls
1519401b54 Added basic Chrome custom tabs integration to open browser links with a more integrated look when available 2017-05-06 19:07:48 +02:00
Christophe Beyls
033ce7ebcf Replaced "world" icon with "info" icon for the button to open person info in the browser 2017-05-06 19:04:12 +02:00
Christophe Beyls
eb4c5f9ab1 Updated build tools 2017-05-06 17:49:58 +02:00
Christophe Beyls
f4336aa3ff Updated version code for release 1.4.5 2017-04-17 16:40:10 +02:00
Christophe Beyls
d03f18d5d7 Improved HTTP buffering 2017-02-20 16:54:56 +01:00
Christophe Beyls
d8e56147d2 - Disable the AlarmReceiver on boot when not necessary to speed up the boot process
- Properly cancel alarms rescheduled in the past after a DB update.
2017-02-10 16:52:34 +01:00
Christophe Beyls
4faf70f1f6 Don't use PendingIntent.FLAG_CANCEL_CURRENT so alarms can be properly canceled 2017-02-08 20:43:35 +01:00
Christophe Beyls
4a63b8e186 Retrieve application id from BuildConfig for Intent action names & database Uris 2017-02-06 19:03:05 +01:00
Christophe Beyls
3213a42c47 Update version for release 1.4.4 2017-01-31 15:29:05 +01:00
Christophe Beyls
dee70b5258 Updated all room images
More complete, more detailed, smaller footprint
2017-01-31 15:26:20 +01:00
Christophe Beyls
38f15a8466 Added button linking to the local navigation website on the room image dialog 2017-01-29 21:37:32 +01:00
Christophe Beyls
b06684a9c5 Improved StringUtils.toSlug()
- remove dots
- replace ß with ss
2017-01-29 21:25:58 +01:00
Christophe Beyls
4aa734ca3b Prevent the app from crashing when trying to launch an invalid link or when no browser is installed. 2017-01-25 16:06:14 +01:00
Christophe Beyls
63f3f28bfa Update version for hotfix release 1.4.3 2017-01-24 01:16:21 +01:00
Christophe Beyls
702e3b7583 Added on-site navigation button in maps screen 2017-01-24 01:14:23 +01:00
Christophe Beyls
2e90602ba8 Don't remove underscores when transforming speaker names to URL slugs 2017-01-23 03:15:17 +01:00
Christophe Beyls
3477fda521 Fixed notification crash on Jellybean & KitKat
(vector drawables not supported for notification action buttons)
2017-01-23 02:52:15 +01:00
Christophe Beyls
e86a5622b6 Implement approximate state restoration for PhotoView; fixes #20 2017-01-22 21:11:07 +01:00
Christophe Beyls
b2e50f8e4d Add id to scrollview to allow restoring the scroll position; fixes #17 2017-01-21 00:04:55 +01:00
Christophe Beyls
e9ed181e61 Prepare for release 1.4.2 2017-01-12 17:45:33 +01:00
Christophe Beyls
7ec0599fd9 Added colors to distinguish track types 2017-01-12 17:32:15 +01:00
Christophe Beyls
1e748874d9 Removed underline for persons and room links and unify their appearance.
Disabled instance state save for TextViews showing heavy text or custom spans.
2017-01-09 12:25:46 +01:00
Christophe Beyls
bedab2071c Improved bookmark add/remove vector animation and make it compatible with any background color 2017-01-08 23:13:36 +01:00
Christophe Beyls
01e1c25f36 Added bookmarks export to iCalendar file, closes #5 2017-01-06 21:13:05 +01:00
Christophe Beyls
9e4efd69e2 Ensure links have a minimum height of 48dp 2017-01-06 03:26:55 +01:00