equals method modified and hashcode added to ActivityLifecycleCallbacksWrapper