package fr.masciulli.drinks.activity;

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

import fr.masciulli.drinks.fragment.SettingsFragment;

public class SettingsActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        getFragmentManager().beginTransaction()
                .replace(android.R.id.content, new SettingsFragment())
                .commit();
    }
}

@@ -86,16 +86,46 @@
 .Bundle;
+%0Aimport android.view.MenuItem;
 %0A%0Aimport
@@ -483,16 +483,324 @@
 ommit();
+%0A%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

Make SettingsActivity closable