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 2011-10-02 00:46:22 -05:00
parent 5a7e282a41
commit fa1c9d23eb

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;
}
}