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

274 commits

Author SHA1 Message Date
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
Christophe Beyls
640c304735 Use ${applicationId} placeholder in manifest where applicable for easier maintenance in forks 2017-01-06 00:09:54 +01:00
Christophe Beyls
67e5ea57af Fixed Event.getDuration() to return minutes and not seconds 2017-01-05 23:51:27 +01:00
Christophe Beyls
c8a1fdef78 Fixed some Lint warnings 2017-01-05 22:34:53 +01:00
Christophe Beyls
e0440a0ead Moved shortcuts to xml-v22 to avoid duplicating it in the final apk file 2017-01-05 22:12:01 +01:00
Christophe Beyls
6d378165e2 - Fixed bug with empty adapters in ConcatAdapter
- Cache the total item count in ConcatAdapter and skip sending specific notify* updates after notifyDataSetChanged() has been called.
2016-12-29 18:44:41 +01:00
Christophe Beyls
fb4bd3dbb3 Use wrap_content instead of ?attr/actionBarSize for Toolbar height. 2016-12-29 17:17:42 +01:00
Christophe Beyls
1348da72d4 NextLiveListFragment and NowLiveListFragment now share the same RecycledViewPool 2016-12-16 02:00:54 +01:00
Christophe Beyls
6246671c38 No more reflection hacks: replaced PreferenceFragment with AppCompatPreferenceActivity 2016-12-13 15:23:39 +01:00
Christophe Beyls
19c6fa9d97 Updated build tools 2016-12-13 14:13:30 +01:00
Christophe Beyls
f95a9ba50b Prepare release 1.4.0 2016-12-13 00:45:49 +01:00
Christophe Beyls
56f3843d9f Improved preferences screen display to make it look more live the native one 2016-12-13 00:38:49 +01:00
Christophe Beyls
1c7f29d17c Improved code to handle HTML lists 2016-12-12 22:41:26 +01:00
Christophe Beyls
d24a9dd5a9 Fixed dips to pixels rounding 2016-12-12 18:26:58 +01:00
Christophe Beyls
7e90352750 Added "bookmarks" and "live" app shortcuts for Android 7.1+ 2016-12-11 14:18:09 +01:00
Christophe Beyls
84829c3345 Extract identical vector paths to values/vector_paths.xml 2016-12-11 03:03:49 +01:00
Christophe Beyls
6c6bc28ad1 Added bookmark icon (un)check animation 2016-12-10 19:56:18 +01:00
Christophe Beyls
9ff63fb011 Added multi-level lists support to HTML parser; fixes #14 2016-12-01 22:47:01 +01:00
Christophe Beyls
9fd6c6c374 Migrated most ListViews to RecyclerViews
- Use ConcatAdapter to replace header View in PersonInfoListFragment
- Use MultiChoiceHelper to implement MultiChoiceMode in RecyclerView
- Instances of TracksListFragment share a common RecycledViewPool to lower memory usage.
2016-12-01 16:42:14 +01:00
Christophe Beyls
71b030c994 Replaced manual divider inflation with LinearLayoutCompat's divider support in links list 2016-12-01 03:45:11 +01:00
Christophe Beyls
9496513e7e Added intent-filter to enable link to notification settings when long-pressing a notification in API 21+ 2016-11-27 04:34:42 +01:00
Christophe Beyls
e38db9ae58 Updated notifications delay text in preferences screen; show a checkbox to enable notifications on API 21+ 2016-11-21 21:08:39 +01:00
Christophe Beyls
295a70d441 Improved accessibility throughout the app 2016-11-21 21:07:35 +01:00
Christophe Beyls
2ba817a56d Fixed ActionBarDrawerToggle drawer opening behavior and replaced deprecated DrawerLayout.setDrawerListener() with DrawerLayout.addDrawerListener() 2016-11-20 12:10:01 +01:00
Christophe Beyls
12531785f7 Replaced ProgressBars with ContentLoadingProgressBars and re-implemented ListFragment 2016-11-20 11:51:18 +01:00
Christophe Beyls
098403d7e6 Added hack to ensure the sync icon animation will always play properly 2016-11-20 11:02:13 +01:00
Christophe Beyls
dea08a0c94 Downgraded support library down to 23.4.0 because versions 24.0.0 to 25.0.0 leak the Activity through the LoaderManager 2016-11-05 01:41:38 +01:00
Christophe Beyls
bf2d4a05c1 Improved ic_filter_list_selected_white vector drawable 2016-11-03 03:55:09 +01:00
Christophe Beyls
67a6895aca Moved property animation resources to the animator folder 2016-11-03 03:09:38 +01:00
Christophe Beyls
91f1034e10 Optimized the FOSDEM logo vector drawable 2016-11-01 01:45:12 +01:00
Christophe Beyls
df6627ad6a Use AsyncTaskCompat to execute download tasks in parallel 2016-10-31 01:05:56 +01:00
Christophe Beyls
ee94d840f2 Removed workaround for fixed AppCompat bug (links improperly colored) 2016-10-26 16:24:51 +02:00
Christophe Beyls
591851eb50 Added a vector drawable rotation animation when pressing the refresh button 2016-10-26 15:48:18 +02:00
Christophe Beyls
a5f406026c Migrated to AppCompat 24.1.1 and converted most icon resources to vector drawables 2016-10-26 15:44:02 +02:00
Christophe Beyls
31a13a02c2 Fixed rare case when trying to unregister a null observer 2016-10-26 14:52:06 +02:00
Christophe Beyls
49dbe375b7 Use strict shrinkMode with the proper rules to improve resources shrinking 2016-10-26 13:24:02 +02:00
Christophe Beyls
cef24a6282 Deleted unused image 2016-10-26 13:12:10 +02:00
Christophe Beyls
770ace3542 Publish minor update version 1.3.8 2016-10-23 00:45:19 +02:00
Christophe Beyls
3c3412cd84 Inverted the actions of onCreateActionMode() and onPrepareActionMode() to ensure display is properly updated when the adapter dataset changes. 2016-08-29 00:09:36 +02:00
Christophe Beyls
9ebce6034f Turn some private fields to package-local fields to avoid unnecessary indirections through synthetic methods generated for inner classes. 2016-08-27 21:29:05 +02:00
Christophe Beyls
fc82441c9a Use SharedPreferencesCompat.EditorCompat to use apply() when available for better performance. 2016-08-06 01:27:03 +02:00
Christophe Beyls
10bd2a7108 Moved SlidingTabLayout to the main widgets package; merged some of its files 2016-05-31 21:31:20 +02:00
Christophe Beyls
9faca330bf Fixed memory leak in ListFragment's adapter in older Android versions 2016-05-30 23:25:54 +02:00
Christophe Beyls
cb054007da Updated the code to allow fragments in ViewPager to start as soon as they are visible 2016-05-30 23:09:50 +02:00
Christophe Beyls
97156d6061 - Improved SlidingTabLayout to properly handle adapter change and refresh automatically on dataset changed.
- Fixed memory leak caused by keeping the PagerAdapter around after the view hierarchy has been destroyed.
2016-05-30 22:11:45 +02:00
Christophe Beyls
ff140b060c Optimized iteration performance in SlidingTabLayout 2016-05-29 13:25:19 +02:00
Christophe Beyls
e4dfbc67c1 Improved SlidingTabLayout for simpler code and better respect of material design guidelines 2016-05-28 23:14:35 +02:00
Christophe Beyls
e33961eade Moved default values of UnderlinePagerIndicator to a style and removed deprecated methods 2016-05-28 12:58:26 +02:00
Christophe Beyls
e42c30ca90 Disable PNG cruncher since our original PNG files are already smaller 2016-05-24 23:43:19 +02:00
Christophe Beyls
7b1f15a95e Use "resConfigs" to strip unsupported languages + use shrinkResources for smaller apk 2016-05-20 00:16:35 +02:00
Christophe Beyls
7f037faf18 Disable automatic backup 2016-05-16 18:54:42 +02:00
Christophe Beyls
782f45034c Fixed misc lint warnings and replaced deprecated methods 2016-05-07 19:18:09 +02:00
Christophe Beyls
e1ac84d605 Removed HTTPS security hacks where no longer necessary 2016-05-07 17:44:43 +02:00
Christophe Beyls
657be5c2ad Migrate to the latest build tools 2016-05-07 16:51:16 +02:00
Christophe Beyls
756428263d Simplified Parcelable implementation 2016-03-11 01:02:17 +01:00
Christophe Beyls
1e7b3f22e9 Updating version code for next release 2016-01-25 23:53:00 +01:00
Christophe Beyls
ead14cb597 New room map images from the iPhone app. 2016-01-25 23:50:14 +01:00
Christophe Beyls
ae1736a218 Removed place name from directions URL to fix compatibility with OSMAnd.
Fixes #12
2016-01-25 23:02:57 +01:00
Christophe Beyls
71adb08875 Workaround for AppCompat bug incorrectly coloring links on API 21-22 2016-01-06 22:37:05 +01:00
Christophe Beyls
c6fc052584 Updated app version number to 1.3.5 2016-01-06 21:28:33 +01:00
Christophe Beyls
3320f96cd2 Replaced deprecated Resources.getColor() with ContextCompat.getColor() 2016-01-06 21:14:35 +01:00
Christophe Beyls
b6a3f7e1af Highlight date-time in bookmarks list for conflicting schedules
Fixes #4
2016-01-06 21:07:55 +01:00
Christophe Beyls
61f407a6d2 Deleted commented line 2016-01-06 20:36:41 +01:00
Christophe Beyls
b70cd4d0bd Re-indented SQL queries in DatabaseManager
for better readability
2016-01-05 22:17:23 +01:00
Christophe Beyls
1d410fb2b8 Added RTL support 2016-01-04 00:03:19 +01:00
Christophe Beyls
fd8a806236 Enhanced list item layouts and make them RTL-compatible. 2016-01-03 23:16:19 +01:00
Christophe Beyls
d6f1de2aae Ensure the bookmarks ActionMode is closed when the fragment is destroyed. 2016-01-02 22:31:50 +01:00
Christophe Beyls
ca71cc6bd9 Delayed drawer menu actions until the menu is closed. 2016-01-02 21:55:33 +01:00
Christophe Beyls
fe3031fc4c Backwards-compatible material simple_list_item_1 layout 2016-01-02 01:28:44 +01:00
Christophe Beyls
435d1aa078 Replaced FOSDEM title image with a vector drawable 2016-01-02 00:38:21 +01:00
Christophe Beyls
c88e2b144b Various display fixes 2016-01-02 00:29:25 +01:00
Christophe Beyls
3100bce74c Dynamic toolbar elevation in MainActivity
depending on the current section.
2016-01-01 22:45:47 +01:00
Christophe Beyls
040d8a070a New app icon, more material-ish 2016-01-01 22:27:57 +01:00
Christophe Beyls
719e387d91 Added a fix for crashes while zooming in PhotoView inside a DrawerLayout. 2016-01-01 21:43:57 +01:00
Christophe Beyls
06b2c82242 Fixed "DB last updated" date format 2016-01-01 21:18:20 +01:00
Christophe Beyls
14f38d5e6e Updated Navigation Drawer in MainActivity to comply with latest material design guidelines. 2016-01-01 21:16:18 +01:00
Christophe Beyls
24b6364a96 Fixed time formatting to properly use the device's current Locale. 2015-12-27 19:30:43 +01:00
Christophe Beyls
ae7ef84396 Implemented backport version of simple_list_item_2 for Material Design
and removed custom secondary text color on older Android versions
2015-12-27 19:07:44 +01:00
Christophe Beyls
9ffa61f70b Migrate to AppCompat 23.1.1
Removed legacy hacks
Material dialogs on older versions
2015-12-27 01:28:59 +01:00
Christophe Beyls
63bd76f5ed Improved ListView styling by using built-in attribute listChoiceBackgroundIndicator 2015-12-26 17:45:30 +01:00
Christophe Beyls
f31af2f492 Moved all build config values to build.gradle 2015-12-25 16:52:12 +01:00
Christophe Beyls
d5b0b833dd Regression fix: main menu background not properly applied to the entire menu zone. 2015-12-25 16:39:28 +01:00
Christophe Beyls
54f6a6945e Set alarms at the exact time instead of having them batched and delayed on Kitkat and above. 2015-12-25 16:21:08 +01:00
Christophe Beyls
29d923a1cd Updated Floating Action Button style to the official guidelines. 2015-06-26 17:32:03 +02:00
Christophe Beyls
b6cc5513db Replaced the ListView main menu with a ScrollView and an AdapterLinearLayout.
It makes the layout simpler and fixes focus issues in keypad navigation mode.
2015-06-24 16:43:22 +02:00
Christophe Beyls
0c2ddc73e0 Moved launcher icon to mipmap resource folders for better scaling on modern devices. 2015-06-08 18:11:01 +02:00
Christophe Beyls
56fea42162 Workaround to support "If-Modified-Since" conditional HTTP requests on web servers supporting GZIP compression, also enabling GZIP compression support on Android 2.1 and 2.2. 2015-05-30 23:51:29 +02:00
Christophe Beyls
b1d823d245 Misc. small cleanups 2015-04-02 02:29:59 +02:00
Christophe Beyls
90d73831c6 Added Http cache awareness
to skip updating the database when the remote file has not changed.
2015-02-05 23:49:31 +01:00
Christophe Beyls
6f48640a13 Removed restriction to only use Google Maps for directions if installed, allowing to use third-party apps or a browser. 2015-02-05 00:32:43 +01:00
Christophe Beyls
74f1a7e2b3 Added warning message instead of crash when no compatible calendar app is found. 2015-02-04 23:37:51 +01:00
Christophe Beyls
7f8a8aa5cb Improve readability of up navigation code in EventDetailsActivity and add missing flags in the Manifest file for it. 2015-02-04 23:30:13 +01:00
Christophe Beyls
45b162246c Updated campus map to 2015 edition. 2015-02-04 00:32:44 +01:00
Christophe Beyls
1a8e48b46a Update manifest file for next hotfix release. 2015-01-19 23:41:44 +01:00
Christophe Beyls
cef5f95ad1 Move "Settings" and "About" from options menu to main menu footer. 2015-01-19 23:40:55 +01:00
Christophe Beyls
b25326e845 Tweak track_schedule layout in tablet landscape mode to increase card elevation and compensate for the compatibility padding. 2015-01-19 22:57:38 +01:00
Christophe Beyls
89bdf37ee0 Use slightly darker separator line color 2015-01-19 21:00:03 +01:00
Christophe Beyls
27ed59732d Reduced the right margin of dual pane tablet layout to 96dp. 2015-01-19 19:52:37 +01:00
Christophe Beyls
87421b90dd Disable compatibility Floating Action Button selector transition animation to avoid background crossfading issue. 2015-01-19 19:37:26 +01:00
Christophe Beyls
fbf3dfbb30 Added Floating Action Button in dual-pane layout of TrackScheduleActivity 2015-01-19 00:20:24 +01:00
Christophe Beyls
3a66da1ce1 Merge branch 'master' into material 2015-01-18 23:50:51 +01:00
Christophe Beyls
828b43677e Fix: Remove the EventDetailsFragment from the FragmentManager after switching from dual pane to single pane mode to prevent its ActionBar icons from showing up. 2015-01-18 23:50:16 +01:00
Christophe Beyls
3b89b76d7f New dual-pane tablet layout featuring extended height Toolbar and CardView. 2015-01-18 16:06:27 +01:00
Christophe Beyls
b8b8af6304 Fix: properly clear the links container view with the new layout in EventDetailsFragment. 2015-01-18 15:58:57 +01:00
Christophe Beyls
03f3fdb76a Merge branch 'master' into material 2015-01-18 13:42:18 +01:00
Christophe Beyls
7d1e5df598 Added support for direct search from Google Now 2015-01-18 13:41:30 +01:00
Christophe Beyls
d73c5c16cd New styles for headers and metadata in event details. 2015-01-15 00:09:32 +01:00
Christophe Beyls
264012b8e9 Removed unnecessary titles and use the same titles for TrackScheduleActivity and TrackScheduleEventActivity 2015-01-14 00:31:24 +01:00