private boolean isActivityMatching ( Class < ? extends Activity > activityClass , Activity currentActivity ) { if ( currentActivity != null && currentActivity . getClass ( ) . equals ( activityClass ) ) { return true ; } return false ; }
Compares Activity classes .