Search in sources :

Example 26 with MedicineReminder

use of m.co.rh.id.a_medic_log.base.entity.MedicineReminder in project a-medic-log by rh-id.

the class MedicineState method findMedicineReminderIndex.

private int findMedicineReminderIndex(MedicineReminder medicineReminder) {
    ArrayList<MedicineReminder> medicineReminders = getMedicineReminderList();
    int index = -1;
    int size = medicineReminders.size();
    for (int i = 0; i < size; i++) {
        MedicineReminder fromList = medicineReminders.get(i);
        if (fromList.id != null && fromList.id.equals(medicineReminder.id)) {
            index = i;
            break;
        }
    }
    return index;
}
Also used : MedicineReminder(m.co.rh.id.a_medic_log.base.entity.MedicineReminder)

Aggregations

MedicineReminder (m.co.rh.id.a_medic_log.base.entity.MedicineReminder)26 Serializable (java.io.Serializable)8 Activity (android.app.Activity)7 View (android.view.View)7 ViewGroup (android.view.ViewGroup)7 Button (android.widget.Button)7 AndroidSchedulers (io.reactivex.rxjava3.android.schedulers.AndroidSchedulers)7 R (m.co.rh.id.a_medic_log.R)7 StatefulViewProvider (m.co.rh.id.a_medic_log.app.provider.StatefulViewProvider)7 RxDisposer (m.co.rh.id.a_medic_log.app.rx.RxDisposer)7 MedicineState (m.co.rh.id.a_medic_log.base.state.MedicineState)7 StatefulView (m.co.rh.id.anavigator.StatefulView)7 RequireComponent (m.co.rh.id.anavigator.component.RequireComponent)7 Provider (m.co.rh.id.aprovider.Provider)7 MenuItem (android.view.MenuItem)6 Medicine (m.co.rh.id.a_medic_log.base.entity.Medicine)6 Context (android.content.Context)5 Editable (android.text.Editable)5 TextWatcher (android.text.TextWatcher)5 EditText (android.widget.EditText)5