mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Corrections mineures
This commit is contained in:
parent
d3ecc6cc0b
commit
26cccc7a7e
1 changed files with 2 additions and 2 deletions
|
@ -462,7 +462,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
@Override
|
||||
public void onClick(View v) {
|
||||
Medicament medicamentCourant = mValues.get(position);
|
||||
if (mTwoPane) {
|
||||
if (mTwoPane) { // This part is used on tablets
|
||||
Bundle arguments = new Bundle();
|
||||
arguments.putSerializable("medicament", medicamentCourant);
|
||||
MedicamentDetailFragment fragment = new MedicamentDetailFragment();
|
||||
|
@ -470,7 +470,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
getSupportFragmentManager().beginTransaction()
|
||||
.replace(R.id.medicament_detail_container, fragment)
|
||||
.commit();
|
||||
} else {
|
||||
} else { // This part is used on phones
|
||||
Context context = v.getContext();
|
||||
Intent intent = new Intent(context, MedicamentDetailActivity.class);
|
||||
intent.putExtra("medicament", medicamentCourant);
|
||||
|
|
Loading…
Reference in a new issue