From cc6e33027f5be7e55ab5f7167aafedef8492b7ea Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Tue, 21 Jul 2015 12:29:34 -0700 Subject: Make permission request view intercept clicks Bug: 22631821 Change-Id: I3f2ef3f0e1d16ec406e1bed7f6b4c980e17b058f --- src/com/android/dialer/widget/EmptyContentView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/com/android/dialer/widget/EmptyContentView.java b/src/com/android/dialer/widget/EmptyContentView.java index 2f5e0d9d7..f248967de 100644 --- a/src/com/android/dialer/widget/EmptyContentView.java +++ b/src/com/android/dialer/widget/EmptyContentView.java @@ -61,6 +61,8 @@ public class EmptyContentView extends LinearLayout implements View.OnClickListen final LayoutInflater inflater = (LayoutInflater) getContext().getSystemService( Context.LAYOUT_INFLATER_SERVICE); inflater.inflate(R.layout.empty_content_view, this); + // Don't let touches fall through the empty view. + setClickable(true); mImageView = (ImageView) findViewById(R.id.emptyListViewImage); mDescriptionView = (TextView) findViewById(R.id.emptyListViewMessage); mActionView = (TextView) findViewById(R.id.emptyListViewAction); -- cgit v1.2.3