diff options
author | lado <herrlado@gmail.com> | 2012-01-22 02:55:39 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2012-01-22 02:55:39 +0100 |
commit | 7d620b2f3223b53ba3585494bee5c69bb1cc3d31 (patch) | |
tree | 25ff5ac993a348f3c72b5a3691d57df8ce7da131 | |
parent | 24e7980ebeaca1f8b65178b6b9075ca78f306861 (diff) | |
download | vdr-manager-7d620b2f3223b53ba3585494bee5c69bb1cc3d31.tar.gz vdr-manager-7d620b2f3223b53ba3585494bee5c69bb1cc3d31.tar.bz2 |
action bar stuff
-rw-r--r-- | vdrmanager/src/de/bjusystems/vdrmanager/gui/ICSBaseActivity.java | 19 |
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); + } +} |