Commit Graph

1285 Commits

Author SHA1 Message Date
Daniele Gobbetti dc3ed1659c use parcelable for passing alarms around 2015-06-30 06:40:46 +02:00
Daniele Gobbetti 764dd70e45 low hanging fruits:
- add break after case
- center vertically the smart wakeup checkbox
2015-06-30 06:40:46 +02:00
Daniele Gobbetti 1caca1439a Initial implementation of setting alarms to the Mi Band.
The code basically works, but there a lot of things to fix / improve.
* The alarms are stored to and read from the Shared Preferences, but there is no persistence within the app (basically they are read and stored at every access)
* The alarm list is not updated when coming back from the alarm detail view (probably related to the point above), but the actual alarm is
* The alarms preference names is sometimes built by concatenating strings, which is not really safe
* There is no check in the alarm constructor whether the stored string is a valid alarm representation
* Even though only 3 alarms can be stored on the device, we could have more in the app and let the user choose which to sync
* In the alarm detail view XML some material* drawables are used, it's possible that these break on android version < 5
* ...
2015-06-30 06:40:14 +02:00
cpfeiffer ef2bbf13c7 Close stream on error and log exception 2015-06-29 22:38:37 +02:00
Andreas Shimokawa bf29814294 Bump version to 0.4.2, update CHANGELOG.md 2015-06-27 20:02:46 +02:00
cpfeiffer 5cde8181c9 Updated translations from transifex 2015-06-27 18:44:26 +02:00
Andreas Shimokawa 27e611c583 add share action to screenshots in notification
Now you can brag with your pebble watchfaces and send them straight to Conversations.
2015-06-27 18:09:49 +02:00
Andreas Shimokawa c16510003c Open image viewer when tapping on screenshot 2015-06-27 00:21:30 +02:00
Andreas Shimokawa 44636748e7 Show screenshot in notification in successful 2015-06-26 23:17:31 +02:00
Andreas Shimokawa 388e72d029 use our accent color for Material Design 2015-06-26 00:18:44 +02:00
Andreas Shimokawa 51595aad7a Use Material Theme on Lollipop 2015-06-26 00:12:17 +02:00
Andreas Shimokawa a73d8b7f0a Pebble: save screenshots as 1bit Windows 3.x BMP
TODO:
- user feedback
- support Pebble Time
2015-06-25 23:34:50 +02:00
Andreas Shimokawa d0178686d8 Pebble: support for taking screenshots (do not get displayed/written anywhere yet) 2015-06-24 23:55:51 +02:00
Andreas Shimokawa 07d59322bd Pebble: Preparations for taking screenshots
This commit also includes some cleanups and removal of unused code/strings
2015-06-24 00:23:38 +02:00
cpfeiffer 4b241ca9eb Initial work on supporting multiple charts.
- one fragment per chart screen
- common chart code should move to fragment baseclass and the host
  Activity (ChartsActivity)

Currently it's not used, change ControlCenter to invoke ChartsActivity
instead of SleepChartActivity to test it.

WIP for #79
2015-06-23 23:03:05 +02:00
Andreas Shimokawa 5ae812c854 add GBDeviceProtocol again 2015-06-23 14:20:13 +02:00
Andreas Shimokawa 73da7fff0a Refactoring: rename GBDeviceCommand to GBDeviceEvent 2015-06-23 11:54:33 +02:00
Andreas Shimokawa c2582e1e1f Not not display useless menu items when device is not connected
Also remove "fetch activity data" from pebble context menu, which currently does nothing

Closes #75
2015-06-22 22:16:19 +02:00
Andreas Shimokawa 1bd32b713a Pebble: implement encodeFindDevice() by simulating a call 2015-06-21 23:53:23 +02:00
cpfeiffer 39db968e34 Forgot to rename that method, too (#42) 2015-06-21 20:59:36 +02:00
cpfeiffer 23d91ac79e Support for finding a lost device (closes #42) 2015-06-21 19:46:02 +02:00
cpfeiffer c7b4f295a1 Support for vibration profiles, configurable for notifications
Configurable for sms, k9, incoming calls, pebble messages, generic
notifications.

Color is unfortunately not configurable so far, see #37

Closes #29

Currently provided profiles are
- staccato
- short
- medium
- long
- waterdrop
- ring
- alarm clock
2015-06-21 19:46:01 +02:00
cpfeiffer f105bbbde3 Avoid crash when getExternelDir() returns null (huh!) 2015-06-21 19:44:56 +02:00
cpfeiffer 1fb20926b3 Fix previous commit, disable LimitLines for this release 2015-06-21 19:43:45 +02:00
Andreas Shimokawa b1973994f0 Sleep Monitor: Disable anotations for now (produces unreadable output on some devices) 2015-06-21 16:39:03 +02:00
Andreas Shimokawa da3bff0fd4 fix German translation, fucked up by tx pull 2015-06-20 21:11:33 +02:00
cpfeiffer e6086d6f79 updated translations from transifex 2015-06-20 20:55:21 +02:00
Andreas Shimokawa 2458e55865 Pebble: add encodeSimpleMessage() for encoding 1 byte messages to endpoints 2015-06-19 23:54:31 +02:00
Andreas Shimokawa a8e2646fd9 update CHANGELOG.md 2015-06-19 13:22:41 +02:00
Andreas Shimokawa 7e1700250f Pebble: add dev option to force latest notification protocol usage
When enabled it forces to use 3.x notifications on FW 3.x (2.x notifcations on FW 2.x)
When disabled 2.x notification on FW 2.x and 1.x notifications on FW 2.x are used (which is recommended)

This allows Pebble Time users to do further tests.
2015-06-19 12:34:33 +02:00
cpfeiffer e562fa9870 Light sleep and deep sleep was mixed up. Corrected graphs again. #45
Use dashed limit lines, still not perfect.
2015-06-19 01:14:58 +02:00
cpfeiffer f9e5ab5fc1 Some more refinements to sleep display (#45):
- display the recorded level of deep sleep rather than a constant
  (I hope this works for morpheuz, too!?)
- give light sleep a minimum value, because it's sometimes 0 for Mi Band
2015-06-19 00:20:38 +02:00
cpfeiffer 03fa05756e As a test, draw limit lines for sleep/activity changes.
Unfortunately it looks like the labels for it don't get rendered ;-(
2015-06-18 23:41:54 +02:00
cpfeiffer 83079b0456 Stub for device notification changes 2015-06-18 23:07:22 +02:00
Daniele Gobbetti cb3be26349 Do something when we receive a CharacteristicChanged message
on the UUID_CHARACTERISTIC_BATTERY characteristic.

This is a first try at addressing #71

Please note that this will probably not work at this point, but it's
worth a try. To make it work probably we have to tell the device to
send updates, and we don't know how to do it.
2015-06-18 22:17:41 +02:00
Andreas Shimokawa ea43d76705 Bump version, update CHANGELOG.md and LICENSE.artwork
not yet ready for release
2015-06-18 21:51:06 +02:00
Andreas Shimokawa 1801a679c5 Pebble: fix FW 3.x detection 2015-06-18 18:39:32 +02:00
rober c1769fb4b4 revamp icons 2015-06-17 23:44:53 +02:00
cpfeiffer 8aa53fbb2c Explain logging functionality and move download link to top 2015-06-17 23:28:50 +02:00
Andreas Shimokawa bffd7f332f remove SleepChartActivityOld, as the new one is usable now ;) 2015-06-17 08:18:24 +02:00
cpfeiffer a5ae7acc63 Improved sleep chart #45
- use just one data set, because multiple data sets is not supported
  by MPAndroidChart (the way we need it)

Now there is hardly any space between the bars anymore

Also:
- allow scaling x and y axis independently via pinch gesture
- set fixed y max value (1.0) so that the display is stable and
  independent of the actual available data
- (at least temporarily) display y labels
2015-06-17 07:03:50 +02:00
cpfeiffer 8709b95a95 Use a single data set instead of one per activity kind
The reason is that multiple data sets will always be grouped.
If we add null values to fix the grouping issue, we will still have
space between the bars.
2015-06-17 07:03:50 +02:00
Andreas Shimokawa a07aed62ad Pebble: Experiment with 3.x compatible notifications
This will most probably not work, but please test if you can ;)
2015-06-16 23:15:51 +02:00
cpfeiffer 4908fe7a53 Fix typo 2015-06-15 20:33:32 +02:00
Andreas Shimokawa 90302c83ef update CHANGELOG.md 2015-06-13 21:42:38 +02:00
Andreas Shimokawa 70c021e92c SleepChartActivity: Make light sleep color brighter 2015-06-13 20:47:36 +02:00
Andreas Shimokawa 73187431b2 Use old Sleep Monitor Activity for Pebble/Morpheuz
The new one does not look good with Morpheuz data yet (samples every 10 minutes)
2015-06-13 20:37:53 +02:00
Andreas Shimokawa d2f7169de4 Really, I see no reason to look up a string for a preference key in an xml file
If we have to use a key to lookup the string for the key, we can just use that key as the preference key.
2015-06-13 01:12:08 +02:00
Andreas Shimokawa cfedf4acde Put log file option in a development option category, change order in Mi Band preference screen. 2015-06-13 00:58:23 +02:00
Andreas Shimokawa 3a6e8789c1 Update German translation
Also remove a string that was not supposed to be translated.
It is a preference key. Maybe it should not be in strings.xml but in its own file.
2015-06-13 00:54:43 +02:00