| 39 | @Keep |
| 40 | class ViewRef(view: View, strong: Boolean, val support: ViewRefSupport): TypedRef<View>(view, strong) { |
| 41 | |
| 42 | fun onMovedToContext(valdiContext: ValdiContext, viewNodeId: Int) { |
| 43 | val view = get() ?: return |
| 44 | |
| 45 | ViewUtils.setValdiContext(view, valdiContext) |
| 46 | ViewUtils.setViewNodeId(view, viewNodeId) |
| 47 | |
| 48 | if (view is ValdiContextMovedListener) { |
| 49 | view.onMovedToValdiContext(valdiContext) |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | fun insertChild(childViewRef: ViewRef, viewIndex: Int) { |
no test coverage detected