private void showInstruction(int index) { if (isPaging) { final Instruction instruction = instructions.get(index); pagerPositionWhenPaused = index; Logger.logToDatabase(act, db, ROUTE_TAG, "paging to instruction: " + instruction.toString()); pager.setCurrentItem(index); debugView.setClosestInstruction(instruction); } else { pagerPositionWhenPaused = index; } }