mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-08 09:37:21 +08:00
Properly invalidate FlatViewGroup when hotspot Drawable invalidates
Summary: I lost FlatViewGroup.verifyDrawable(Drawable) method during one of the rebases. Re-adding it now because hotspot drawable is not working without it. Reviewed By: ahmedre Differential Revision: D2772460
This commit is contained in:
committed by
Ahmed El-Helw
parent
98604485c4
commit
f738b598d8
@@ -122,6 +122,11 @@ import com.facebook.react.uimanager.ReactCompoundView;
|
||||
// nothing to do here
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean verifyDrawable(Drawable who) {
|
||||
return who == mHotspot || super.verifyDrawable(who);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onAttachedToWindow() {
|
||||
if (mIsAttached) {
|
||||
|
||||
Reference in New Issue
Block a user