Track recording service handles the status of recording: track's id, pause and GPS status.

Created an interface for all components that want to know about recording status through the service.
All interface's methods are optional so every component can implement what they need.
Fixes #388.
This commit is contained in:
Román Martínez
2021-03-23 20:08:25 +01:00
parent f3cf1a2571
commit e09b04308c
26 changed files with 426 additions and 466 deletions
@@ -129,7 +129,7 @@ public class TrackController implements View.OnTouchListener {
buttonDelay = () -> {
view.sendAccessibilityEvent(AccessibilityEvent.TYPE_VIEW_CLICKED);
view.performClick();
callback.recordStart(); //TODO Should be recordPause();
callback.recordPause();
transition.resetTransition();
@@ -239,7 +239,7 @@ public class TrackController implements View.OnTouchListener {
public interface Callback {
void recordStart();
void recordPause();
void recordStop();
}
}