Closed
Description
Actual Behaviour
PsLabSensor
directly calls methods from fragments such as LuxMeterDataFragment,
SoundMeterFragment
etc, which increases coupling and also increases lines of codes in the onOptionItemSelected()
method of PsLabSensor
. In addition it increases chances of introducing bugs when new sensors are implemented.
Expected Behaviour
Interface callbacks can be used to reduce the coupling between PsLabSensor
and other data fragments. We can define a interface with common set of methods such as play(), stop(), pause(), resume() etc and have the fragments implement this interface.
Steps to reproduce it
N/A
LogCat for the issue
N/A
Screenshots of the issue
The lines of codes below are redundant.
Would you like to work on the issue?
Yes
Metadata
Metadata
Assignees
Labels
No labels