Add GLView.isAttachedToRoot()
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user