@Override protected void onPostExecute(SocketResult result) { result.makeToastAndLog( activity.getString(R.string.downloaded_channel_choices), activity.getString(R.string.failed_to_download_channel_choices), activity, LOG_TAG); if (result.equals(SocketResult.SUCCESS)) activity.onUpdated(); else { activity.setResult(Activity.RESULT_CANCELED); activity.finish(); } }