分工以及一点点新标注

pull/16/head
eazzy 11 months ago committed by SheYu
parent 43de783585
commit 86c88f3527

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -41,8 +41,12 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener
}
/**
* DateTimePickerDialog
*
* @method DateTimePickerDialog
* @description
* DateTimePickerDialog
* Remind me
* @date: 12/21/2023 8:01 AM
* @author: YangYizhe
* @param context
* @param date
*/

@ -534,6 +534,12 @@ public class NoteEditActivity extends Activity implements OnClickListener,
return true;
}
/**
* @method setReminder
* @description Remind me
* @date: 12/21/2023 8:04 AM
* @author: YangYizhe
*/
private void setReminder() {
DateTimePickerDialog d = new DateTimePickerDialog(this, System.currentTimeMillis());
d.setOnDateTimeSetListener(new OnDateTimeSetListener() {
@ -788,9 +794,14 @@ public class NoteEditActivity extends Activity implements OnClickListener,
}
return hasChecked;
}
/*
* 便
*
/**
* @method saveNote
* @description
* 便,退
* @date: 12/21/2023 8:14 AM
* @author: YangYizhe
* @param
* @return
*/
private boolean saveNote() {
getWorkingText();
@ -809,7 +820,15 @@ public class NoteEditActivity extends Activity implements OnClickListener,
}
return saved;
}
/**
* @method sendToDesktop
* @description
* send to home
* @date: 12/21/2023 8:15 AM
* @author: YangYizhe
* @param
* @return
*/
private void sendToDesktop() {
/**
* Before send message to home, we should make sure that current
@ -849,7 +868,6 @@ public class NoteEditActivity extends Activity implements OnClickListener,
content = content.replace(TAG_UNCHECKED, "");
return content.length() > SHORTCUT_ICON_TITLE_MAX_LEN ? content.substring(0,
SHORTCUT_ICON_TITLE_MAX_LEN) : content;
//直接设置为content中的内容并返回有勾选和未勾选2种
}
private void showToast(int resId) {
showToast(resId, Toast.LENGTH_SHORT);

@ -66,6 +66,7 @@ import java.util.HashSet;
* @Package: net.micode.notes.ui
* @ClassName: NotesListActivity
* @Description:
* 便便
* @Author: WUSHUXIAN
* @CreateDate: 2023/12/20 23:02
* @Version: 1.0
@ -624,13 +625,27 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}
}
/**
* @method openNode
* @description
* 便
* @date: 12/21/2023 8:05 AM
* @author: YangYizhe
* @param data
*/
private void openNode(NoteItemData data) {
Intent intent = new Intent(this, NoteEditActivity.class);
intent.setAction(Intent.ACTION_VIEW);
intent.putExtra(Intent.EXTRA_UID, data.getId());
this.startActivityForResult(intent, REQUEST_CODE_OPEN_NODE);
}
/**
* @method openFolder
* @description
* @date: 12/21/2023 8:05 AM
* @author: YangYizhe
* @param data
*/
private void openFolder(NoteItemData data) {
mCurrentFolderId = data.getId();
startAsyncNotesListQuery();
@ -647,7 +662,13 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}
mTitleBar.setVisibility(View.VISIBLE);
}
/**
* @method onClick
* @description 便便
* @date: 12/21/2023 8:06 AM
* @author: YangYizhe
* @param
*/
public void onClick(View v) {
if (v.getId() == R.id.btn_new_note) {
createNewNote();
@ -927,7 +948,10 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}
/**
* 便
* @method exportNoteToText
* @description 便export text
* @date: 12/21/2023 8:08 AM
* @author: YangYizhe
*/
private void exportNoteToText() {
final BackupUtils backup = BackupUtils.getInstance(NotesListActivity.this);
@ -971,17 +995,11 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}.execute();
}
/**
* @return
*
*/
private boolean isSyncMode() {
return NotesPreferenceActivity.getSyncAccountName(this).trim().length() > 0;
}
/**
* PreferenceActivity
*/
private void startPreferenceActivity() {
Activity from = getParent() != null ? getParent() : this;
Intent intent = new Intent(from, NotesPreferenceActivity.class);
@ -989,7 +1007,12 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}
/**
* 便
* @Package: net.micode.notes.ui
* @ClassName: NotesListActivity
* @Description:
* @Author: YangYizhe
* @CreateDate: 12/21/2023 8:09 AM
* @Version: 1.0
*/
private class OnListItemClickListener implements OnItemClickListener {
@ -1053,11 +1076,15 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
NoteColumns.MODIFIED_DATE + " DESC");
}
/* (non-Javadoc)
* @see android.widget.AdapterView.OnItemLongClickListener#onItemLongClick(android.widget.AdapterView, android.view.View, int, long)
/**
* @method onItemLongClick
* @description
*
* 便ActionModeContextMenu
* ActionMOdeContextMenu
* @date: 12/21/2023 8:10 AM
* @author: YangYizhe
* @param
* @return
*/
public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
if (view instanceof NotesListItem) {

Loading…
Cancel
Save