package cl.monsoon.s1next.activity;

import android.os.Bundle;

import cl.monsoon.s1next.R;
import cl.monsoon.s1next.fragment.SettingsFragment;

public final class SettingsActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity);

        setNavDrawerEnabled(false);
        getSupportActionBar().setDisplayHomeAsUpEnabled(true);

        if (savedInstanceState == null) {
            getFragmentManager().beginTransaction()
                    .replace(R.id.frame_layout, new SettingsFragment())
                    .commit();
        }
    }
}

@@ -55,16 +55,46 @@
 .Bundle;
+%0Aimport android.view.MenuItem;
 %0A%0Aimport
@@ -699,11 +699,292 @@
  %7D%0A    %7D
+%0A%0A    @Override%0A    public boolean onOptionsItemSelected(MenuItem item) %7B%0A        switch (item.getItemId()) %7B%0A            case android.R.id.home:%0A                super.onBackPressed();%0A%0A                return true;%0A        %7D%0A%0A        return super.onOptionsItemSelected(item);%0A    %7D
 %0A%7D%0A

Fix IllegalArgumentException when using navigation up buttom in SettingsActivity