Fix test after DetailActivity

This commit is contained in:
jacques 2020-05-03 22:45:50 +02:00
parent 97e6cbf409
commit 36211fdca0
2 changed files with 4 additions and 6 deletions

View file

@ -56,7 +56,6 @@ public class MedicamentDetailActivity extends AppCompatActivity {
getMedicamentChanges(); getMedicamentChanges();
setResult(1); setResult(1);
finish(); finish();
} }
}); });

View file

@ -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)]
}
} }
} }