1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-30 19:49:59 +02:00

Remove useless instanceof check

This commit is contained in:
Erik Johansson
2018-02-22 19:31:37 +01:00
parent f3c5d2fd75
commit ebe7e00264

View File

@@ -147,9 +147,6 @@ public abstract class MeasurementView extends TableLayout {
public static void saveMeasurementViewsOrder(Context context, List<MeasurementView> measurementViews) {
ArrayList<String> order = new ArrayList<>();
for (MeasurementView measurement : measurementViews) {
if (measurement instanceof DateMeasurementView || measurement instanceof TimeMeasurementView) {
continue;
}
order.add(measurement.getKey());
}
PreferenceManager.getDefaultSharedPreferences(context).edit()