diff options
Diffstat (limited to 'vdrmanager')
-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); + } +} |