mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
factorize a non-use method (after finding another method
This commit is contained in:
parent
0172379702
commit
b3079837d3
1 changed files with 11 additions and 0 deletions
|
@ -59,4 +59,15 @@ public class Utils {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void rearrangePrescriptionList(List<Prescription> prescriptionList) {
|
||||||
|
Prescription currentPrescription = null;
|
||||||
|
for (int i=0 ; i < prescriptionList.size(); i++ ){
|
||||||
|
currentPrescription = prescriptionList.get(i);
|
||||||
|
if (currentPrescription.getTake() == 0) {
|
||||||
|
prescriptionList.remove(currentPrescription);
|
||||||
|
prescriptionList.add(prescriptionList.size(), currentPrescription);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue