am b4c547a5: Fix possible NPE in AbsListView.positionSelector().
Merge commit 'b4c547a56caebb5900c132ec9d5ce953f89de14f' into eclair-plus-aosp * commit 'b4c547a56caebb5900c132ec9d5ce953f89de14f': Fix possible NPE in AbsListView.positionSelector().
This commit is contained in:
@@ -1150,7 +1150,7 @@ public class GridView extends AbsListView {
|
||||
mSelectedTop = sel.getTop();
|
||||
} else if (mTouchMode > TOUCH_MODE_DOWN && mTouchMode < TOUCH_MODE_SCROLL) {
|
||||
View child = getChildAt(mMotionPosition - mFirstPosition);
|
||||
positionSelector(child);
|
||||
if (child != null) positionSelector(child);
|
||||
} else {
|
||||
mSelectedTop = 0;
|
||||
mSelectorRect.setEmpty();
|
||||
|
||||
@@ -1567,7 +1567,7 @@ public class ListView extends AbsListView {
|
||||
} else {
|
||||
if (mTouchMode > TOUCH_MODE_DOWN && mTouchMode < TOUCH_MODE_SCROLL) {
|
||||
View child = getChildAt(mMotionPosition - mFirstPosition);
|
||||
positionSelector(child);
|
||||
if (child != null) positionSelector(child);
|
||||
} else {
|
||||
mSelectedTop = 0;
|
||||
mSelectorRect.setEmpty();
|
||||
|
||||
Reference in New Issue
Block a user