mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-17 18:41:37 +01:00
Fix test after DetailActivity
This commit is contained in:
parent
97e6cbf409
commit
36211fdca0
2 changed files with 4 additions and 6 deletions
|
@ -56,7 +56,6 @@ public class MedicamentDetailActivity extends AppCompatActivity {
|
||||||
|
|
||||||
getMedicamentChanges();
|
getMedicamentChanges();
|
||||||
setResult(1);
|
setResult(1);
|
||||||
|
|
||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -320,11 +320,10 @@ public class MedicamentListActivity extends AppCompatActivity {
|
||||||
// Handle cancel
|
// Handle cancel
|
||||||
Toast.makeText(context, "Scan annulé", Toast.LENGTH_LONG).show();
|
Toast.makeText(context, "Scan annulé", Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
else {
|
} else if (requestCode == 1){
|
||||||
Toast.makeText(context, "back from detail", Toast.LENGTH_SHORT).show();
|
Toast.makeText(context, "back from detail", Toast.LENGTH_SHORT).show();
|
||||||
// TODO : Si requestCode=1 -> Sauvegarde du medoc dans la base et
|
// TODO : Si requestCode=1 -> Sauvegarde du medoc dans la base et
|
||||||
// TODO : raffraichissement de la base.[Call updateDrug(medicament)]
|
// TODO : raffraichissement de la base.[Call updateDrug(medicament)]
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue