@Override public void onImportAllFinished(ReceiveResult result) { if (result.isSuccess()) { if (!result.isCancel()) { Toast.makeText(this, R.string.activity_main_netshare_import_success, Toast.LENGTH_LONG) .show(); } } else { Toast.makeText(this, R.string.activity_main_netshare_import_fail, Toast.LENGTH_LONG).show(); } downloadView.setVisibility(View.GONE); initialize(); }
@Override public void onTimeSet(TimePicker timePicker, int hours, int minutes) { Toast.makeText( getSupportActivity(), String.format("Set time: %1$d:%2$d", hours, minutes), Toast.LENGTH_SHORT) .show(); }
@Override public void onDownloadTickCheckFinished(DownloadTickCheckResult result) { downloadView.setVisibility(View.GONE); if (!result.isSuccess()) { Toast.makeText(this, R.string.activity_main_netshare_import_fail, Toast.LENGTH_LONG).show(); } if (result.isSuccess() && result.isShouldRefresh()) { ImportAllTask task = new ImportAllTask(this, this); task.execute(); } else { initialize(); } }