package fr.masciulli.drinks.activity;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

import fr.masciulli.drinks.R;

public class DrinkDetailActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_drink);
    }
}

@@ -87,16 +87,46 @@
 Bundle;%0A
+import android.view.MenuItem;%0A
 import a
@@ -397,16 +397,323 @@
 drink);%0A
+        getActionBar().setDisplayHomeAsUpEnabled(true);%0A    %7D%0A%0A    @Override%0A    public boolean onMenuItemSelected(int featureId, MenuItem item) %7B%0A        switch (item.getItemId()) %7B%0A            case android.R.id.home :%0A                finish();%0A                return true;%0A        %7D%0A        return false;%0A
     %7D%0A%7D%0A

Set display home as up