1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-31 20:11:58 +02:00
Commit Graph

2032 Commits

Author SHA1 Message Date
Erik Johansson
147550262b Add method to control if measurment views should update internal views
The table view doesn't actually display the measurement views, it only
uses them for formatting the value that is later displayed. So to
speed up that view, avoid doing calculations that aren't used.
2018-02-02 19:26:54 +01:00
Erik Johansson
7e932b0ec1 Speed up table view by using spanned string instead of HTML 2018-02-01 21:19:01 +01:00
Erik Johansson
9db1a355a3 Add some tiny space between indicator and text 2018-02-01 20:47:00 +01:00
Erik Johansson
c8d45b2469 com.health.openscale -> com/health/openscale for unit tests as well 2018-02-01 20:40:44 +01:00
Erik Johansson
640c9665bf Use constants for the name of extra values in intents 2018-02-01 20:37:43 +01:00
oliexdev
70f263c08b check if receiver is registered before unregister it. 2018-02-01 20:17:22 +01:00
OliE
ed53b1d544 replaced at the CSV export option the abort button with share button. 2018-02-01 19:07:11 +01:00
OliE
b21430d9fb check if device is not null 2018-02-01 19:05:33 +01:00
OliE
531d38be31 update Bluetooth 1byone commands. 2018-02-01 17:45:53 +01:00
OliE
e3fdf396b3 experimental Bluetooth device connection with new API. 2018-01-31 21:20:15 +01:00
OliE
89c990a6b5 experimental Bluetooth search with new API. 2018-01-31 17:52:21 +01:00
OliE
0f86826bda Merge pull request #168 from erijo/minor
Minor GUI changes
2018-01-31 16:23:44 +01:00
Erik Johansson
1177529a9d Align non-editable values with editable ones 2018-01-30 23:47:34 +01:00
Erik Johansson
9f57aed528 Add a space after symbol in table diff to improve readability 2018-01-29 20:39:25 +01:00
Erik Johansson
30bfd48b9b Make indicator point to bottom of bar instead of top
as it looks better.
2018-01-29 20:39:19 +01:00
Erik Johansson
dbf2ed5481 Update swedish translation 2018-01-29 20:20:59 +01:00
OliE
2481d59375 update Bluetooth Hesley source code. 2018-01-28 18:37:02 +01:00
OliE
1347ca86c3 set indicator color to gray. 2018-01-28 16:11:51 +01:00
OliE
5aa9a45f5b update app theme for data entry activity. 2018-01-28 15:36:59 +01:00
OliE
2dc40e4bc4 added an option to select a light or a dark app theme. 2018-01-28 15:27:20 +01:00
OliE
26549c9746 set the user default goal date to plus 6 months from the current date. 2018-01-28 11:08:31 +01:00
OliE
2edc39636a set the user default birthday to minus 20 years from the current year. 2018-01-28 10:49:17 +01:00
OliE
0c65d09609 Merge pull request #166 from erijo/index
Change order of columns in index
2018-01-28 10:35:34 +01:00
Erik Johansson
763559e3a1 Change order of columns in index
By putting userId first we avoid a compiler warnings an most likely
make better use of the index.
2018-01-27 20:56:12 +01:00
OliE
90fa0c04ea Merge pull request #165 from erijo/nonnull
Readd NonNull annotation on ScaleUser gender and scaleUnit
2018-01-27 13:51:27 +01:00
Erik Johansson
505af97d85 "static private" -> "private static" 2018-01-27 12:47:55 +01:00
Erik Johansson
66663ecaac Remove NonNull annotation 2018-01-27 12:45:27 +01:00
Erik Johansson
74d063a7cd Select closest month when switching year in graph view
When switching from e.g. January 2018 to 2017, make December be
selected (if it had any measurements) instead of January 2017.
2018-01-27 12:44:24 +01:00
Erik Johansson
ccbeed5448 Pass measurement list as a parameter
instead of keeping it as a class variable.
2018-01-27 12:44:24 +01:00
Erik Johansson
084656c88c Save/restore table and graph state when e.g. rotating 2018-01-27 12:44:24 +01:00
Erik Johansson
bab252e766 Save/restore state when user e.g. rotates the screen 2018-01-27 12:44:24 +01:00
Erik Johansson
bdeefc2d69 Readd NonNull annotation on ScaleUser gender and scaleUnit
Removing the annotations requires adding a database migration as the scheme changes.
2018-01-27 12:41:32 +01:00
OliE
5c85834eda removed notnull annotations. 2018-01-27 08:07:49 +01:00
OliE
8f1e63cec6 fix to use the correct csv header. 2018-01-27 07:35:28 +01:00
OliE
c5645b4cf4 added for the screenshot recorder sleep timers to wait until the fragment is loaded 2018-01-26 19:11:58 +01:00
OliE
5dd254f7c2 first Bluetooth 1byone scale implementation. 2018-01-26 17:33:43 +01:00
Erik Johansson
dd2944f83d Move measurements forward in time instead of setting year
Otherwise most measurements will end up in the future. Also let the
user's birthday and goal date be an offset from the current date.
2018-01-24 22:55:54 +01:00
Erik Johansson
17887c8663 Use unit and gender enum directly 2018-01-24 22:53:00 +01:00
Erik Johansson
c463efe521 Cache the selected scale user 2018-01-24 22:49:52 +01:00
Erik Johansson
447f996cd4 Move selectedUserId handling to OpenScale class 2018-01-24 22:39:54 +01:00
Erik Johansson
d0fb7beea8 Remove unused methods from old database classes 2018-01-24 22:11:57 +01:00
Erik Johansson
0ee227259d Close old database after migration is done 2018-01-24 22:05:25 +01:00
Erik Johansson
d2d7295a1a Reopen database after import to have migrations run if needed 2018-01-24 21:58:13 +01:00
Erik Johansson
212b32f632 Introduce new database version (2)
- Change the unique constraint for measurements to include userId in
  addition to datetime. This way two users can now have measurements
  with the same date and time (hour and minute).
- Enforce that the userId references an existing user.
2018-01-24 21:39:22 +01:00
Erik Johansson
48921a4807 Remove unused class member 2018-01-24 21:36:04 +01:00
Erik Johansson
a3bc0c8de2 Use real user ids when inserting measurements in database 2018-01-24 21:35:10 +01:00
OliE
360ce7f172 show navigation buttons only if you need them. 2018-01-24 19:12:04 +01:00
OliE
2fedf25cad fix bug in weight evaluation sheet that the limit units are not correctly converted to the user scale unit. 2018-01-24 18:52:49 +01:00
OliE
ac182436b7 Merge pull request #160 from erijo/tests
Move test case from com.health.openscale to com/health/openscale
2018-01-24 18:51:07 +01:00
OliE
4a705dd34f Merge pull request #157 from erijo/misc
Some more misc changes
2018-01-24 18:50:57 +01:00