cpfeiffer
95ce3d333e
Ugly workaround for blacklist not properly persisting
...
Fixes #696
2017-08-01 00:10:10 +02:00
cpfeiffer
12f9386fac
Also handle resetting language to default properly #733
2017-07-31 23:00:02 +02:00
cpfeiffer
c1925a4e64
Properly handle and distribute language change #733
...
Also centralize QUIT handling in GBActivity
2017-07-31 22:49:05 +02:00
cpfeiffer
e279cd736f
Some logging for the weird blacklist issue #696
2017-05-21 21:02:23 +02:00
cpfeiffer
c3c5e0415d
The Real Fix #666
2017-04-27 07:57:57 +02:00
cpfeiffer
f1fbab7dd9
Revert "Revert "Adjust test case setup and fix failing tests""
...
This reverts commit b0384e90d5
.
2017-04-27 07:57:57 +02:00
Andreas Shimokawa
b0384e90d5
Revert "Adjust test case setup and fix failing tests"
...
This reverts commit d9b0d639b8
.
2017-04-27 07:39:36 +02:00
cpfeiffer
d9b0d639b8
Adjust test case setup and fix failing tests
...
- add missing call super.setUp() in LoggingTest
- make use ofGBApplication's logger and db support instead
of adding specific test things. Avoids differences between
the local test things and the global GBApplication instances.
2017-04-25 21:55:06 +02:00
cpfeiffer
2003d56190
Cleanup package blacklist handling
...
Didn't find a cause for #664 , though.
2017-04-22 16:59:55 +02:00
Daniele Gobbetti
18157daf46
Ensure that the Notification listener service gets restarted if crashed.
...
This change adds an additional service that checks the status of the NotificationListenerService, and restarts it if it's stale/crashed.
Crashes happen mostly during development, but were reported also by users.
2017-04-19 13:23:13 +02:00
Daniele Gobbetti
2e98b1396f
Do not override the android:* text colors, define our own. This fixes a crash on API 19.
...
Also define them in the attrs xml file and do some grouping in the colors xml.
It might be we don't need them at all, but for the time being let's keep them around.
2017-04-08 15:49:00 +02:00
Daniele Gobbetti
2c152e8447
Override textColorPrimary and not textColor as it conflicts with support libraries (e.g. snackbar text).
...
Further, use textColorPrimary in the graphs instead of textColor.
2017-03-11 16:48:55 +01:00
License Bot
e392fbfd80
Add license header to all java files.
2017-03-10 14:53:19 +01:00
Andreas Shimokawa
08080b02bb
Drop support for legacy (pre 0.12.0) database
2017-02-23 22:44:44 +01:00
Daniele Gobbetti
c1abaaa4e0
Add support for hiding the icon in the status bar and the notification on the lockscreen.
...
This adds proper settings to toggle GB behavior and closes #460 .
2017-01-08 15:51:56 +01:00
Andreas Shimokawa
ed38e524bf
Make some static stuff non-static (potentially fixes instant run problem and leaks)
2016-12-07 23:13:51 +01:00
Andreas Shimokawa
352fc1a030
fix wrong return value
2016-11-25 14:53:12 +01:00
cpfeiffer
9bebf1d32f
When memory is really low, free up some memory #436
...
(although we probably can't save much)
2016-11-24 21:15:27 +01:00
Daniele Gobbetti
1e6cb67edd
UI refactoring of the DB management activity.
...
Added a method to delete the legacy DB only.
2016-08-31 17:35:28 +02:00
cpfeiffer
6340bcff15
Small cleanup
2016-08-31 00:03:20 +02:00
cpfeiffer
840a125c81
Fix compilation
2016-08-27 22:55:00 +02:00
cpfeiffer
8d6e6c8675
Upon request, delete not only the old, but also the new database
2016-08-27 22:51:00 +02:00
Andreas Shimokawa
5ab40918c0
rename database from test-db5 to Gadgetbridge
2016-08-26 23:48:54 +02:00
cpfeiffer
49b8b9ebca
More robolectric stuff
...
- guard against multiple GBApplication.onCreate() invocations
- test DBHelper.getDevice() for a start
2016-08-25 00:00:53 +02:00
Andreas Shimokawa
4ddbbfdfb0
change db name to test-db5
2016-08-14 22:36:50 +02:00
cpfeiffer
f54163faeb
centralize quit() functionality in GBApplication
2016-07-08 22:35:52 +02:00
cpfeiffer
2fa166e381
Fix potential NPE, setup environment earlier
2016-06-25 18:58:54 +02:00
cpfeiffer
0596c80381
Some migration fixes
...
especially: add unique index on samples using timestamp and device id
(since composite primary keys are not fully supported yet)
2016-06-19 00:40:51 +02:00
cpfeiffer
233a6155cc
Add class DeviceManager that provides access to the list of managed devices
...
Basically moved code out of ControlCenter to a separate class. Also provides
change events when the device list has changed, or changes to the device
state have occurred.
2016-06-18 23:35:34 +02:00
cpfeiffer
61957d6cb0
WIP: more db work
2016-06-14 20:13:08 +02:00
cpfeiffer
3b87966fe9
Merge branch 'master' into db-refactoring
2016-06-06 22:16:40 +02:00
cpfeiffer
50b7a02ef2
One more attempt at fixing dynamic logging reconfiguration
...
- moved out of GBApplication to class Logging
- the main thing is: when start()ing the FileAppender again, it *must*
- be configured to be non-lazy, otherwise it won't open the stream ever again.
2016-05-26 23:46:21 +02:00
cpfeiffer
d5cca84780
Small fixlets
2016-05-20 22:04:30 +02:00
cpfeiffer
0267ddb356
Merge branch 'master' into db-refactoring
2016-05-20 21:49:59 +02:00
cpfeiffer
400ae2bc3b
Fix lint warnings using @TargetApi
2016-05-20 21:49:25 +02:00
cpfeiffer
fa34cf9a17
Merge branch 'master' into db-refactoring
2016-05-20 21:42:30 +02:00
Normano64
31eabe9605
Fixed things based on feedback
2016-05-19 23:58:13 +02:00
Normano64
8a91628322
Detects if Do Not Disturb is in use.
...
Can handle sms and phone calls from priority senders when in Priority
only, but doesn't handle events and reminders.
2016-05-19 16:34:59 +02:00
cpfeiffer
75703b0dea
Import and Export db are back
2016-05-17 00:51:00 +02:00
cpfeiffer
2d2df64003
Port schema migration to greendao
2016-05-16 23:54:51 +02:00
cpfeiffer
40a376bbd0
Merge branch 'master' into db-refactoring
2016-05-16 23:01:16 +02:00
cpfeiffer
3e0bc16741
More WIP, but we're getting closer
...
current state:
- storing samples works (tested only mi band)
- charts work
2016-05-16 23:00:04 +02:00
cpfeiffer
8ca821ab8a
More WIP on db refactoring
2016-05-13 23:47:47 +02:00
cpfeiffer
1a353239c4
Fix log content
2016-05-08 21:38:55 +02:00
cpfeiffer
b363d08efb
WIP: a little work towards greendao
...
need to think of how to integrate MiBandActivitySample and PebbleActivitySample
into the app. There's GBActivitySample, MiBandSampleProvider, PebbleSampleProvider,
etc.
2016-04-29 23:12:30 +02:00
cpfeiffer
64a6b9a936
Merge branch 'master' into db-refactoring
2016-04-29 22:28:53 +02:00
cpfeiffer
5e02724c4c
Make automatic reconnect after connection loss configurable #293
...
Mi Band: automatically reconnect when the device is back in range
Also: #89
2016-04-28 23:17:13 +02:00
cpfeiffer
0704915a88
Move parsing of preference strings to int values to Prefs
2016-04-25 23:39:03 +02:00
cpfeiffer
0c715a2669
Wrap access to SharedPreferences with "Prefs"
...
(to centralize quirk handling)
2016-04-25 23:18:55 +02:00
Andreas Shimokawa
3fefb57fdd
Fix colors in alarm activity for dark theme
2016-04-23 23:24:56 +02:00