[android] Fix text onPress handling, #941

This commit is contained in:
Mikael Sand
2019-02-15 23:19:26 +02:00
parent b4c8985b81
commit bc6f46c713
@@ -94,17 +94,16 @@ class TSpanView extends TextView {
}
if (mContent == null) {
mPath = getGroupPath(canvas, paint);
return mPath;
return getGroupPath(canvas, paint);
}
setupTextPath();
pushGlyphContext();
mPath = getLinePath(mContent, paint, canvas);
Path path = getLinePath(mContent, paint, canvas);
popGlyphContext();
return mPath;
return path;
}
double getSubtreeTextChunksTotalAdvance(Paint paint) {
@@ -1056,6 +1055,9 @@ class TSpanView extends TextView {
if (mRegion == null && mFillPath != null) {
mRegion = getRegion(mFillPath);
}
if (mRegion == null && mPath != null) {
mRegion = getRegion(mPath);
}
if (mStrokeRegion == null && mStrokePath != null) {
mStrokeRegion = getRegion(mStrokePath);
}