diff options
| author | Michael Kolb <kolby@google.com> | 2011-07-11 15:26:47 -0700 |
|---|---|---|
| committer | Michael Kolb <kolby@google.com> | 2011-07-11 16:06:56 -0700 |
| commit | 017ffabc8af29b0cf14fecc6aad4a61acb8373a2 (patch) | |
| tree | ad684a56d9fbcd844fbbf9ea06b787acb6d1e90f /src/com/android/browser/PhoneUi.java | |
| parent | 0241e7556501caae1f57d2bdf3677d7e4a619eb0 (diff) | |
| download | packages_apps_Browser-017ffabc8af29b0cf14fecc6aad4a61acb8373a2.tar.gz packages_apps_Browser-017ffabc8af29b0cf14fecc6aad4a61acb8373a2.tar.bz2 packages_apps_Browser-017ffabc8af29b0cf14fecc6aad4a61acb8373a2.zip | |
Add overflow menu to title bar
Bug: 5011697
Change-Id: Idcd9ddc2883caa0ee0513300b8322af1c6d89423
Diffstat (limited to 'src/com/android/browser/PhoneUi.java')
| -rw-r--r-- | src/com/android/browser/PhoneUi.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com/android/browser/PhoneUi.java b/src/com/android/browser/PhoneUi.java index 20c90f6e1..d1db57860 100644 --- a/src/com/android/browser/PhoneUi.java +++ b/src/com/android/browser/PhoneUi.java @@ -183,6 +183,18 @@ public class PhoneUi extends BaseUi { return mTitleBar; } + /** + * Suggest to the UI that the title bar can be hidden. The UI will then + * decide whether or not to hide based off a number of factors, such + * as if the user is editing the URL bar or if the page is loading + */ + @Override + public void suggestHideTitleBar() { + if (!isLoading() && !isEditingUrl() && !mTitleBar.isMenuShowing()) { + hideTitleBar(); + } + } + // active tabs page @Override |
