package pl.srw.billcalculator;

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

/**
 * Created by Kamil Seweryn
 */
public class SettingsActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        getActionBar().setDisplayHomeAsUpEnabled(true);

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

    @Override
    public boolean onOptionsItemSelected(MenuItem item) {
        if (item.getItemId() == android.R.id.home) {
            onBackPressed();
            return true;
        }
        return super.onOptionsItemSelected(item);
    }
}

@@ -369,16 +369,62 @@
 true);%0A%0A
+        if (savedInstanceState == null) %7B%0A    
         
@@ -460,16 +460,20 @@
         
+    
 .beginTr
@@ -500,16 +500,20 @@
         
+ 
+   
 .replace
@@ -575,16 +575,20 @@
         
+    
 .commit(
@@ -586,24 +586,34 @@
  .commit();%0A
+        %7D%0A
     %7D%0A%0A    @

fix for closing dialog in settings activity