分工以及一点点新标注

pull/8/head
eazzy 11 months ago
parent c62e68375d
commit 69ced39865

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 context
* @param date * @param date
*/ */

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

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

Loading…
Cancel
Save