void (boolean enableAdaptiveChoices) { boolean reenable = false; if (choicesHandler != null) { if (enableAdaptiveChoices == isAdaptiveChoices()) { return; } enableNotifications(false); if (choicesHandler != null) { choicesHandler.setInterrupted(true); } reenable = true; } if (enableAdaptiveChoices) { choicesHandler = new AdaptiveChoicesHandler(this); } else { choicesHandler = new NonAdaptiveChoicesHandler(this); } if (reenable) { enableNotifications(true); } }