Buggy code:
public class BookPanel extends SplitPanel { private static final String LOG = "BookPanel" ; private ReaderActivity activity ; private static final String [ ] colsUpdate = new String [ ] { BookPageDB . COL_SCROLL_Y , BookPageDB . COL_SCROLLSYNC_METHOD , BookPageDB . COL_SCROLLSYNC_OFFSET , BookPageDB . COL_SCROLLSYNC_RATIO , BookPageDB . COL_LAST_OPENED } ; private static final String [ ] colsInsert = new String [ ] { BookPageDB . COL_BOOK_FILENAME , BookPageDB . COL_BOOK_TITLE , BookPageDB . COL_PAGE_FILENAME , BookPageDB . COL_PAGE_RELATIVE_PATH , BookPageDB . COL_SCROLL_Y , BookPageDB . COL_SCROLLSYNC_METHOD , BookPageDB . COL_SCROLLSYNC_OFFSET , BookPageDB . COL_SCROLLSYNC_RATIO , BookPageDB . COL_LAST_OPENED } ; public BookPanelState enumState = BookPanelState . books ; protected String displayedPage ; protected String displayedData ; private Float loadPositionY ; private ScrollSyncMethod loadScrollSyncMethod ; private Float loadScrollSyncOffset ; private Float loadScrollSyncRatio ; private Long loadedFromBookPageRowId ; private String [ ] displayedBookPageKey ; private boolean finishedRenderingContent = false ; private boolean firstRenderingAfterCreatingActivity = false ; protected SelectionWebView webView ; private BookPanelOnTouchListener onTouchListener ; public BookPanel ( Governor governor , PanelHolder panelHolder , int position ) { } @ Override public boolean selfCheck ( boolean creatingActivity ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ SuppressLint ( "SetJavaScriptEnabled" ) @ Override public void onActivityCreated ( Bundle saved ) { } public String getViewedPage ( ) { } public SelectionWebView getWebView ( ) { } @ Override public void updatePosition ( int position ) { } public void loadData ( String data , String baseUrl ) { } public void loadPage ( String path ) { } public void saveBookPageToDb ( ) { } public void loadBookPageFromDb ( BookPage latestBookPage ) { } private float getPositionYAsFloat ( ) { } public void onFinishedRenderingContent ( ) { Log . d ( BookPanel . LOG , ( ( ( "BookPanel.onFinishedRenderingContent,<seq2seq4repair_space>loadY:<seq2seq4repair_space>" + ( loadPositionY ) ) + ",<seq2seq4repair_space>contentHeight:<seq2seq4repair_space>" ) + ( webView . getContentHeight ( ) ) ) ) ; if ( ( loadPositionY ) != null ) { webView . setScrollY ( Math . round ( ( ( loadPositionY ) * ( webView . getContentHeight ( ) ) ) ) ) ; } if ( ( ( ( loadScrollSyncMethod ) != null ) && ( ( loadScrollSyncOffset ) != null ) ) && ( ( loadScrollSyncRatio ) != null ) ) { webView . initializeScrollSyncData ( loadScrollSyncMethod , loadScrollSyncOffset , loadScrollSyncRatio ) ; } else { if ( firstRenderingAfterCreatingActivity ) { webView . loadStateWhenContentRendered ( ) ; } } finishedRenderingContent = true ; <START_BUG> if ( governor . isScrollSync ( ) ) { <END_BUG> BookPanel sister = panelHolder . getSisterBookPanel ( ) ; if ( ( sister != null ) && ( sister . finishedRenderingContent ) ) { if ( ! ( webView . areScrollSyncDataCongruentWithSister ( ) ) ) { governor . setScrollSync ( false , true ) ; Toast . makeText ( activity , Deactivated_scroll_sync , LENGTH_SHORT ) . show ( ) ; } } } } @ Override public void saveState ( Editor editor ) { } public void loadScrollPosition ( SharedPreferences preferences ) { } @ Override public void loadState ( SharedPreferences preferences , boolean creatingActivity ) { } public void onRuntimeChange ( ) { } }

Fix:
if ( ( governor . isScrollSync ( ) ) && ( ( enumState ) == ( BookPanelState . books ) ) ) {