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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user