summaryrefslogtreecommitdiff
path: root/vdrmanager
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2012-01-22 02:55:39 +0100
committerlado <herrlado@gmail.com>2012-01-22 02:55:39 +0100
commit7d620b2f3223b53ba3585494bee5c69bb1cc3d31 (patch)
tree25ff5ac993a348f3c72b5a3691d57df8ce7da131 /vdrmanager
parent24e7980ebeaca1f8b65178b6b9075ca78f306861 (diff)
downloadvdr-manager-7d620b2f3223b53ba3585494bee5c69bb1cc3d31.tar.gz
vdr-manager-7d620b2f3223b53ba3585494bee5c69bb1cc3d31.tar.bz2
action bar stuff
Diffstat (limited to 'vdrmanager')
-rw-r--r--vdrmanager/src/de/bjusystems/vdrmanager/gui/ICSBaseActivity.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/vdrmanager/src/de/bjusystems/vdrmanager/gui/ICSBaseActivity.java b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ICSBaseActivity.java
new file mode 100644
index 0000000..9f4f2b1
--- /dev/null
+++ b/vdrmanager/src/de/bjusystems/vdrmanager/gui/ICSBaseActivity.java
@@ -0,0 +1,19 @@
+package de.bjusystems.vdrmanager.gui;
+
+import android.app.ActionBar;
+import android.app.Activity;
+import android.os.Build;
+
+public abstract class ICSBaseActivity extends Activity{
+
+ public void initActionBar() {
+ int api = Build.VERSION.SDK_INT;
+ if (api < 14) {
+ return;
+ }
+
+ ActionBar actionBar = getActionBar();
+ //this is since 14 enabled
+ actionBar.setHomeButtonEnabled(true);
+ }
+}