Commit Graph

1253 Commits

Author SHA1 Message Date
Daniele Gobbetti 42acb8915a Pass the integer keys to pebble, even if they are not within the known app keys. Requested in #251 2016-05-31 12:24:28 +02:00
Andreas Shimokawa 0231e83ea3 try to fix duplicate/missing surise/sunset pins 2016-05-31 00:07:24 +02:00
Andreas Shimokawa b71597800a Pebble: set device to reconnecting state when actively reconnecting
It makes it easier to watch connection attempts and the delay between them in control center.
2016-05-29 23:24:16 +02:00
Andreas Shimokawa f2cbee39f1 update changelog again
actually the last commit is responsible for the fix (even though it is not mentioned in the commit log)
2016-05-29 23:02:00 +02:00
Andreas Shimokawa 33da6c2925 Pebble: make sure that "waiting for reconnect" state is set when initial connect fails 2016-05-29 22:58:25 +02:00
Andreas Shimokawa 4533c80c95 make sure to only reconnect when device is in "waiting for reconnect state" 2016-05-29 21:44:43 +02:00
Andreas Shimokawa af14fb4f90 limit max charaters to longiute and latitude to 7 2016-05-29 21:40:56 +02:00
Andreas Shimokawa 2e8d96e995 add option to enable sunrise/sunset on the timeline
Also fix a small type Aquire -> Acquire
2016-05-29 21:29:27 +02:00
Andreas Shimokawa c9aad271da update translations from transifex (thanks!) 2016-05-29 20:53:25 +02:00
Andreas Shimokawa 2b88720f83 fix xml changelog and add missing entry 2016-05-29 20:50:05 +02:00
Andreas Shimokawa a13cd9d951 update changelog, bump version to 0.10.0
reasons for the bump are
- new permissing
- first contact with the timeline, although is is not very useful
2016-05-29 20:47:16 +02:00
Andreas Shimokawa 8970bbe044 display device address in info menu (IP:PORT / MAC) 2016-05-28 11:32:36 +02:00
cpfeiffer 2d49ce505a Set state to "Waiting for reconnect" for BTLE devices 2016-05-26 23:48:05 +02:00
cpfeiffer 50b7a02ef2 One more attempt at fixing dynamic logging reconfiguration
- moved out of GBApplication to class Logging
- the main thing is: when start()ing the FileAppender again, it *must*
- be configured to be non-lazy, otherwise it won't open the stream ever again.
2016-05-26 23:46:21 +02:00
cpfeiffer 6e33c7364a Remove some commented code 2016-05-26 22:21:58 +02:00
cpfeiffer c360eb3392 This should fix some connection problems #274
Some APIs have become synchronous, it seems, e.g.
connectGatt() -> onConnectionStateChanged() -> discoverServices() -> onServicesDiscovered()
appears to happen synchronously. So connectGatt() will not return before services are discovered!

So now we deal with this situation.
2016-05-26 19:03:38 +02:00
Andreas Shimokawa b0e0aec465 fix typo 2016-05-26 15:20:27 +02:00
Andreas Shimokawa 88f338b0b9 Reenable our discovery activity for Android 6
Now that we request location we are allowed to do a btle scan again
2016-05-26 14:58:36 +02:00
Andreas Shimokawa 7ef005f6a3 Allow getting the network location within pebble settings for sunrise/sunset calculation
It is also possible to set the location manually
On Android >=6 the required permission will be requested when pressing the button in settings.
2016-05-26 14:39:54 +02:00
Andreas Shimokawa fa6100fcec Merge branch 'master' into feature-sunrise 2016-05-26 13:11:03 +02:00
Andreas Shimokawa 31c15bb8b8 update changelog 2016-05-24 23:55:03 +02:00
andre bf66c25c7f MusicPlayBackReceiver set track, artist and album to the artist member of MusicSpec.
Now the assignment of artist, track and album is correct
2016-05-24 19:33:12 +02:00
Andreas Shimokawa 55a40f7b06 Sunset/sunrise: rotate ids and reuse the id from two days ago for tomorrow, this way we will have sunrise/sunset for 3 days while sending only sunrise/sunset per day 2016-05-24 14:46:22 +02:00
Andreas Shimokawa e3bee37b81 Change UUID prefix to 0x4767744272646700 2016-05-24 13:20:16 +02:00
Andreas Shimokawa cb1ec5dccb Make calendar event type byte instead of int
Now the UUID will be constructed like this:

High 64bit 0x4742474200 | type
Low 64bit id
2016-05-24 13:11:57 +02:00
Andreas Shimokawa c9c9b420dc Pebble: Send sunrise and sunset events to the pebble every day using AlarmManager 2016-05-24 11:19:57 +02:00
Andreas Shimokawa af3cfefec0 Merge branch 'master' into feature-sunrise 2016-05-23 23:52:39 +02:00
Andreas Shimokawa 30c37d3172 Pebble: only remove apps from app list when they got deleted from cache also 2016-05-23 23:46:54 +02:00
Andreas Shimokawa 884c4262cf update changelog, bump version
(also change one German string and remove two newlines :P)
2016-05-23 23:37:57 +02:00
Andreas Shimokawa 24c51deaf9 Pebble: also delete other files from cache when deleting .pbw 2016-05-23 23:15:07 +02:00
Andreas Shimokawa f697906572 update Japanese and German tranlation from transifex (thanks!) 2016-05-23 22:03:21 +02:00
Daniele Gobbetti bef59ae9c0 Parse new version of Pebble health datalog message with tag "84".
This message was previously treated as a further "Sleep" message type, with firmware version 3.12 further types were added that are clearly unrelated to sleep (possibly to high-intensity activities like running etc.), hence the related code is now moved to a separate class.

The only decoded records are still sleep-related.

Fixes #312
2016-05-23 21:13:12 +02:00
Andreas Shimokawa 437de7f660 fix duplicate entry in strings.xml 2016-05-22 23:38:51 +02:00
Andreas Shimokawa efe5e546fd Merge branch 'master' into feature-sunrise 2016-05-22 23:36:09 +02:00
Andreas Shimokawa 80cf9fa8fe Pebble: allow to delete apps from pbw cache
Also remove delete entries from all system apps' context menus (not only health)
2016-05-22 23:32:25 +02:00
Andreas Shimokawa 30883ab244 Pebble: In AppManager mark cached apps with (C), installed apps on FW 2.x with (D) and (CD) if both is the case
Also always add pebble health as a system app to the list on devices that have it (no need to enable untested features for that anymore)
2016-05-22 22:48:45 +02:00
Andreas Shimokawa 5a20d7ec81 Pebble: no longer clear list of cached apps as soon as the installed watchfaces is received from Firmware 2.x
This will result in duplicate entries (first the whole cache, then actually installed watchfaces)
It might already make watchface configuation working on 2.x even though it is dirty

I wish everybody would just update to 3.x *sigh*
2016-05-22 12:30:47 +02:00
Andreas Shimokawa ca714417ac Pebble: also copy pbw to cache on Firmware 2.x
Neccessary step towards watchface configuration on 2.x
2016-05-22 11:33:14 +02:00
Andreas Shimokawa 6370fdbebe Merge branch 'master' into feature-sunrise 2016-05-22 01:25:52 +02:00
Andreas Shimokawa 0d7986a5ab Pebble: rework incoming reconnection support
This is now completely generic and should work for other devices also

Fixes #296
2016-05-22 01:19:28 +02:00
cpfeiffer d5cca84780 Small fixlets 2016-05-20 22:04:30 +02:00
cpfeiffer 400ae2bc3b Fix lint warnings using @TargetApi 2016-05-20 21:49:25 +02:00
Carsten Pfeiffer f933eb8fcd Merge pull request #306 from normano64/do-not-disturb
Detects if Do Not Disturb is in use
2016-05-20 21:21:08 +02:00
Normano64 31eabe9605 Fixed things based on feedback 2016-05-19 23:58:13 +02:00
cpfeiffer 2e2030f67b Update translations from transifex, thanks! 2016-05-19 22:07:55 +02:00
Normano64 8a91628322 Detects if Do Not Disturb is in use.
Can handle sms and phone calls from priority senders when in Priority
only, but doesn't handle events and reminders.
2016-05-19 16:34:59 +02:00
Andreas Shimokawa 907ad8f27a correction regarding deletion of old pins 2016-05-16 23:48:18 +02:00
Andreas Shimokawa 4bd578ebea Pebble: send sunrise/sunset to watch for today and tomorrow, also delete previous timeline pins 2016-05-16 23:37:40 +02:00
Andreas Shimokawa 017f650b3f Pebble: send sunrine and sunset pins to timeline when setting time in debug menu
This is just a test and it will leak your timeline data, since we never delete it.
Also this adds some rough infrastructure for calendar events.
2016-05-16 17:30:11 +02:00
Andreas Shimokawa 8c88223f26 update changelog 2016-05-15 23:29:19 +02:00
Andreas Shimokawa d66f842e9b Mi Band: Make sure live activity gets stopped when using the back button 2016-05-15 22:24:37 +02:00
cpfeiffer 3a1f91b5a8 Default to low latency mode #287
Tested with Mi1A and Mi1S -- works fine and faster than without
low-latency mode.
2016-05-15 00:22:53 +02:00
cpfeiffer 5963843216 Experimental support for #274 (untested yet) 2016-05-15 00:15:31 +02:00
Andreas Shimokawa 5efe9a5eb8 update japanese and geraman translations form transifex (THANKS!)
I did not merge others because tx pull deletes stuff again
2016-05-14 12:23:01 +02:00
Andreas Shimokawa e2def7b467 update changelog, bump version 2016-05-14 12:15:48 +02:00
cpfeiffer 40837996f8 Fix logback initialization, closes #300 2016-05-08 21:39:23 +02:00
cpfeiffer 1a353239c4 Fix log content 2016-05-08 21:38:55 +02:00
Andreas Shimokawa 9b7f2c1e91 try to fix weiredness with pebble reconnects 2016-05-08 17:19:01 +02:00
Andreas Shimokawa 5b21895283 try to get BT alias name by reflection. Useful if you have a lot of Mi Bands 2016-05-07 21:46:20 +02:00
Andreas Shimokawa 65a95366f4 Mi Band: Allow setting low-latency FW update mode in Mi Band development settings 2016-05-04 13:24:32 +02:00
Andreas Shimokawa 045d5119ff Do not update summary for checkbox preference
Was causing summary to get overwritten by "true" or "false" when changing preferences
2016-05-04 13:07:11 +02:00
Andreas Shimokawa 619a17425f Mi Band: Display hint about starting Activity Activity instead of App Manager
TODO: Fix the string, I have no idea how to properly name the Activity Activity
2016-05-04 12:31:29 +02:00
cpfeiffer 6863fababe Update changelog and prepare for 0.9.6 2016-04-29 22:07:16 +02:00
cpfeiffer 10d7274aa1 Fix testcases (all this should be scrapped and redone with e.g. robolectric) 2016-04-29 21:58:08 +02:00
cpfeiffer 5e02724c4c Make automatic reconnect after connection loss configurable #293
Mi Band: automatically reconnect when the device is back in range

Also: #89
2016-04-28 23:17:13 +02:00
cpfeiffer eca5d40efe More javadoc 2016-04-26 00:02:35 +02:00
Andreas Shimokawa e1551226f6 Reject empty strings in Preferences for numeric inputs 2016-04-25 23:51:58 +02:00
cpfeiffer 47984dba0a javadoc 2016-04-25 23:45:27 +02:00
cpfeiffer e35ce978bd Remove now unused imports + fix one more SharedPreferences usage 2016-04-25 23:43:19 +02:00
cpfeiffer 0704915a88 Move parsing of preference strings to int values to Prefs 2016-04-25 23:39:03 +02:00
cpfeiffer 0c715a2669 Wrap access to SharedPreferences with "Prefs"
(to centralize quirk handling)
2016-04-25 23:18:55 +02:00
cpfeiffer b89eb14be7 allow two digits for number of call notifications (e.g. 60) 2016-04-25 00:13:09 +02:00
cpfeiffer 65bd1581bc Fix receivers, display measured heart rate as a toast again, fixes #292 2016-04-24 18:17:04 +02:00
Andreas Shimokawa 36a34bd17c fix remaining strings saying "App Mananger". Closes #290
(I fixed on transifex where possible, unfortunately some strings vanish there from time to time, I guess it is the case when the english string changes)
2016-04-24 11:37:18 +02:00
Andreas Shimokawa abe1c9070f update German and Korean from transifex, thanks! 2016-04-24 11:32:09 +02:00
Andreas Shimokawa 18fe09bb7c make add icon on FAB white 2016-04-23 23:31:19 +02:00
Andreas Shimokawa 3fefb57fdd Fix colors in alarm activity for dark theme 2016-04-23 23:24:56 +02:00
cpfeiffer d5639a0520 Updated translations from transifex (thanks!) 2016-04-21 23:32:49 +02:00
cpfeiffer c573f989d0 Prepare for 0.9.5 2016-04-21 23:13:06 +02:00
cpfeiffer 0427294227 Dynamically enable/disable logging #288 2016-04-18 00:20:40 +02:00
cpfeiffer 98d7237ec3 Display a different notification icon, when disconnected
Better icons welcome :-)
2016-04-15 22:57:13 +02:00
cpfeiffer e451e8155c Remember the map so that we can look up the name later, as well, closes #275 2016-04-14 23:55:40 +02:00
cpfeiffer a460049a1b Sort by label and blacklist status, hopefully fast enough #275 2016-04-14 23:23:06 +02:00
Andreas Shimokawa a9e7cdcaa7 use some colors from the theme for charts activity 2016-04-14 17:41:04 +02:00
Andreas Shimokawa a9b75a63b3 simply derive AbstractGBFragmentActivity from GBActivity instead of FragmentActivity
This fixes the Actionbar being invisible
2016-04-14 17:16:43 +02:00
Andreas Shimokawa 46086f0408 allow dark theme in charts activity.
The charts however are still the same
2016-04-14 17:04:49 +02:00
Andreas Shimokawa faa6a9d906 use android:summary="%s" for ListPreferences 2016-04-14 16:44:44 +02:00
Andreas Shimokawa f76a1ba16f allow to switch to dark theme im settings 2016-04-14 16:15:58 +02:00
Andreas Shimokawa 367aced03d also use theme in settings 2016-04-14 15:34:53 +02:00
Andreas Shimokawa 4bcebca744 Work towards dark theme, remove -v21 specific theme definition 2016-04-14 15:21:25 +02:00
Andreas Shimokawa a9b4ea8eda bump buildToolsVersion 2016-04-14 15:17:08 +02:00
Andreas Shimokawa 24cc3725d2 equalize size of connected and disconnected device icons 2016-04-14 11:07:44 +02:00
cpfeiffer b25a47c398 Immediately disable hr reading and activity tracking when leaving the tab #273 2016-04-13 23:36:14 +02:00
cpfeiffer e87a357bed Show separate curves when the time between two measurements is too long #273 2016-04-13 21:38:35 +02:00
cpfeiffer f52126ed36 Update dependencies 2016-04-13 21:21:25 +02:00
cpfeiffer ae5d9089d8 Slight improvement to hr charts #178 2016-04-13 21:21:10 +02:00
cpfeiffer 78bf516897 Disabling sleep measurement for continuous measurement is not necessary
Looks like they don't interfere, after all. #178
2016-04-12 23:25:12 +02:00
cpfeiffer f15a97d994 Initial live heartrate measurement in the live activity tab #178 2016-04-12 23:12:50 +02:00
Andreas Shimokawa 58d90c2a66 remove obsolete Holo theming 2016-04-12 13:04:28 +02:00
cpfeiffer 7ab31514dc Rework charts to completely fix crash in charts activity #277 2016-04-11 23:18:12 +02:00