1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-04 09:17:29 +01:00
Commit Graph

5596 Commits

Author SHA1 Message Date
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
cpfeiffer
ba76f64bf6 Disable context menu while busy and add "Disconnect" to context menu 2015-06-07 15:31:42 +02:00
cpfeiffer
dc8d1e961d Fix position of progress bar 2015-06-07 00:05:36 +02:00
cpfeiffer
020d8d74d6 Added "Fetch Activity Data" to the context menu.
With some kind of progress reporting during the fetching #45
2015-06-06 19:39:04 +02:00
cpfeiffer
9e4e50be47 Initial work on synchronizing activity data with feedback.
A device now has a busy flag (set during synchronization). While busy,
no other communication with the device shall occur (TODO)

Refactors the non-bluetooth actions a bit  #45

Next step: make use of the busy state in ControlCenter (show
a busy cursor) and in BluetoothCommunicationService (to not call other
operations while busy)
2015-06-06 00:40:16 +02:00
cpfeiffer
7f89f4bb57 Some fixes regarding device initialization, should avoid disconnects
Avoid repeated initializations and device info requests. Fix unsetting
of dynamic state (e.g. battery info) when initialized.
2015-06-01 21:47:02 +02:00
Andreas Shimokawa
6ea9537d38 Start sleep activity with context menu (long press on a device)
This allows to see sleep data even if devices are not connected.
2015-06-01 16:57:45 +02:00
cpfeiffer
4518e8819d Make file-logging configurable 2015-05-23 00:45:12 +02:00
cpfeiffer
c469248de1 Updated from transifex (thanks!) 2015-05-22 23:21:37 +02:00
Andreas Shimokawa
68b76aa5c5 Pebble: Get Morpheuz sleep data visualize through SleepMonitorActivity
This very very experimental, and needs a complete overhaul.
But it is a start ;)
2015-05-21 18:17:39 +02:00
cpfeiffer
e3c42ace2d Updated translations from transifex (thanks!) 2015-05-17 23:01:47 +02:00
cpfeiffer
4be50b3a82 Fix typo 2015-05-17 22:57:26 +02:00
cpfeiffer
14a05c3383 Initial support for rebooting the device
(via the Debug activity)
Attention: no safety-confirmation dialog yet!
2015-05-17 21:58:08 +02:00
Andreas Shimokawa
2b98620ee0 Mi Band: Prepare preferences for vibration count, use number as input type for numeric field 2015-05-14 13:04:21 +02:00
cpfeiffer
68383b6c05 Updated translations from transifex (thanks!) 2015-05-12 06:34:44 +02:00
cpfeiffer
9a26769c3e Search & replace: use slf4j for logging instead of Logcat directly
For a start, use android-logger as backend. Needs a better configuration
but no time right now.

For file-logging we will use logback as slf4j-implementation.
2015-05-12 06:33:37 +02:00
cpfeiffer
9195652f11 Reformatted from transifex 2015-05-10 23:59:00 +02:00
cpfeiffer
c89bba0cba Remove explicit "Refresh" device list action 2015-05-10 21:19:07 +02:00
Andreas Shimokawa
2b84ffdc1a update Russian translation 2015-05-10 19:07:48 +02:00
Andreas Shimokawa
1443c8088c Change default for Pebble Notification Intents back to "when screen off"
Conversations accepted our PR, so we will continue to get these intents.
The option cann still turned off, in that case Conversations' notifications are
picked up by our generic notification support.
2015-05-10 15:07:28 +02:00
Andreas Shimokawa
22daa507ce readd Italian string that was removed by accident (or by transifex) 2015-05-10 14:22:44 +02:00
Andreas Shimokawa
7f5b495480 Move Mi Band MAC address setting to Mi Band Settings 2015-05-10 13:08:28 +02:00
Andreas Shimokawa
e78c912be3 Only sync time on time/timezone changes if appropriate option is set. 2015-05-10 11:21:16 +02:00
Andreas Shimokawa
f9efa36322 Add Russian translation (thanks astra1!) 2015-05-10 10:02:12 +02:00
cpfeiffer
fa9bed81ce Updated translations 2015-05-10 00:21:08 +02:00
cpfeiffer
1a7c3c42e4 Do both BT and BTLE discovery (one after another) #33 2015-05-09 23:54:47 +02:00
cpfeiffer
29cc364f8a Updated translations 2015-05-09 21:47:03 +02:00
cpfeiffer
ab5d5f6c6f Made Mi Band preferences localizable 2015-05-09 21:43:04 +02:00
Andreas Shimokawa
8112d4afd8 update stings 2015-05-08 12:56:17 +02:00
Andreas Shimokawa
6f162c593b Pebble message intent notifications default to "never" now
If these get turned on, Conversations notifications will be handled through Pebble message intents and get filtered out from generic notifcation handling.
2015-05-08 12:50:42 +02:00
cpfeiffer
ddc2f116aa Updated German translation 2015-05-08 00:48:51 +02:00
cpfeiffer
d036f0539d Added missing resource strings and clean up layouts 2015-05-08 00:42:46 +02:00
cpfeiffer
9801a94704 Revert "Updated translation from transifex"
This reverts commit 45fde87df6.
2015-05-07 23:56:04 +02:00
cpfeiffer
45fde87df6 Updated translation from transifex 2015-05-07 23:54:59 +02:00
cpfeiffer
b2518ff927 Discovery + pairing now works
User info is asked on demand before starting the actual pairing.
When no (valid) user info is given, dummy user infor will be  used instead.
2015-05-07 23:52:44 +02:00
Andreas Shimokawa
70889e5326 fix italian string, which would cause FC 2015-05-07 22:32:30 +02:00
cpfeiffer
cf360455a0 updated translations from transifex 2015-05-07 22:05:57 +02:00
cpfeiffer
84a89c7c9b ignore values-en, always created by tx pull -a 2015-05-07 20:46:24 +02:00
cpfeiffer
a23690c8e1 Initial support for Mi Band specific settings
(User info for now).

TODO: We need to have that information *before* starting a connect
2015-05-07 01:32:17 +02:00
Andreas Shimokawa
44333c4244 Fix some German strings, simplify SMS/K9-Mail strings 2015-05-07 00:11:43 +02:00
cpfeiffer
fa57bf11a2 Fix some German translations 2015-05-06 23:16:15 +02:00
cpfeiffer
637cc3be51 Connected devices are typically not discoverable (#33) 2015-05-06 23:00:06 +02:00
cpfeiffer
dbffd5a42f Updated translations from transifex (#46)
Needed to use pull -a to get new languages (here: italian)
2015-05-06 17:39:46 +02:00
cpfeiffer
dc6fd8cb61 Translation updated from Transifex 2015-05-05 23:39:47 +02:00
Andreas Shimokawa
3e85efa898 Display battery level if known. Should work on Miband, untested. 2015-05-05 22:52:25 +02:00
Andreas Shimokawa
d09b5442cf Put FW/HW info inside its own TextView to cleanup the device list 2015-05-05 11:16:57 +02:00
cpfeiffer
9df661bd96 Initial (ugly) support for device discovery and pairing (#3) 2015-05-05 00:48:54 +02:00
Andreas Shimokawa
e859ece7c6 Add Support for notifications send to Pebble from 3rd party applications
This enables support for Conversations without using generic notificaion support.
Other applications could also work partly but are untested.

This commit also changes the SettingsActivity to use Comboboxes instead of two
Checkboxes for each notification source.
2015-05-04 01:03:56 +02:00
xphnx
cac3bc01a9 Update strings.xml 2015-05-01 17:20:17 +02:00
Andreas Shimokawa
93b463c47e update German translation 2015-05-01 10:08:24 +02:00
cpfeiffer
8b3b4d0882 #46 make all strings localizable 2015-05-01 01:26:30 +02:00
Andreas Shimokawa
75b9d0e833 simplyfy SettingsActiviy code 2015-05-01 00:56:16 +02:00
Andreas Shimokawa
b256c9ed15 set utf-8 2015-04-30 00:58:04 +02:00
Andreas Shimokawa
959626049e add Spanish translation (thanks xphnx!) 2015-04-30 00:57:36 +02:00
Andreas Shimokawa
f8bbbdb47c add Korean translation (thanks halcyonera!) 2015-04-30 00:54:32 +02:00
Andreas Shimokawa
b7c3578e5b add German translation (quick & dirty) 2015-04-30 00:50:16 +02:00
cpfeiffer
62a41ac5be Fix manual input of bluetooth MAC address
(must be uppercase characters)
2015-04-13 01:07:46 +02:00
Andreas Shimokawa
b3c036ef3b add missing files 2015-04-11 01:08:02 +02:00
Andreas Shimokawa
2c1cacedb3 Pebble: working on app installation (WIP, do not use) 2015-04-06 20:58:35 +02:00
Andreas Shimokawa
13d734b0f1 add development option to set a miband device address so it appears in our list.
This is only meant for future development, there is no MI Band support yet!
2015-04-01 23:00:05 +02:00
Andreas Shimokawa
2c50f95a92 update Pebble icon, add Miband icon 2015-04-01 22:12:49 +02:00
Andreas Shimokawa
ed2e177fcb Remove direct PebbleProtocol usage. Add GBDeviceProtocol as a base class for all protocols.
Also add a empty MibandProtocol
2015-04-01 18:34:52 +02:00
Andreas Shimokawa
9d74cee093 add icons for pebble and watchfaces. Store app type in GBDeviceApp. Store device type in GBDevice. 2015-03-31 23:34:19 +02:00
Andreas Shimokawa
d9a2d85f6d Fix for DST (summer time), option to sync time on connect (enabled by default) 2015-03-29 17:12:06 +02:00
Andreas Shimokawa
4117444c26 Display app name, company and version when opening a .pbw file from a filemanager 2015-03-28 23:23:10 +01:00
Andreas Shimokawa
b3251a33f2 show hint at the bottom of the Main Activity, update README.md, bump to 0.1.4 2015-03-27 12:33:51 +01:00
Andreas Shimokawa
0dacc1f9c7 make sure Intent broadcasts do not leave Gadgetbridge, add missing xml file 2015-03-27 12:13:19 +01:00
Andreas Shimokawa
42e53c3c8d support removing apps/watchfaces 2015-03-26 18:11:47 +01:00
Andreas Shimokawa
0ccb818f58 Added AppManager, does not do anything useful yet. Only lists installed Apps. 2015-03-25 22:23:45 +01:00
Andreas Shimokawa
2e7f45433a display connection status in the device list 2015-03-22 23:38:51 +01:00
Andreas Shimokawa
ecb7a9f3b5 Remove quit button from the service notification, put a quit item in the context menu instead. Closes #12 2015-03-22 13:10:45 +01:00
Andreas Shimokawa
4e465928e6 List all suported devices and connect on tap. Remove the connect button. 2015-03-21 18:18:07 +01:00
Andreas Shimokawa
c56194c0e5 * Add option to start Gadgetbridge and connect automatically when bluetooth is turned on.
This closes #9
2015-03-17 21:41:58 +01:00
Andreas Shimokawa
eeb74b4c61 Preferences: "Generic Notification Support" is no longer a checkbox - it now opens the Android Notificaion Permission Dialog
If the permission is not granted we wont get notfifications, an extra preference for
Gadgetbridge is pointless, so I removed it.
2015-03-15 21:36:39 +01:00
Andreas Shimokawa
85ccafc922 Experiment with styling. 2015-03-07 15:32:34 +01:00
Andreas Shimokawa
e52e26168a quick&dirty preference screen. Allows to enable/disable SMS/K9/generic notifications 2015-03-06 14:00:56 +01:00
Andreas Shimokawa
e0c146bde9 add notification icon. This fixes #2 2015-02-24 12:36:38 +01:00
Andreas Shimokawa
20b3dffba6 initial support for music playback information (artist, album, track), fix encoding of empty strings in PebbleProtocol 2015-02-08 23:53:40 +01:00
Andreas Shimokawa
a47ba3c96f Cleanup main Activity, move debug code to DebugActivity, added Call related debug buttons, add state tracking to PhoneCallReceiver, support in-call display of incoming calls (untested) 2015-02-07 12:58:18 +01:00
Andreas Shimokawa
2793669e88 New icon 2015-02-06 14:28:57 +01:00
Andreas Shimokawa
243b9f0a88 Various changes to Service, Activity and Notification handling
- Bluetooth connection is now established in BtSocketIOThread
- Service is now started as soon as the main activity is started
- changed "start service" button to "connect" button
- quit button in service notification now also quits the main activity
- Service notification now displays "Gadgetbride started",
  "connected to Pebble XXXXX" and "not connected" depending on connection state
2015-02-06 13:55:44 +01:00
Andreas Shimokawa
ebf4c73e02 Added (ugly) icons.
But having ugly icons is better than having default icons....
2015-01-29 00:37:54 +01:00
Andreas Shimokawa
fcaf099e70 fix various annoyances
- only ask for notication monitoring permissions the on first start
- filter out annoying system messages like keyboard notifications
- rearrange buttons
- bugfix for message being ignored when sending a test message to the
  Pebble (sender was used as message content)
2015-01-18 22:44:38 +01:00
Andreas Shimokawa
88bb645834 Add ACTION_SETTIME to Service and add a corresponding button in the ControlCenter activity 2015-01-18 01:10:44 +01:00
Andreas Shimokawa
85fcdb208a Put Bluetooth communication into a foreground service and keep socket open. 2015-01-12 00:35:15 +01:00
Andreas Shimokawa
dada70e92c First checkin of actual code 2015-01-07 14:00:18 +01:00