1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-16 02:14:04 +02:00
Commit Graph

135 Commits

Author SHA1 Message Date
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
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
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
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
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
rober
c1769fb4b4 revamp icons 2015-06-17 23:44:53 +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
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
cpfeiffer
8aef92026c A new sleep chart based on MPAndroidChart 45
- supports zooming an panning
- displays labels for all x-values (= time of day)
- fix deep vs. light sleep constants
- increase activity data buffer size for Mi Band
2015-06-11 23:37:00 +02:00
Andreas Shimokawa
042963f2e2 Escape ' in Turkish translation to fix build 2015-06-07 21:31:47 +02:00
Carsten Pfeiffer
1c8173c218 Merge pull request #64 from mtsekm/master
Add Turkish translation
2015-06-07 20:59:00 +02:00
cpfeiffer
3d49426a4c updated translations from transifex 2015-06-07 20:58:04 +02:00
Tarik Sekmen
56a0935d62 Add Turkish translation 2015-06-07 17:32:47 +03:00