diff options
author | Michael Kolb <kolby@google.com> | 2011-01-12 10:57:04 -0800 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-01-12 14:33:30 -0800 |
commit | 2516c5da22cecb71c87972ea58401aab523c2a7a (patch) | |
tree | 6270debb291414236a5edece508a7fb796810708 /src/com/android/browser/CombinedBookmarkHistoryView.java | |
parent | fac822d39e1e608618e0dfbda037edeadac154bb (diff) | |
download | packages_apps_Browser-2516c5da22cecb71c87972ea58401aab523c2a7a.zip packages_apps_Browser-2516c5da22cecb71c87972ea58401aab523c2a7a.tar.gz packages_apps_Browser-2516c5da22cecb71c87972ea58401aab523c2a7a.tar.bz2 |
block touch events in ComboPage
http://b/issue?id=3337606
Drop touch events received by the ComboPage background
Change-Id: I858bfb6d7fb1f1ab81fefd28c39f3439ac000525
Diffstat (limited to 'src/com/android/browser/CombinedBookmarkHistoryView.java')
-rw-r--r-- | src/com/android/browser/CombinedBookmarkHistoryView.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/com/android/browser/CombinedBookmarkHistoryView.java b/src/com/android/browser/CombinedBookmarkHistoryView.java index 426b34d..0f12353 100644 --- a/src/com/android/browser/CombinedBookmarkHistoryView.java +++ b/src/com/android/browser/CombinedBookmarkHistoryView.java @@ -29,8 +29,10 @@ import android.os.AsyncTask; import android.os.Bundle; import android.provider.Browser; import android.view.LayoutInflater; +import android.view.MotionEvent; import android.view.View; import android.view.View.OnClickListener; +import android.view.View.OnTouchListener; import android.view.ViewGroup; import android.webkit.WebIconDatabase; import android.webkit.WebIconDatabase.IconListener; @@ -46,7 +48,7 @@ interface BookmarksHistoryCallbacks { } public class CombinedBookmarkHistoryView extends LinearLayout - implements OnClickListener { + implements OnClickListener, OnTouchListener { final static String STARTING_FRAGMENT = "fragment"; @@ -115,6 +117,7 @@ public class CombinedBookmarkHistoryView extends LinearLayout mActivity = activity; mExtras = extras; View v = LayoutInflater.from(activity).inflate(R.layout.bookmarks_history, this); + v.setOnTouchListener(this); Resources res = activity.getResources(); // setDefaultKeyMode(DEFAULT_KEYS_SEARCH_LOCAL); @@ -258,4 +261,13 @@ public class CombinedBookmarkHistoryView extends LinearLayout } return false; } + + /** + * capture touch events to prevent them from going to the underlying + * WebView + */ + @Override + public boolean onTouch(View v, MotionEvent event) { + return true; + } } |