1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-24 05:50:47 +02:00
Gadgetbridge/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/charts
cpfeiffer a1cb246e27 Add and use a "client interface" for the actions of the service
Previously, the DeviceCommunicationService was invoked directly,
via
Intent intent = new Intent(foo, bar);
intent.setExtra(EXTRA_BAZ, baz);
startService(...);

and this was scattered throughout GadgetBridge.
Now there is a "frontend" available, so that you can call
the service more easily, like
GBApplication.deviceService().connect();

For a start, this client interface (DeviceService) actually
implements the same interface (EventHandler) as the receiving side
(DeviceSupport). This may change in the future.

This will also make testing much easier, because we can use
this client interface to invoke the test service as well.
2015-08-21 01:03:57 +02:00
..
AbstractChartFragment.java Last commit accidentally called the wrong get*Samples method 2015-08-19 01:06:46 +02:00
ActivityAnalysis.java Big refactoring: move classes and packages around to get a better structure 2015-08-03 23:09:49 +02:00
ActivitySleepChartFragment.java Finally, the prev and next buttons do something (#79) 2015-08-17 02:22:16 +02:00
ChartsActivity.java Add and use a "client interface" for the actions of the service 2015-08-21 01:03:57 +02:00
ChartsHost.java Finally, the prev and next buttons do something (#79) 2015-08-17 02:22:16 +02:00
CustomBarChart.java Big refactoring: move classes and packages around to get a better structure 2015-08-03 23:09:49 +02:00
CustomLegendRenderer.java Big refactoring: move classes and packages around to get a better structure 2015-08-03 23:09:49 +02:00
SleepChartFragment.java Finally, the prev and next buttons do something (#79) 2015-08-17 02:22:16 +02:00
SleepUtils.java Big refactoring: move classes and packages around to get a better structure 2015-08-03 23:09:49 +02:00
WeekStepsChartFragment.java Finally, the prev and next buttons do something (#79) 2015-08-17 02:22:16 +02:00