package com.braintreepayments.demo;

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

import com.braintreepayments.demo.fragments.SettingsFragment;

public class SettingsActivity extends Activity {

    @SuppressWarnings("ConstantConditions")
    @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) {
            finish();
            return true;
        }
        return false;
    }
}

@@ -49,20 +49,17 @@
 oid.
-app.Activity
+os.Bundle
 ;%0Aim
@@ -67,33 +67,56 @@
 ort android.
-os.Bundle
+support.v7.app.AppCompatActivity
 ;%0Aimport and
@@ -237,16 +237,25 @@
 extends 
+AppCompat
 Activity
@@ -414,24 +414,24 @@
 nceState);%0A%0A
-
         getA
@@ -429,16 +429,23 @@
      get
+Support
 ActionBa

Fix crash in demo app settings