package de.pixart.messenger.ui; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; public abstract class ActionBarActivity extends AppCompatActivity { public static void configureActionBar(ActionBar actionBar) { configureActionBar(actionBar, true); } public static void configureActionBar(ActionBar actionBar, boolean upNavigation) { if (actionBar != null) { actionBar.setHomeButtonEnabled(upNavigation); actionBar.setDisplayHomeAsUpEnabled(upNavigation); } } }