From e355ac845d5360561bcc7ab317b67846718d306e Mon Sep 17 00:00:00 2001 From: Erik Johansson Date: Fri, 22 Dec 2017 21:19:19 +0100 Subject: [PATCH] Don't set measurement in edit mode for table fragment Should be enough to have it in view mode (which is the default). --- .../com/health/openscale/gui/fragments/TableFragment.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java b/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java index 9ec6a715..c249047b 100644 --- a/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java +++ b/android_app/app/src/main/java/com/health/openscale/gui/fragments/TableFragment.java @@ -119,10 +119,6 @@ public class TableFragment extends Fragment implements FragmentUpdateListener { measurementsList.add(new BMRMeasurementView(tableView.getContext())); measurementsList.add(new CommentMeasurementView(tableView.getContext())); - for (MeasurementView measurement : measurementsList) { - measurement.setEditMode(MeasurementView.MeasurementViewMode.EDIT); - } - prefs = PreferenceManager.getDefaultSharedPreferences(tableView.getContext()); OpenScale.getInstance(getContext()).registerFragment(this);