@ Override protected void onVisibilityChanged ( View changedView , int visibility ) { super . onVisibilityChanged ( changedView , visibility ) ; if ( changedView != this ) { return ; } if ( visibility == View . VISIBLE ) { resumePresenter ( ) ; } else { pausePresenter ( ) ; } }
Initializes or stops LynxPresenter based on visibility changes . Doing this Lynx is not going to read your application Logcat if LynxView is not visible or attached .