use 1 as default gradient end position on Android

This commit is contained in:
Dmitry Gladkov 2016-01-18 20:27:07 +02:00
parent 0fd376a004
commit b63f00ab0b
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ public class LinearGradientView extends View {
mEndPos= new float[]{(float) endPos.getDouble(0), (float) endPos.getDouble(1)};
} catch (Exception e) {
//default to full height.
mEndPos = new float[]{0, getMeasuredHeight()};
mEndPos = new float[]{0, 1};
}
mSize = new int[]{0, 0};
drawGradient();