@OnActivityResult(RESULT_LABEL) protected void onResultLabel(int code, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) { if (code == RESULT_OK) { modifyData.labels = labels; editFragment.updateLabels(modifyData.labels); previewFragment.updateLabels(modifyData.labels); labelsHasChanged = true; saveLabelsIfCancel(); } }
@OnActivityResult(RESULT_PICK_COLOR) void onResultPickColor(int result, @OnActivityResult.Extra int resultData) { if (result == RESULT_OK) { generateColor = resultData; updateColorPreview(); } }
@OnActivityResult(RESULT_MODIFY) void onResultModify(int result, @OnActivityResult.Extra TopicLabelObject resultData) { if (result == RESULT_OK) { if (allLabels.containsKey(currentLabelId)) { TopicLabelObject topicLabelObject = allLabels.get(currentLabelId); topicLabelObject.name = resultData.name; topicLabelObject.color = resultData.color; } updateList(); } unlockViews(); }
@OnActivityResult(RESULT_PICK_COLOR) void onResultPickColor(int result, @OnActivityResult.Extra int resultData) { if (result == RESULT_OK) { labelObject.color = resultData; updateColorPreview(); } }
@OnActivityResult(RESULT_RESUSE_REFRESOURCE) void resultRefResource(int resultCode, @OnActivityResult.Extra ArrayList<RefResourceObject> resultData) { if (resultCode == RESULT_OK) { refResourceList = resultData; updateRefResourceUI(); } }
@OnActivityResult(RESULT_EDIT) void onResultEdit(int resultCode, @OnActivityResult.Extra GitFileBlobObject resultData) { if (resultCode == RESULT_OK) { mFile = resultData; bindUIByData(); } }
@OnActivityResult(RESULT_LABEL) void onResultLabel(int code, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) { if (code == RESULT_OK) { topicObject.labels = labels; updateLabels(topicObject.labels); mResultData.putExtra("topic", topicObject); } }
@OnActivityResult(RESULT_MODIFY_WATCHER) void onResultModifyWatcher(int code, @OnActivityResult.Extra ArrayList<UserObject> resultData) { if (code == RESULT_OK) { watchers = resultData; watchHelp.setData(this.watchers); } }
@OnActivityResult(MaopaoAddActivity.RESULT_REQUEST_LOCATION) void on_RESULT_REQUEST_LOCATION(int result, Intent intent, @OnActivityResult.Extra LocationObject location) { if (result == RESULT_OK) { setResult(RESULT_OK, intent); finish(); } }
@OnActivityResult(RESULT_LABEL) void resultLabels(int result, @OnActivityResult.Extra ArrayList<TopicLabelObject> labels) { if (result == RESULT_OK) { mSingleTask.labels = labels; updateLabels(labels); } }
@OnActivityResult(RESULT_REQUEST_PICK_WATCH_USER) void resultWatchUser(int result, @OnActivityResult.Extra ArrayList<UserObject> resultData) { if (result == RESULT_OK) { watchUsers = resultData; uiBindDataWatch(); } }
@OnActivityResult(EDIT_COMMENT_REQUEST_CODE) void onResult(int resultCode, @org.androidannotations.annotations.OnActivityResult.Extra(value = "commentId") Long commentId) { if (resultCode == RESULT_OK) { updateComment(commentId); } }
@OnActivityResult(RESULT_REQUEST_SELECT_USER) void resultSelectUser(int resultCode, @OnActivityResult.Extra TaskObject.Members members) { if (resultCode == Activity.RESULT_OK) { setPickUser(members); } }
@OnActivityResult(RESULT_REQUEST_FOLLOW) void resultRequestFollow(int resultCode, @OnActivityResult.Extra String name) { if (resultCode == RESULT_OK) { mEnterComment.getEnterLayout().insertText(name); } }