Change some TODO comments

This commit is contained in:
Jacques Foucry 2020-01-26 22:56:12 +01:00
parent 9a1e25a356
commit 460dca9410

View file

@ -60,6 +60,8 @@ public class MedicamentListActivity extends AppCompatActivity {
* Whether or not the activity is in two-pane mode, i.e. running on a tablet
* device.
*/
// TODO: Change DEMO/DBDEMO form statci to non-static. In order to create fake data at only at launchtime
private boolean mTwoPane;
final static Boolean DEMO = true;
final static Boolean DBDEMO = true;
@ -319,10 +321,12 @@ public class MedicamentListActivity extends AppCompatActivity {
// Handle cancel
Toast.makeText(context, "Scan annulé", Toast.LENGTH_LONG).show();
}
else {
else if (requestCode == 1 ){
Toast.makeText(context, "back from detail", Toast.LENGTH_SHORT).show();
// TODO : Si requestCode=1 -> Sauvegarde du medoc dans la base et
// TODO : raffraichissement de la base.[Call updateDrug(medicament)]
}
} // TODO : Si requestCode=1 -> Sauvegarde du medoc dans la base et raffraichissement de la base.
}
}
private void setupRecyclerView(@NonNull RecyclerView recyclerView) {