Add GLView.isAttachedToRoot()

This commit is contained in:
seven332 committed 2016-02-20 16:08:21 +08:00
1 parent a6ed8a44e6
commit 383fc3b227
1 file changed
+4
@@ -208,6 +208,10 @@ public class GLView implements TouchOwner {
onDetachFromRoot();
}
public boolean isAttachedToRoot() {
return mRoot != null;
}
// Returns the number of children of the GLView.
public int getComponentCount() {
return mComponents == null ? 0 : mComponents.size();