Fixes to title bar using top controls

- Do not differentiate between title bar in fixed vs auto-hide mode
  using different android layouts. Use top controls to always show
  titlebar for fixed titlebar.
- Always show the titlebar when page is being loaded even if the user
  scrolls during the page load.
- Fixes the jankiness seen in fixed titlebar mode when user navigates
  between webpages.
- Reaffirm top controls when user switches between fixed and auto-hide
  titlebar mode.

Change-Id: I2531695f34e725ae444f6159645c7557dec69fab
diff --git a/src/com/android/browser/BaseUi.java b/src/com/android/browser/BaseUi.java
index fbb5ad0..1ea1460 100644
--- a/src/com/android/browser/BaseUi.java
+++ b/src/com/android/browser/BaseUi.java
@@ -819,8 +819,8 @@
             } else {
                 mTitleBar.setEnabled(true);
             }
-
-            mTitleBar.setTranslationY(topControlsOffsetYPix);
+            if (!mTitleBar.isFixed() && !isLoading())
+                mTitleBar.setTranslationY(topControlsOffsetYPix);
         }
     }
 
@@ -898,10 +898,6 @@
 
     }
 
-    public void addFixedTitleBar(View view) {
-        mFixedTitlebarContainer.addView(view);
-    }
-
     public void setContentViewMarginTop(int margin) {
         LinearLayout.LayoutParams params =
                 (LinearLayout.LayoutParams) mContentView.getLayoutParams();