1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-07 09:17:11 +02:00

Bugfix: reset user selected data when user changes

... otherwise if user A selects data on the line chart,
and switches to user B, user B sees the selected data
of user A instead of user B's last data.
This commit is contained in:
Milena May
2016-08-24 07:12:48 +02:00
parent 93708cdf3c
commit a2db9f76e4

View File

@@ -224,6 +224,8 @@ public class OverviewFragment extends Fragment implements FragmentUpdateListener
currentScaleUser = OpenScale.getInstance(overviewView.getContext()).getSelectedScaleUser();
userSelectedData = null;
measurementWeightLast.scaleUser = currentScaleUser;
measurementBMILast.scaleUser = currentScaleUser;
measurementWaterLast.scaleUser = currentScaleUser;