diff options
| author | John Reck <jreck@google.com> | 2011-06-29 16:14:34 -0700 |
|---|---|---|
| committer | John Reck <jreck@google.com> | 2011-06-29 16:14:34 -0700 |
| commit | 8ac4290069aa077f86d9ae67d764157bc48587da (patch) | |
| tree | 39453887dfa4475a43fb0b7f809985f57b5cf72f /src/com | |
| parent | a4816530199095b8e7ad0ebd6ac9f22dff32ea2a (diff) | |
| download | packages_apps_Browser-8ac4290069aa077f86d9ae67d764157bc48587da.tar.gz packages_apps_Browser-8ac4290069aa077f86d9ae67d764157bc48587da.tar.bz2 packages_apps_Browser-8ac4290069aa077f86d9ae67d764157bc48587da.zip | |
Add a tab switcher button to phones
Bug: 4976834
Change-Id: I65477157ef3caed2b064e60fa1e8f701f6537535
Diffstat (limited to 'src/com')
| -rw-r--r-- | src/com/android/browser/TitleBarPhone.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/browser/TitleBarPhone.java b/src/com/android/browser/TitleBarPhone.java index 1fcaf4d85..528ea43ef 100644 --- a/src/com/android/browser/TitleBarPhone.java +++ b/src/com/android/browser/TitleBarPhone.java @@ -48,6 +48,7 @@ public class TitleBarPhone extends TitleBarBase implements OnFocusChangeListener private ImageButton mForward; private Drawable mStopDrawable; private Drawable mRefreshDrawable; + private View mTabSwitcher; public TitleBarPhone(Activity activity, UiController controller, PhoneUi ui, FrameLayout parent) { @@ -67,6 +68,8 @@ public class TitleBarPhone extends TitleBarBase implements OnFocusChangeListener mVoiceButton.setOnClickListener(this); mForward = (ImageButton) findViewById(R.id.forward); mForward.setOnClickListener(this); + mTabSwitcher = findViewById(R.id.tab_switcher); + mTabSwitcher.setOnClickListener(this); setFocusState(false); Resources res = context.getResources(); mStopDrawable = res.getDrawable(R.drawable.ic_stop_holo_dark); @@ -167,6 +170,8 @@ public class TitleBarPhone extends TitleBarBase implements OnFocusChangeListener if (web != null) { web.goForward(); } + } else if (v == mTabSwitcher) { + mBaseUi.onMenuKey(); } else { super.onClick(v); } |
