Commit Graph

452 Commits (f755d9902340203460bc61f1c5f9d4006910fcfa)

Author SHA1 Message Date
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
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 4bcebca744 Work towards dark theme, remove -v21 specific theme definition 2016-04-14 15:21:25 +02:00
Andreas Shimokawa 24cc3725d2 equalize size of connected and disconnected device icons 2016-04-14 11:07:44 +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 290d695fec Add margin for the shadow of the FAB
Also make the hint color grey, like in the discovery activity
2016-04-10 21:36:32 +02:00
Lem Dulfo 39cba84ab1 Apply gray images on non-connected devices in the list. 2016-04-10 21:11:52 +02:00
Lem Dulfo e5726075a4 Rework device item layout 2016-04-10 21:11:52 +02:00
Lem Dulfo eba1ee6dc6 Device disabled icons 2016-04-10 21:11:52 +02:00
Lem Dulfo 70ed14243f Remove all getActionBar occurences, temporary fix for overlap 2016-04-10 21:11:52 +02:00
Lem Dulfo 83e6e6b85f Add background image for empty ControlCenter 2016-04-10 21:11:41 +02:00
Lem Dulfo 80a21f2ec2 Move Discovery functionality to FAB 2016-04-10 21:11:41 +02:00
Lem Dulfo 5a3004cbce AppCompat and FAB, more Material Design 2016-04-10 21:11:41 +02:00
cpfeiffer 57ecba16f3 Update Changelog for 0.9.4 2016-04-09 10:05:27 +02:00
Andreas Shimokawa 6895c5b776 fix xml changelog 2016-04-06 23:29:59 +02:00
Andreas Shimokawa c7b64b6da7 update Japanese translation from transifex (thanks!) 2016-04-06 23:03:56 +02:00
danielegobbetti d2af3468f0 Add support for new datalog message added in pebble firmware 3.11
This adds support for storing deep sleep data.
2016-04-06 21:48:16 +02:00
cpfeiffer 403f74e59b Enable heart rate charts #232
(And fix some charting issues)
2016-04-04 23:05:20 +02:00
cpfeiffer b54fe53cd5 Merge branch 'heartrate-sleep-support' of https://github.com/computerlyrik/Gadgetbridge into computerlyrik-heartrate-sleep-support 2016-04-03 21:02:45 +02:00
cpfeiffer a4919789ca Add some progress to firmware updating #271 #234
Also: remove the low latency mode for firmware update,
because my Mi1S simply disconnects then.

Still missing in the view: device disconnects
2016-04-03 00:50:45 +02:00
Christian Fischer 20aa7d9ad9 add preference to set hartrate sleep detection 2016-04-02 16:09:30 +02:00
cpfeiffer 776a743285 Move svg file to another place to fix build 2016-03-30 22:06:03 +02:00
cpfeiffer 5f72daa43a Add SVG launcher icon, closes #190 THANKS! 2016-03-29 22:59:22 +02:00
cpfeiffer f8c761068e Updated for 0.9.3 2016-03-29 22:45:46 +02:00
cpfeiffer 8815f0d134 Small cleanups and fixlets. 2016-03-28 23:02:22 +02:00
cpfeiffer bfcfe82f17 Improve pairing activity: #254
- add hint about rebooting phone
- request enabling bluetooth
2016-03-26 20:46:48 +01:00
Andreas Shimokawa 9d29e4db3f bump version, update xml changelog 2016-03-26 10:04:02 +01:00
cpfeiffer 8165751e57 Refactoring to test the double firmware update procedure #234
(while performing the same, known to be working firmware update for Mi1A)

Result: double firmware update procedure works on Mi1A.

Also updated FirmwareTest. Perform all tests not only in the test itself,
but also at runtime before doing the actual update.

Further:
- fix setting of firmwareInfoSent state variable, which prevented installation
  of the section firmware
- make one string translatable
2016-03-25 23:45:27 +01:00
Andreas Shimokawa a208907ba7 update Japanese from transifex (thanks!) 2016-03-25 23:09:25 +01:00
Andreas Shimokawa 98949f3b54 bump version update xml changelog 2016-03-25 11:29:50 +01:00
cpfeiffer 3714ec82da Extracted String "HR: ", (= Heart Rate Firmware Version) 2016-03-24 22:23:16 +01:00
cpfeiffer 71461642f7 Fix enabling "Write Log File" option (closes #261) 2016-03-22 23:07:11 +01:00
Andreas Shimokawa 1aadcb958b update changelog 2016-03-21 20:20:08 +01:00
Andreas Shimokawa f046e66bf1 update Italian translation (thanks @danielegobbetti) 2016-03-20 18:45:04 +01:00
danielegobbetti 4a3547228e Update changelog md file and bring xml file on par with it. 2016-03-20 18:15:45 +01:00
Andreas Shimokawa c5a7ca4b5b properly re-sync all translation files with transifex
(this only reorders stuff since I had to repush broken tranlations to transifex again)
2016-03-20 15:38:05 +01:00
Andreas Shimokawa 4fe9489909 update German translation 2016-03-20 15:34:07 +01:00
Andreas Shimokawa c2ae9ec530 Update French translation from transifex (thanks) 2016-03-18 22:33:36 +01:00
Andreas Shimokawa 1603d60144 right align info icon in control center 2016-03-17 15:28:43 +01:00
Andreas Shimokawa 89591fd5fe update ukrankian translation from transifex (thanks) 2016-03-16 22:54:46 +01:00
Andreas Shimokawa 61e3cf4348 update japanese translation from transifex (thanks!) 2016-03-16 22:53:36 +01:00
Andreas Shimokawa 238e394d21 update french translation from transifex (thanks) 2016-03-16 22:38:27 +01:00
Andreas Shimokawa c224a40d0e update spanish translation from transifex (thanks!) 2016-03-16 22:37:14 +01:00
cpfeiffer e26e6d7b24 Display HR firmware version
Hide fw,hw,hr versions by default and show them on demand with an info
button.
2016-03-16 00:27:32 +01:00
cpfeiffer 91f02ae920 WIP: Lots of work towards double firmware update for Mi 1S #234 2016-03-16 00:27: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
Andreas Shimokawa f1ba50b62a update xml changelog 2016-03-07 01:15:23 +01:00
Andreas Shimokawa 2902e60d51 prepare 0.8.2 2016-03-07 00:55:17 +01:00
danielegobbetti 459f6baf08 Fix missing column in the creation script (upgrades were fine, but new installation weren't).
Reindent changelog file.
2016-03-06 17:28:21 +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
0nse ba35679690 / Pad the alarm time with zeroes when toasting. 2016-03-02 00:15:31 +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
cpfeiffer 540e008548 Rename to Heart Rate Test 2016-02-27 23:24:45 +01:00
cpfeiffer 4898dab652 Move "Reboot" button to the very bottom to prevent accidents 2016-02-27 23:24:03 +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
danielegobbetti b5a726b777 Change layout of the alarms activity, fixes #216. 2016-02-21 17:21:04 +01:00
danielegobbetti b858e50804 Use strings to store activity shared preferences.
System has trouble with accessing integer in the preferences, so let's not use them.
2016-02-21 13:04:32 +01:00
Andreas Shimokawa 7626667a0a try to blindly fix user preferences screen 2016-02-19 23:48:08 +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
cpfeiffer c86365ee2e Some more Mi Band pairing improvements #180
- listen to notifications early -- the band then actually tells us that
  authentication is required
- check for this after sending user info
- add authentication states to GBDevice
- workaround for event problems in pairing activity (delivered although
  already unregistered)
- BtLEQueue now deals with gatt events coming *before* connectGatt()
  actually returned (namely the connection event)
2016-02-13 00:15:16 +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 cc64bcf03c updated Korean and French from transifex (thanks!) 2016-01-31 00:57:16 +01:00
Andreas Shimokawa a6ce10d306 translate some string to German, no idea about the rest. 2016-01-21 21:46:14 +01:00
Andreas Shimokawa 2b78b0a67f Merge pull request #213 from schlamar/patch-1
fix spelling
2016-01-21 21:30:45 +01:00
Andreas Shimokawa 31724b3ef2 Update Spanish, French, Japanese and Russian from transifex (thanks!!!) 2016-01-21 21:27:31 +01:00
Marc Schlaich 887b478ec6 fix spelling 2016-01-21 19:09:10 +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
cpfeiffer 824382b385 New translation from transifex, thanks! 2016-01-06 21:26:59 +01:00
Andreas Shimokawa e41a9c208b update spanish translation from transifex (thanks!) 2016-01-02 12:26:15 +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
Andreas Shimokawa 3655c833a9 Add new languages from transifex (Polish and Vietnamese). Thanks!! 2015-12-31 00:57:45 +01:00
Andreas Shimokawa ba446b7b17 update spanish translation from transifex (thanks) 2015-12-31 00:41:22 +01:00
Andreas Shimokawa 11e02fbf5f Pebble: add experimental reconnect support for standby-mode on firmware 3.x
- You should also set reconnect attempts to 0 in preferences when using this.
- It also works when you set flight mode on the pebble, then wait for about 5 minutes and turn BT back on
- Pebble FW 2.x support ist completely untested.
2015-12-27 19:11:40 +01:00
Andreas Shimokawa cf5a0f19ed update launcher icon (thanks @halcyonest) 2015-12-23 21:40:49 +01:00
Daniele Gobbetti 0dda5c214b Add preference for reserved alarm slots (for calendar event notification)
Just this, no logic to support the choice yet.
2015-12-17 16:11:35 +01:00
Andreas Shimokawa f387f7c96b increase canned replies from 8 to 16
NOTE:

Total allowed bytes for all replies = 512 - (reply count - 1)

TODO:
- check with Firmware 2.9.1
- remove last reply that exceeds the 512 bytes limit completly (else it will be partly truncated)
2015-12-17 00:05:42 +01:00
Andreas Shimokawa 87674db5f9 update translation from transifex 2015-12-16 23:21:53 +01:00
Andreas Shimokawa c6e67a9059 update icons again (thanks xphnx) 2015-12-16 23:08:27 +01:00
Ⲇⲁⲛⲓ Φi 53f8221f98 Updated Spanish translation
Added a line translating "Canned replies".
2015-12-15 13:43:16 +01:00
Andreas Shimokawa 3961e32c2b update korean translation from transifex (thanks!) 2015-12-14 23:47:50 +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
Andreas Shimokawa 7cf1e0e004 Add system app icon and make use of it (thanks xphnx!) 2015-12-12 11:59:52 +01:00
Andreas Shimokawa c9d1b9dd4a add new icons (thanks xphnx!) 2015-12-11 21:24:00 +01:00
cpfeiffer 66ed672ad6 Updated translations from transifex (thanks!) 2015-12-08 23:50:36 +01:00
cpfeiffer e642971b4c Support for deleting/emptying the activity database 2015-12-08 23:42:58 +01:00
cpfeiffer 265dcd25eb Release 0.6.28, update translations from transifex (thanks!) 2015-12-07 01:32:39 +01:00
cpfeiffer 365ce61cb6 Support for firmware upgrade/downgrade on Mi 1A.
I hope I didn't break firmware upgrades on some Mi 1 models
other than mine (my hardware revision is 2).

Upgrades for Mi 1S are currently disabled, we need some brave
souls who can help us test this.

Closes #173
Also see: #169
2015-12-07 01:14:06 +01:00
cpfeiffer 5a479c9175 fix typo 2015-12-07 01:13:47 +01:00
Andreas Shimokawa 729555b045 update translations from transifex (thanks) 2015-12-01 09:47:13 +01:00
Nicolò Balzarotti 99c97ccda7 Fixed italian typo 2015-11-20 23:43:24 +01:00
cpfeiffer 753286a341 Update translations from transifex (thanks!) 2015-11-03 20:44:57 +01:00
Alexey Afanasev dde32f5a3f ru locale updated 2015-10-25 14:28:08 +03:00
cpfeiffer 0cd9b0419c Updated translations from transifex (thanks!) 2015-10-23 00:31:19 +02:00
cpfeiffer 52f3ca5253 Always name things positively. Negating things is bad for comprehension :-) 2015-10-19 23:36:10 +02:00
cpfeiffer 4e0fed8857 Improvements to how and when alarms are sent to the device
They are now sent whenever the Alarms activity is finished.
Display "All alarms disabled" when no alarm is enabled.

Unrelated: pass exceptions to GB.toast() where applicable.
2015-10-18 23:52:59 +02:00
Andreas Shimokawa f0a1d5f8a0 update CHANGELOG.md, bump version, pull translation from transifex (thanks!) 2015-10-18 09:22:11 +09:00
cpfeiffer b43e96318a Also support pulldown to sync in ControlCenter #138
Should factor out some common code between ChartsActivity
and ControlCenter, though.
2015-10-18 01:39:25 +02:00
cpfeiffer 45fc2c181c Add pulldown to sync and tabs in the charts activity #138 2015-10-17 17:10:14 +02:00
cpfeiffer 7dce1d62b0 Updated translations from transifex (thanks!) 2015-10-04 19:49:41 +02:00
cpfeiffer 0d27245dd1 Some more translations + reoder live activity layout 2015-10-04 00:17:24 +02:00
cpfeiffer 27aa660ca4 Use proper ellipsis 2015-10-04 00:05:26 +02:00
cpfeiffer 0a7366e458 Updated translations from transifex. Welcome Ukrainian! Thanks! 2015-10-03 21:45:40 +02:00
cpfeiffer baa2d0b27a Displaying live activity data works well enough 2015-10-02 23:38:07 +02:00
cpfeiffer 2149b18ae3 Yay, animating live activity data works.
Nice hack: MPAndroidChart supports animating values, but only animating
a new entry, going from zero to its actual value. We want to animate
a single entry changing its value.

Since it's just a single entry, we can let a custom animator do this
(without knowledge of any other entries).
2015-10-01 22:36:33 +02:00
cpfeiffer 4250a002b4 Merge branch 'master' into live-activity-data 2015-09-27 00:16:04 +02:00
Andreas Shimokawa 4f5edb7231 update German translation 2015-09-26 21:33:55 +02:00
Andreas Shimokawa e7e583a5ba update translations (thanks) 2015-09-26 21:23:20 +02:00
cpfeiffer 8ba307657a Migrate from MPAndroidChart 2.1.0 to 2.1.4
This actually makes our CustomLegendRenderer and CustomBarChart
unnecessary.
2015-09-24 00:04:21 +02:00
Andreas Shimokawa 98b1abedac Allow phone call notifications (also in call display) to be disabled in preferences
This will allow Pebble Dialer to handle these #106
2015-09-20 22:04:53 +02:00
Andreas Shimokawa a3ef85d243 update German translation 2015-09-19 13:37:09 +02:00
Andreas Shimokawa 5fb6090be1 update Spanish translation (thanks) 2015-09-19 12:53:30 +02:00
Andreas Shimokawa e1b02e1be4 Pebble: add option for PebbleKit support (default is disabled)
Also fix an endless loop when number of reconnects is set to 0
2015-09-19 12:49:34 +02:00
Andreas Shimokawa 58bbcb0035 Pebble: allow to configure reconnect attempts
This should help #89
2015-09-17 15:31:12 +02:00
cpfeiffer 7dedff3ce1 Add missing \ before apostrophe 2015-09-16 20:05:52 +02:00
Carsten Pfeiffer d5087a9daa Merge pull request #128 from kevlarcade/translate
correct some french translate
2015-09-16 20:01:37 +02:00
Andreas Shimokawa 6e3c839608 Allow to select preferred music player in preferences, closes #112 2015-09-16 00:53:54 +02:00
kevlarcade 78dafd6abc correct some french translate 2015-09-15 11:59:42 +02:00
Andreas Shimokawa 7ba255080b updaten translations from transifex (thanks!) 2015-09-12 23:30:02 +02:00
Andreas Shimokawa 70fcbbbe17 Add missing file, fixes build and #114 2015-09-12 19:20:28 +02:00
Andreas Shimokawa 0ad758fbca WIP blacklist activity (currently does nothing except listing apps) 2015-09-10 13:48:54 +02:00
cpfeiffer 518b1ee6f4 Merge branch 'master' into live-activity-data 2015-09-07 21:41:02 +02:00
Daniele Gobbetti 6c28b50f52 allow the transfer of activity data without clearing MiBand's memory 2015-09-07 12:06:56 +02:00
cpfeiffer 020d758f69 Updated translations 2015-09-06 21:13:10 +02:00
cpfeiffer 1711a7a731 Merge branch 'master' into live-activity-data 2015-09-06 00:46:50 +02:00
cpfeiffer b979a1feff Renamed "Discover Device" to "Connect new Device"
This disambiguates it from "Find lost Device"
2015-09-06 00:35:34 +02:00
cpfeiffer 9ffa9ca870 Fix lint warning (perfomance improvement) 2015-09-06 00:29:23 +02:00
cpfeiffer fbd23c2d4c Some layout improvements (#30) 2015-09-06 00:03:56 +02:00
cpfeiffer ed6629a9c7 Updated translations from transifex (thanks!) 2015-09-05 23:11:40 +02:00
cpfeiffer bc3c0760d0 More WIP with live activity charts 2015-09-05 23:05:57 +02:00
cpfeiffer 8f4e933e30 More WIP on live activity:
- keep screen on while live activity is visible
- hide the date bar (prev&forward buttons)
- live activity chart is still nowhere near usable
2015-09-04 21:55:29 +02:00
cpfeiffer 9a1f4875fc Temporary backup with live activity 2015-09-03 23:20:47 +02:00
cpfeiffer 42420e676b More WIP: displays live activity data 2015-09-02 23:49:06 +02:00
Andreas Shimokawa bc98805809 add strings from live-activity-data branch to fix build 2015-09-02 23:07:15 +02:00
cpfeiffer ab8982e7f2 WIP: support for live display of activity data 2015-09-02 08:02:26 +02:00
cpfeiffer a6d18e599b Tiny simplification and extract string 2015-09-01 22:34:04 +02:00
cpfeiffer 50960277dd Localized some firmware update texts and added some toasts on finish 2015-08-30 21:56:45 +02:00
cpfeiffer 41d8bcf634 Make firmware and app installation a bit more user friendly #30 2015-08-30 00:21:51 +02:00
cpfeiffer 87a5b09e43 Updated translations from transifex (thanks!) 2015-08-29 23:01:50 +02:00
cpfeiffer 277e5821a5 Add type="color" to fix AS designer parse errors 2015-08-29 21:59:01 +02:00
cpfeiffer 184f81fc7a Remove unused "Settings" entry in charts menu (#100) 2015-08-29 20:43:53 +02:00
Daniele Gobbetti 26792717d4 Add showing when the device wasn't worn by the user 2015-08-28 14:58:30 +02:00
Daniele Gobbetti fb5ebeacb6 Light colors for the graphs.
Closes #99
2015-08-28 14:58:30 +02:00
Daniele Gobbetti 2f1aa45445 Merge remote-tracking branch 'origin/master' into low_battery_notification 2015-08-28 10:40:46 +02:00
cpfeiffer 75a1068a69 Added new french translation, thanks a lot, gnupyx! 2015-08-27 23:10:05 +02:00
Daniele Gobbetti 3356a4b066 Merge remote-tracking branch 'origin/master' into low_battery_notification
Conflicts:
	app/src/main/res/values/strings.xml
2015-08-26 15:46:33 +02:00
cpfeiffer d0fbc57cf1 Switched position of bar and pie chart
First comes the pie chart (details) now, the the bar chart (overview)

Maybe we should do this differently in the sleep and week-steps
fragments, but for a start, and having it consistently, this is how it is.
2015-08-25 23:14:52 +02:00
cpfeiffer e8a12f92be In landscape mode, give the bar chart more space than the pie chart 2015-08-25 23:10:11 +02:00
cpfeiffer 8128651bcc In landscape format, layout bar and pie chart horizontally 2015-08-25 23:04:04 +02:00
cpfeiffer e47ebb8f09 Improvements to charts
- backward and forward buttons work better
- buttons only refresh the current fragment now
- activity shows fragment-specific titles
2015-08-25 00:33:37 +02:00
cpfeiffer 9a3769aeba Remove the "Test" widget 2015-08-24 13:15:58 +02:00
Daniele Gobbetti eb39ce9367 Further improvements:
- append a string on the control center when the device is charging
- battery status string is no more, welcome battery state enum
- the notification will not be shown when the device is charging, even if the level is below threshold
2015-08-21 08:41:57 +02:00
Daniele Gobbetti 0d8adeb7f9 Some refinements:
- only show the bigtext notification if the device has set extended battery info
- custom icon for the low battery notification (with license information)
- show device name in the notification
- set the notification to high priority
- the battery threshold is now set in GBDevice
2015-08-19 17:36:53 +02:00
Daniele Gobbetti 57a85e63b0 Merge remote-tracking branch 'origin/master' into low_battery_notification 2015-08-19 17:30:33 +02:00
Andreas Shimokawa a7796ecbc6 Pebble: Emulator support
NOTE:
- supports aplite and basalt emulator
- needs recompilation of Gadgetbridge with INTERNET permission

TODO:
- fix disconnect issues
- emulator special packet support
- string localization
- ...
2015-08-19 00:06:15 +02:00
Daniele Gobbetti c3e395818f Adding support for battery events using GBDeviceEvent.
- show notification on low battery (closes #40)
- Miband specific: add date of last charge and number of charges
2015-08-18 17:37:51 +02:00
cpfeiffer bcf42f8022 Finally, the prev and next buttons do something (#79)
Far from perfect, but a start.
2015-08-17 02:22:16 +02:00
cpfeiffer 567f27b0f4 Some initial fixes found by static analysis #92 2015-08-16 00:17:16 +02:00
cpfeiffer b6f66eb57c Updated translations from transifex, thanks! 2015-08-15 11:42:33 +02:00
Andreas Shimokawa 5884684cad Pebble: add option to enable untested features.
Bad things incoming ;)
2015-08-11 11:15:44 +02:00
Andreas Shimokawa ce7b42d9d4 Some theme cleanups and preparations for a dark theme 2015-08-07 11:49:25 +02:00
cpfeiffer 2a2eae068a Improvements to the install activity #30
- made it independent of Mi fw and Pebble fw + app classes
- automatically connect to the last used device
- some other small fixes/improvements
2015-08-06 02:17:38 +02:00
cpfeiffer c407ed1a76 Last refactoring for now: BluetoothCommunicationService
- rename to DeviceCommunicationService
- move all bluetooth related bits into separate DeviceSupportFactory
  class
2015-08-04 01:01:14 +02:00
cpfeiffer 7c597b325a Big refactoring: move classes and packages around to get a better structure
- model package contains mostly shared interfaces (UI+service), not named GB*
- impl package contains implementations of those interfaces, named GB*
  the impl classes should not be used by the service (not completely done)
- the service classes should mostly use classes inside the service and deviceevents
  packages (tbd)

Every device now has two packages:
- devices/[device name] for UI related functionality
- service[device name] for lowlevel communication
2015-08-03 23:09:49 +02:00
cpfeiffer e9f693942a Updated translations from transifex (thanks!) 2015-08-03 01:29:06 +02:00
cpfeiffer 802f48011d Refactoring of database access
- the db is now exclusively locked for one thread
- the charts read from the db and analyze data in a background thread

+ some small cleanups
2015-08-03 01:21:44 +02:00
Daniele Gobbetti 878afd79df Allow the user to set the target number of steps for each day (fitness goal), both in the sharedpreferences and in the MiBand.
The value is then used in the graphs.

#31 #44
2015-07-29 18:49:16 +02:00
Andreas Shimokawa 9f591ef8b5 Refactoring: Merge Pebble app/fw installer activity and Miband firmware update Activity 2015-07-28 17:30:20 +02:00
Daniele Gobbetti 47cbf68c37 Merge remote-tracking branch 'upstream/master' into firmware_update 2015-07-25 21:36:46 +02:00
Daniele Gobbetti f16a96e9b2 Initial support for upgrading firmware of the MiBand.
This release seems to be working quite well with respect to the firmware upgrading itself. The user facing part needs more work.

In order to update the firmware one has to:
- open a file ending with .fw
- switch from the firmware upgrade activity to the main one
- connect to the miband
- return to the firmware upgrade activity
- press the "install" button (that became active when the device connection was established)

Caveats:
There are almost no check wrt. the integrity of the firmware files.
2015-07-23 17:14:51 +02:00
Andreas Shimokawa 844d929748 update remaining languages from transifex
Please fix the removed strings on transifex. Some of them might have been removed because the original english string has been changed.
2015-07-23 16:00:36 +02:00
Andreas Shimokawa 69f4b11594 update Korean translation from transifex 2015-07-23 15:56:47 +02:00
cpfeiffer 1f2b0329c5 Misc improvelets (#45) 2015-07-21 21:24:35 +02:00
cpfeiffer 0f6491a11d More WIP: sync from the charts activity
Also add preliminary buttons to go forward/backward in time.
2015-07-21 00:06:20 +02:00
cpfeiffer 184e0f2dea New dependency to format durations (and use that where applicable) 2015-07-20 23:14:08 +02:00
Daniele Gobbetti d967411d70 Add a toast to let the user know about the progress of the transfer. 2015-07-19 16:16:58 +02:00
cpfeiffer d498bd976a Work in progress #45
Comparison between Light Sleep and Deep Sleep.
(Currently wrong, needs more analysis)
2015-07-14 00:29:32 +02:00
cpfeiffer 623e4724c2 Slightly better text when no data available 2015-07-12 21:48:48 +02:00
Andreas Shimokawa 47c43e9c28 Debug Activity: Fix layout for small screens and landscape mode
Fixes #84
2015-07-12 20:06:47 +02:00
cpfeiffer a6e26e5ddc Cleanup, use fragment based charts (WIP #45)
Known issue: scrolling a zoomed-in chart interferes with swiping to the
next/previous chart (so far there's just one, but...)
Workaround: Swipe down and then left or right in one go, this will let
you scroll the zoomed chart
2015-07-11 00:03:41 +02:00
cpfeiffer cc549a6c49 Basic database import and export (to external storage)
(In the Debug Activity)
2015-07-08 23:11:23 +02:00
Andreas Shimokawa 33d785f67c update translations from transifex 2015-07-05 00:21:13 +02:00
cpfeiffer 410b29dd6d Updated translations from transifex 2015-07-01 23:26:05 +02:00
Andreas Shimokawa 594bf8c45b Merge pull request #81 from Freeyourgadget/set-alarm-tomerge
Set alarms on device (miband)
2015-06-30 09:43:51 +02:00
Daniele Gobbetti 371a7bb4af Get rid of the Checkedtextview because they weren't in line with the our style 2015-06-30 06:40:46 +02:00
Daniele Gobbetti 900511760c further improvements:
- the day of week are evenly spread across the screen in the alarms detail activity
- the alarms are stored in a single shared preference (as a set) NB: you'll have to reset your alarms if you used a previous version (and also manually clean the shared preferences, but this is not needed)
- the list of alarms gets correctly updated after editing a specific alarm
- the actionbar back button saves the alarm status, the device back button doesn't. I'm not sure if it's a bug or a feature :)
2015-06-30 06:40:46 +02:00
Daniele Gobbetti 109b2bef4d add a Toast to confirm the transfer of the alarm or to warn if the transfer wasn't possible. 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 5cde8181c9 Updated translations from transifex 2015-06-27 18:44:26 +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