From 6a633702ee9e1802d7762cb634682025e8aef82e Mon Sep 17 00:00:00 2001 From: Amritach222 <47746651+Amritach222@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:57:22 +0545 Subject: [PATCH] Update MainActivity.java --- .../main/java/com/openclassrooms/toolmybar/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); } }