| 68 | } |
| 69 | |
| 70 | void BugChild::switchChild(Object* sender) |
| 71 | { |
| 72 | if (parent1->getChildrenCount() > 0) |
| 73 | { |
| 74 | parent1->removeChild(child, false); |
| 75 | parent2->addChild(child); |
| 76 | AXLOGD("Child attached to parent2"); |
| 77 | } |
| 78 | else |
| 79 | { |
| 80 | parent2->removeChild(child, false); |
| 81 | parent1->addChild(child); |
| 82 | AXLOGD("Child attached to parent1"); |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | bool BugCameraMask::init() |
| 87 | { |
nothing calls this directly
no test coverage detected