forked from upstream-mirrors/OpenTracks
TrackDataHub does not need to register for status changes of TrackRecordingService.
This is handled by TrackRecordingActivity alone. Part of #719.
This commit is contained in:
@@ -306,6 +306,8 @@ public class ChartFragment extends Fragment implements TrackDataListener {
|
||||
* Returns true if the selected track is recording.
|
||||
* Needs to be synchronized because trackDataHub can be accessed by multiple threads.
|
||||
*/
|
||||
@Deprecated
|
||||
//TODO Should not be dynamic but instead set while instantiating, i.e., newFragment().
|
||||
private synchronized boolean isSelectedTrackRecording() {
|
||||
return trackDataHub != null && trackDataHub.isSelectedTrackRecording();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user