diff options
author | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-12-30 21:46:42 +0100 |
---|---|---|
committer | Dominik Schürmann <dominik@dominikschuermann.de> | 2013-12-30 21:46:42 +0100 |
commit | 1be368092ef0b05244108a1071bf8adad5db91ad (patch) | |
tree | 44e4c171c652f32dfaa9b97cbd138eb0e65b0ad0 /OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java | |
parent | 2c0b2e356b3e1bef3565d4744256bc51768e0c3a (diff) | |
download | open-keychain-1be368092ef0b05244108a1071bf8adad5db91ad.tar.gz open-keychain-1be368092ef0b05244108a1071bf8adad5db91ad.tar.bz2 open-keychain-1be368092ef0b05244108a1071bf8adad5db91ad.zip |
Fix custom action bars for Android 4.4
Diffstat (limited to 'OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java')
-rw-r--r-- | OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java index dcac2df08..fee120273 100644 --- a/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java +++ b/OpenPGP-Keychain/src/org/sufficientlysecure/keychain/helper/ActionBarHelper.java @@ -81,8 +81,9 @@ public class ActionBarHelper { cancelOnClickListener); // Show the custom action bar view and hide the normal Home icon and title. - actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM, ActionBar.DISPLAY_SHOW_CUSTOM - | ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_TITLE); + actionBar.setDisplayShowTitleEnabled(false); + actionBar.setDisplayShowHomeEnabled(false); + actionBar.setDisplayShowCustomEnabled(true); actionBar.setCustomView(customActionBarView, new ActionBar.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); } @@ -107,8 +108,9 @@ public class ActionBarHelper { doneOnClickListener); // Show the custom action bar view and hide the normal Home icon and title. - actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM, ActionBar.DISPLAY_SHOW_CUSTOM - | ActionBar.DISPLAY_SHOW_HOME | ActionBar.DISPLAY_SHOW_TITLE); + actionBar.setDisplayShowTitleEnabled(false); + actionBar.setDisplayShowHomeEnabled(false); + actionBar.setDisplayShowCustomEnabled(true); actionBar.setCustomView(customActionBarView); } |