diff options
Diffstat (limited to 'src/main/java/de/pixart/messenger/ui/ActionBarActivity.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/ActionBarActivity.java | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/ActionBarActivity.java b/src/main/java/de/pixart/messenger/ui/ActionBarActivity.java new file mode 100644 index 000000000..997edaac3 --- /dev/null +++ b/src/main/java/de/pixart/messenger/ui/ActionBarActivity.java @@ -0,0 +1,13 @@ +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) { + if (actionBar != null) { + actionBar.setHomeButtonEnabled(true); + actionBar.setDisplayHomeAsUpEnabled(true); + } + } +} |