pocmo / SensorDashboard

A sensor dashboard for Android plotting all sensor data of your Android wearable.
Apache License 2.0
237 stars 107 forks source link

Frequent crash due to UI #9

Closed huanghuayh closed 9 years ago

huanghuayh commented 9 years ago

When the number of sensors are too large, the ui will crash. To fix this problem, we need to take care of both the number of colors and number of views.

huanghuayh commented 9 years ago

I have tried to fix this problem by doing what follows: change private boolean[] drawSensors = new boolean[6]; to private boolean[] drawSensors = new boolean[20];

and use an if-else statement to handle the case when the number of sensors is larger than 9

thebino commented 9 years ago

fixed