mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-05 07:59:28 +00:00
[android] Fix text onPress handling, #941
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user