private boolean isDecorView ( View view ) { if ( view == null ) { return false ; } final String nameOfClass = view . getClass ( ) . getName ( ) ; return ( nameOfClass . equals ( "com.android.internal.policy.impl.PhoneWindow$DecorView" ) || nameOfClass . equals ( "com.android.internal.policy.impl.MultiPhoneWindow$MultiPhoneDecorView" ) || nameOfClass . equals ( "com.android.internal.policy.PhoneWindow$DecorView" ) ) ; }
Returns whether a view is a DecorView