|
|
@ -150,7 +150,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @method onActivityResult
|
|
|
|
* @method onActivityResult
|
|
|
|
* @description: 返回一些子模块完成的数据交给主Activity处理
|
|
|
|
* @description:
|
|
|
|
* 参数:
|
|
|
|
* 参数:
|
|
|
|
* requestCode:
|
|
|
|
* requestCode:
|
|
|
|
* resultCode:
|
|
|
|
* resultCode:
|
|
|
@ -161,7 +161,6 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
|
|
|
|
* @return void
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
|
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
|
|
|
|
// 结果值 和 要求值 符合要求
|
|
|
|
|
|
|
|
if (resultCode == RESULT_OK
|
|
|
|
if (resultCode == RESULT_OK
|
|
|
|
&& (requestCode == REQUEST_CODE_OPEN_NODE || requestCode == REQUEST_CODE_NEW_NODE)) {
|
|
|
|
&& (requestCode == REQUEST_CODE_OPEN_NODE || requestCode == REQUEST_CODE_NEW_NODE)) {
|
|
|
|
mNotesListAdapter.changeCursor(null);
|
|
|
|
mNotesListAdapter.changeCursor(null);
|
|
|
@ -804,9 +803,13 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
|
|
|
|
sendBroadcast(intent);
|
|
|
|
sendBroadcast(intent);
|
|
|
|
setResult(RESULT_OK, intent);
|
|
|
|
setResult(RESULT_OK, intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 声明监听器,建立菜单,包括名称,视图,删除操作,更改名称操作;
|
|
|
|
* @method OnCreateContextMenuListener
|
|
|
|
|
|
|
|
* @description: 生成便签初始界面
|
|
|
|
|
|
|
|
* @date: 2023/12/21 1:16
|
|
|
|
|
|
|
|
* @author: WUSHUXIAN
|
|
|
|
|
|
|
|
* @param
|
|
|
|
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private final OnCreateContextMenuListener mFolderOnCreateContextMenuListener = new OnCreateContextMenuListener() {
|
|
|
|
private final OnCreateContextMenuListener mFolderOnCreateContextMenuListener = new OnCreateContextMenuListener() {
|
|
|
|
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
|
|
|
|
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
|
|
|
|