package de.christinecoenen.code.zapp;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;

import com.github.porokoro.paperboy.ViewTypes;
import com.github.porokoro.paperboy.builders.PaperboyChainBuilder;

public class ChangelogActivity extends AppCompatActivity {

	public static Intent getStartIntent(Context context) {
		return new Intent(context, ChangelogActivity.class);
	}

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

		ActionBar actionBar = getSupportActionBar();
		if (actionBar != null) {
			actionBar.setHomeButtonEnabled(true);
			actionBar.setDisplayHomeAsUpEnabled(true);
		}

		if (savedInstanceState == null) {
			Fragment fragment = new PaperboyChainBuilder(this)
					.viewType(ViewTypes.HEADER)
					.buildFragment();

			getSupportFragmentManager()
					.beginTransaction()
					.add(R.id.activity_changelog, fragment)
					.commit();
		}
	}
}

@@ -165,49 +165,8 @@
 nt;%0A
-import android.support.v7.app.ActionBar;%0A
 impo
@@ -656,174 +656,8 @@
 );%0A%0A
-%09%09ActionBar actionBar = getSupportActionBar();%0A%09%09if (actionBar != null) %7B%0A%09%09%09actionBar.setHomeButtonEnabled(true);%0A%09%09%09actionBar.setDisplayHomeAsUpEnabled(true);%0A%09%09%7D%0A%0A
 %09%09if

Remove unnecessary call to action bar