private void addOrRemoveSaveBoxStory(View fromView, StoryDetail storyDetail) { GKIMLog.lf(this, 0, TAG + "=>addOrRemoveSaveBoxStory"); if (!mStoryId.equals(String.valueOf(storyDetail.getStoryid()))) { GKIMLog.lf( this, 0, TAG + "=> not match current story, won't save. (" + mStoryId + ", " + storyDetail.getStoryid() + ")."); return; } String currentStoryId = mStoryId; if (TNPreferenceManager.hasSavedStory(currentStoryId)) { // if (!TNPreferenceManager.checkLoggedIn()) { // UIUtils.showToast(this, // getResources().getString(R.string.request_for_login)); // } else { TNPreferenceManager.deleteStory(currentStoryId); fromView.setSelected(false); GKIMLog.lf(this, 0, TAG + "=>removed story: " + currentStoryId); TNPreferenceManager.updateSaved(currentStoryId, 0); UIUtils.showToast(this, getResources().getString(R.string.storydetail_story_has_removed)); // } } else { // if (!TNPreferenceManager.checkLoggedIn()) { // UIUtils.showToast(this, // getResources().getString(R.string.request_for_login)); // } else { TNPreferenceManager.saveStory(storyDetail); fromView.setSelected(true); GKIMLog.lf(this, 0, TAG + "=>added story: " + currentStoryId); TNPreferenceManager.updateSaved(currentStoryId, 1); UIUtils.showToast(this, getResources().getString(R.string.storydetail_story_has_saved)); // } } }