Ensure mExpanderPressed is accurate

It was not being set to false in the case where a non-header view was recycled
as a header view.
This commit is contained in:
Christopher Eby committed 2011-10-02 00:46:22 -05:00
1 parent 5a7e282a41
commit fa1c9d23eb
1 file changed
+1 -2
+1 -2
View File
@@ -264,8 +264,7 @@ public final class MediaView extends View {
@Override
public boolean onTouchEvent(MotionEvent event)
{
if (mExpandable && !mIsHeader)
mExpanderPressed = event.getX() > getWidth() - sExpander.getWidth() - 2 * sTextSize;
mExpanderPressed = mExpandable && !mIsHeader && event.getX() > getWidth() - sExpander.getWidth() - 2 * sTextSize;
return false;
}
}