1075 (increment == -1 &&
1076 child.getStartOffset() == retValue)) &&
1077 childIndex >= 0 && childIndex < v.getViewCount()) {
1078 // Reached the end of a view, make sure the next view
1079 // is a different direction.
1080 child = v.getView(childIndex);
1081 childBounds = v.getChildAllocation(childIndex, alloc);
1082 Position.Bias originalBias = biasRet[0];
1083 int nextPos = child.getNextVisualPositionFrom(
1084 -1, b, childBounds, direction, biasRet);
1085 if (biasRet[0] == b) {
1086 retValue = nextPos;
1087 }
1088 else {
1089 biasRet[0] = originalBias;
1090 }
1091 }
1092 }
1093 return retValue;
1094 }
1095 }
|
1075 (increment == -1 &&
1076 child.getStartOffset() == retValue)) &&
1077 childIndex >= 0 && childIndex < v.getViewCount()) {
1078 // Reached the end of a view, make sure the next view
1079 // is a different direction.
1080 child = v.getView(childIndex);
1081 childBounds = v.getChildAllocation(childIndex, alloc);
1082 Position.Bias originalBias = biasRet[0];
1083 int nextPos = child.getNextVisualPositionFrom(
1084 -1, b, childBounds, direction, biasRet);
1085 if (biasRet[0] == b) {
1086 retValue = nextPos;
1087 }
1088 else {
1089 biasRet[0] = originalBias;
1090 }
1091 }
1092 }
1093 return retValue;
1094 }
1095
1096 }
|