diff options
author | Michael Kolb <kolby@google.com> | 2012-05-16 12:58:05 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2012-05-16 12:58:05 -0700 |
commit | af63dbadb04a963f3513bff2f6ec5f34d31c24d6 (patch) | |
tree | 4ccb2831892262546060c27df468286126127c0a /src/com/android/browser/PieControl.java | |
parent | 234eadcf7d0dbf2d24f92c24f40343d518f6fe3a (diff) | |
download | packages_apps_Browser-af63dbadb04a963f3513bff2f6ec5f34d31c24d6.zip packages_apps_Browser-af63dbadb04a963f3513bff2f6ec5f34d31c24d6.tar.gz packages_apps_Browser-af63dbadb04a963f3513bff2f6ec5f34d31c24d6.tar.bz2 |
Toggle QC request desktop icon
Bug: 6493939
Change-Id: I7787ab37b57fce8ea2332fefd1ace420357000ec
Diffstat (limited to 'src/com/android/browser/PieControl.java')
-rw-r--r-- | src/com/android/browser/PieControl.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/browser/PieControl.java b/src/com/android/browser/PieControl.java index 7c4291c..a33f8c6 100644 --- a/src/com/android/browser/PieControl.java +++ b/src/com/android/browser/PieControl.java @@ -118,6 +118,15 @@ public class PieControl implements PieMenu.PieController, OnClickListener { if (tab != null) { mForward.setEnabled(tab.canGoForward()); } + WebView view = mUiController.getCurrentWebView(); + if (view != null) { + ImageView icon = (ImageView) mRDS.getView(); + if (mUiController.getSettings().hasDesktopUseragent(view)) { + icon.setImageResource(R.drawable.ic_mobile); + } else { + icon.setImageResource(R.drawable.ic_desktop_holo_dark); + } + } return true; } |