Commit Graph

171 Commits (2da50e27c25f2a4ec6e94c228c9b9f7686e6686f)

Author SHA1 Message Date
Andreas Shimokawa 4362f78028 Pebble: Do not display Health on original Pebbles 2016-03-08 11:49:08 +01:00
Andreas Shimokawa 88982a6174 Merge pull request #235 from Freeyourgadget/feature-configuration
Use external browser for configuring pebble apps
2016-03-08 10:41:46 +01:00
cpfeiffer a96120f91d Clear the chart when there are no samples
(e.g. when switching to another day for which no samples are
available, the chart now becomes empty instead of displaying the
samples from the last day with data.
2016-03-07 23:17:02 +01:00
cpfeiffer 25e58eb414 Upgrade mpandroidchart to 2.2.3 2016-03-07 22:46:03 +01:00
cpfeiffer 3b3458e196 Show the heart rate measurement tooltip a little longer 2016-03-04 23:08:13 +01:00
Daniele Gobbetti 6d4b98719a Implement some further JS methods to make additional watchapps happy 2016-03-04 17:44:42 +01:00
Andreas Shimokawa 1e44bb03fb Pebble: convert Boolean to String for app configuration 2016-03-03 16:02:30 +01:00
Andreas Shimokawa bd7b34985b reformat code and optimize imports 2016-03-03 15:47:00 +01:00
Andreas Shimokawa 864e0953d9 only allow starting AppManager after device is initalized (else platform cant be determined) 2016-03-03 14:29:46 +01:00
Andreas Shimokawa 902ff39c0b start app when about to be configured 2016-03-03 14:25:44 +01:00
Andreas Shimokawa 2a7f9226a0 Pebble: send configuration to watch
TODO: handle booleans
2016-03-03 14:23:17 +01:00
Andreas Shimokawa fa924ff9d8 Pebble: fix crash when navigating back from configuration activity 2016-03-03 13:05:51 +01:00
Andreas Shimokawa 860ded1022 refromat code 2016-03-03 11:54:07 +01:00
Andreas Shimokawa 63d938559e pass GBDevice down to ExternalPebbleJSActivity to determine the platform version (aplite,basalt,chalk) 2016-03-03 11:52:30 +01:00
Daniele Gobbetti 089a59168e Initial support for using an external browser for configuring pebble apps. This allows existing configuration pages to work without having internet access ourselves.
This is a better approach as initially thought in #191.

What is missing is outlined in the (several) TODOs.
2016-03-02 21:07:27 +01:00
Andreas Shimokawa 652c5575b3 user ckChangeLog to display the Changelog
There were other fancier libraries, but this one was so simple to integrate, that I could not resist ;)
2016-03-02 00:37:43 +01:00
Andreas Shimokawa 5eb525ee44 Merge pull request #239 from 0nse/sleepAlarmWidget
Add widget to quickly set an alarm according to the user's preferred sleep length (in hours)
2016-03-02 00:36:13 +01:00
cpfeiffer cbe73f71a1 Fix some typos (thanks!) #178 2016-02-29 22:08:34 +01:00
0nse 3babedf936 + Add Widget which allows quickly creating an alarm depending on the user's preferred sleep length (in hours). 2016-02-29 21:36:39 +01:00
Andreas Shimokawa ed85fd5011 convert byte and short values related to activity tracking to int
This avoids a lot of problems because java
- does not know unsigned values
- jvm and dalvic do not internally support byte and short
- sqlite does not know them either
2016-02-29 20:54:39 +01:00
cpfeiffer 3ff31cd73b Disable heartrate in charts fow now, fix notification for manual hr 2016-02-27 23:18:44 +01:00
cpfeiffer d6dfc3b6ec Fix some ClassCastExceptions in charts since switching to CombinedChart 2016-02-27 15:30:46 +01:00
cpfeiffer de6f898fef Some more fixes regarding heart rate measurement #178 2016-02-27 11:18:16 +01:00
Kasha 9e636d66f6 Initial heart rate support by KashaMalaga #178
(removed unrelated Android M fixes and squashed commits)
2016-02-27 00:05:06 +01:00
cpfeiffer 0ef738067d Some work in progress for heart rate graphs #178
Currently we get the heart rate when synchronizing activity data
(i.e. not live) and we write it to the activity database so that we
can show a nice graph. The value is currently always 0 though,
because we can't enable recording hr, yet.
2016-02-26 23:45:17 +01:00
Andreas Shimokawa 1a96bd31e5 Request permissions at runtime on Android 6. Closes #219
TODO: Tell the user why we request that and if he really needs it (if he does not have both a Mi Band and a Pebble she does not need all)
2016-02-21 15:29:18 +01:00
Andreas Shimokawa 70ae5a2a3a Pebble: Allow to select the preferred activity tracker via settings activity (Health, Misfit, Morpheuz) 2016-02-18 20:41:22 +01:00
danielegobbetti ba9e00d2e4 Add strings for activate and deactivate pebble Health 2016-02-06 21:23:21 +01:00
Daniele Gobbetti baf5eee72f Refactored the User Activity-tracking related preferences.
Created a new device-independent class ActivityUser to hold the data
Moved the constants from the miband constant class to the ActivityUser class
Removed the miband-specific in favor of common-prefixed preferences (with upgrade support for legacy values)
Changed the way the gender is stored to an integer value
Removed the hardcoded default values for user data in favor of static fields of the ActivityUser class
2016-02-02 17:33:24 +01:00
Daniele Gobbetti 94c8633bad Move the generic user info outside the miband preferences activity. They still have to be renamed. 2016-02-02 14:32:19 +01:00
Andreas Shimokawa 33cf76172b Pebble: add hack to enable and maybe disable Health from the App Manager activity 2016-01-27 23:02:09 +01:00
Andreas Shimokawa de4ffe8fb0 allow to setup a common suffix for canned replies (defaults to " (canned reply)") 2016-01-11 15:29:12 +01:00
Andreas Shimokawa 803e58743a add WearableExtender with reply action to debug notification
(This is for testing new features)
2016-01-09 15:33:18 +01:00
cpfeiffer 779d8ee930 Add a confirmation dialog when performing a db import #197 2016-01-06 00:24:39 +01:00
Andreas Shimokawa c425fd24ea sort blacklist by package name #195 2016-01-02 17:18:05 +01:00
Andreas Shimokawa d7f74851e2 Pebble: allow reinstallation of apps in pbw-cache from App Manager (long press menu)
See #93
Also bump version, update CHANGELOG.md
2016-01-02 12:24:23 +01:00
Daniele Gobbetti 26646af974 Put blocked apps at the beginning of the list, for easier removal. 2015-12-22 14:09:14 +01:00
Daniele Gobbetti 78cd11ad93 Hide the last N reserved alarm slots from the Alarm activity.
The original values remain stored in the preferences, they are just not available to the user anymore, further they are not sent to the device.
2015-12-17 17:02:00 +01:00
Andreas Shimokawa 7b12a3b50c forgot this 2015-12-17 00:30:55 +01:00
Andreas Shimokawa de5f30ae97 WIP: Work towards SMS replies / canned replies, round 3
- put random id/phone number pair into limited lookup list (last 16 sms messages) when sms arrives
- lookup the phone number when replying from the a device

THIS STILL DOES NOT DO ANYTHING USEFUL
2015-12-14 23:31:31 +01:00
Andreas Shimokawa 53fb63781e WIP: Work towards SMS replies / canned replies
- Implement the PebbleProtocol side (2.x and 3.x)
- Add Preferences for canned replies

This can be tested by enabling untested features in Pebble Settings
It lets you see and select the replies set up in "Canned Repies" on the Pebble
You will get a "NOT IMPLENTED" message on your Pebble.

THIS DOES NOT ACTUALLY DO ANYTHING USEFUL YET.
2015-12-13 12:03:57 +01:00
cpfeiffer f258e62633 Refactoring: centralize GBDevice creation
- created and provided by DeviceHelper
- passed from UI to service
- without UI, service uses DeviceHelper directly

=> Cleaner and less duplicated code
2015-12-13 00:43:07 +01:00
Andreas Shimokawa 7cf1e0e004 Add system app icon and make use of it (thanks xphnx!) 2015-12-12 11:59:52 +01:00
cpfeiffer 6d7428ad29 Require initialized state for some more actions 2015-12-09 00:03:39 +01:00
cpfeiffer e642971b4c Support for deleting/emptying the activity database 2015-12-08 23:42:58 +01:00
cpfeiffer 159c187e5e On Quit, remove all pending notifications
At least the notifications from #141 don't stay there forever, then.
2015-12-08 21:48:56 +01:00
Andreas Shimokawa 1c3e0b628b Pebble: store app details in pbw-cache and display them in app manager on firmware 3.x
Improves #93
2015-12-07 18:16:23 +01:00
cpfeiffer 579546c9f8 Display a toast when bonded 2015-12-07 01:13:47 +01:00
Andreas Shimokawa aca0149b45 use DeviceHelper in DeviceSupportFactory to determine supported device from bt addresses
This fixes a bug when Pebble was detected as Mi when unpaired.
Since we were not able to read the device name, it was considered MI by duplicated and
faulty code. Fixes #177.
2015-12-01 11:39:34 +01:00
cpfeiffer bd0716ba58 Some more lint warnings fixed 2015-11-23 23:04:46 +01:00