/** * Shows display channels picker dialog or displays an error toast if active channels have not yet * been introduced */ public void onClickedDisplayChannelsButton(View displayChannelsButton) { // CHECKS IF CHANNELS TO ACTIVATE ARE ALREADY FILLED if (newConfiguration.getActiveSensors() != null && newConfiguration.getActiveChannelsNumber() != 0) { showDisplayChannels(); } else { displayErrorToast(getString(R.string.nc_error_button_channels_to_display)); } }