2018-03-11 18:09:35 +00:00
|
|
|
package eu.siacs.conversations.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) {
|
2018-10-23 19:25:38 +00:00
|
|
|
configureActionBar(actionBar, true);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void configureActionBar(ActionBar actionBar, boolean upNavigation) {
|
2018-03-11 18:09:35 +00:00
|
|
|
if (actionBar != null) {
|
2018-10-23 19:25:38 +00:00
|
|
|
actionBar.setHomeButtonEnabled(upNavigation);
|
|
|
|
actionBar.setDisplayHomeAsUpEnabled(upNavigation);
|
2018-03-11 18:09:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|