mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-31 03:59:56 +02:00
Remove useless instanceof check
This commit is contained in:
@@ -147,9 +147,6 @@ public abstract class MeasurementView extends TableLayout {
|
|||||||
public static void saveMeasurementViewsOrder(Context context, List<MeasurementView> measurementViews) {
|
public static void saveMeasurementViewsOrder(Context context, List<MeasurementView> measurementViews) {
|
||||||
ArrayList<String> order = new ArrayList<>();
|
ArrayList<String> order = new ArrayList<>();
|
||||||
for (MeasurementView measurement : measurementViews) {
|
for (MeasurementView measurement : measurementViews) {
|
||||||
if (measurement instanceof DateMeasurementView || measurement instanceof TimeMeasurementView) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
order.add(measurement.getKey());
|
order.add(measurement.getKey());
|
||||||
}
|
}
|
||||||
PreferenceManager.getDefaultSharedPreferences(context).edit()
|
PreferenceManager.getDefaultSharedPreferences(context).edit()
|
||||||
|
Reference in New Issue
Block a user