mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-07 01:06:57 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user