summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/TitleBar.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-04-30 14:32:03 -0700
committerMichael Kolb <kolby@google.com>2012-04-30 15:43:48 -0700
commit57059a8360e3b9872f4f6cbdaa8b5af4ac1c901d (patch)
treec629b5f4f6f8964b999d8ed694bbfef5baf03167 /src/com/android/browser/TitleBar.java
parent3c2f52d31086ecc738566f439ef6f15db7c6c058 (diff)
downloadpackages_apps_Browser-57059a8360e3b9872f4f6cbdaa8b5af4ac1c901d.zip
packages_apps_Browser-57059a8360e3b9872f4f6cbdaa8b5af4ac1c901d.tar.gz
packages_apps_Browser-57059a8360e3b9872f4f6cbdaa8b5af4ac1c901d.tar.bz2
Don't hide URL bar for tablets in portrait
Bug: 6420325 Change-Id: Ic3b0f4b99d831c31f349531d5c2b307543f1ed97
Diffstat (limited to 'src/com/android/browser/TitleBar.java')
-rw-r--r--src/com/android/browser/TitleBar.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/browser/TitleBar.java b/src/com/android/browser/TitleBar.java
index 9ec972b..479b62e 100644
--- a/src/com/android/browser/TitleBar.java
+++ b/src/com/android/browser/TitleBar.java
@@ -20,6 +20,7 @@ import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
import android.animation.ObjectAnimator;
import android.content.Context;
+import android.content.res.Configuration;
import android.content.res.Resources;
import android.view.LayoutInflater;
import android.view.View;
@@ -96,6 +97,16 @@ public class TitleBar extends RelativeLayout {
mSnapshotBar.setTitleBar(this);
}
+ @Override
+ protected void onConfigurationChanged(Configuration config) {
+ super.onConfigurationChanged(config);
+ if (config.orientation == Configuration.ORIENTATION_PORTRAIT) {
+ if (!mContext.getResources().getBoolean(R.bool.hide_title)) {
+ show();
+ }
+ }
+ }
+
public BaseUi getUi() {
return mBaseUi;
}
@@ -159,6 +170,7 @@ public class TitleBar extends RelativeLayout {
if (mUseQuickControls) {
this.setVisibility(View.GONE);
} else {
+ if (!mContext.getResources().getBoolean(R.bool.hide_title)) return;
if (!mSkipTitleBarAnimations) {
cancelTitleBarAnimation(false);
int visibleHeight = getVisibleTitleHeight();