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();
|
||||
setResult(1);
|
||||
|
||||
finish();
|
||||
}
|
||||
});
|
||||
|
|
|
@ -320,13 +320,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)]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void setupRecyclerView(@NonNull RecyclerView recyclerView) {
|
||||
recyclerView.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext()));
|
||||
|
|
Loading…
Reference in a new issue