diff --git a/Cours_Construisez_une_interface_utilisateur_flexible_et_adaptative/Partie 1/ToolMyBar/app/src/main/java/com/openclassrooms/toolmybar/MainActivity.java b/Cours_Construisez_une_interface_utilisateur_flexible_et_adaptative/Partie 1/ToolMyBar/app/src/main/java/com/openclassrooms/toolmybar/MainActivity.java index 54e3dc4..d7dc2c2 100644 --- a/Cours_Construisez_une_interface_utilisateur_flexible_et_adaptative/Partie 1/ToolMyBar/app/src/main/java/com/openclassrooms/toolmybar/MainActivity.java +++ b/Cours_Construisez_une_interface_utilisateur_flexible_et_adaptative/Partie 1/ToolMyBar/app/src/main/java/com/openclassrooms/toolmybar/MainActivity.java @@ -72,7 +72,7 @@ public void onClick(View v) { // ---- private void launchDetailActivity(){ - Intent myIntent = new Intent(MainActivity.this, DetailActivity.class); - this.startActivity(myIntent); + //code in one line + this.startActivity(new Intent(MainActivity.this,DetailActivity.class)); } }