diff --git a/model/新增功能uml图.vsdx b/model/新增功能uml图.vsdx index c611edf..9dbc8ab 100644 Binary files a/model/新增功能uml图.vsdx and b/model/新增功能uml图.vsdx differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/checksums/checksums.lock b/other/软件原完成代码/minotes/.gradle/7.5/checksums/checksums.lock new file mode 100644 index 0000000..9a598e1 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/checksums/checksums.lock differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/checksums/md5-checksums.bin b/other/软件原完成代码/minotes/.gradle/7.5/checksums/md5-checksums.bin new file mode 100644 index 0000000..63bf681 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/checksums/md5-checksums.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/checksums/sha1-checksums.bin b/other/软件原完成代码/minotes/.gradle/7.5/checksums/sha1-checksums.bin new file mode 100644 index 0000000..ab4e61d Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/checksums/sha1-checksums.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock b/other/软件原完成代码/minotes/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock new file mode 100644 index 0000000..8a111de Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/dependencies-accessors/dependencies-accessors.lock differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/dependencies-accessors/gc.properties b/other/软件原完成代码/minotes/.gradle/7.5/dependencies-accessors/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/other/软件原完成代码/minotes/.gradle/7.5/executionHistory/executionHistory.bin b/other/软件原完成代码/minotes/.gradle/7.5/executionHistory/executionHistory.bin new file mode 100644 index 0000000..cc8000b Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/executionHistory/executionHistory.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/executionHistory/executionHistory.lock b/other/软件原完成代码/minotes/.gradle/7.5/executionHistory/executionHistory.lock new file mode 100644 index 0000000..1d20efb Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/executionHistory/executionHistory.lock differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/fileChanges/last-build.bin b/other/软件原完成代码/minotes/.gradle/7.5/fileChanges/last-build.bin new file mode 100644 index 0000000..f76dd23 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/fileChanges/last-build.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/fileHashes.bin b/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/fileHashes.bin new file mode 100644 index 0000000..82c8a4d Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/fileHashes.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/fileHashes.lock b/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/fileHashes.lock new file mode 100644 index 0000000..d371587 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/fileHashes.lock differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/resourceHashesCache.bin b/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/resourceHashesCache.bin new file mode 100644 index 0000000..faa1e64 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/7.5/fileHashes/resourceHashesCache.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/7.5/gc.properties b/other/软件原完成代码/minotes/.gradle/7.5/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/buildOutputCleanup.lock new file mode 100644 index 0000000..6ea14ad Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/cache.properties b/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/cache.properties new file mode 100644 index 0000000..d403ed4 --- /dev/null +++ b/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/cache.properties @@ -0,0 +1,2 @@ +#Sun Jun 04 20:08:15 HKT 2023 +gradle.version=7.5 diff --git a/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/outputFiles.bin b/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/outputFiles.bin new file mode 100644 index 0000000..e7ca2f1 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/other/软件原完成代码/minotes/.gradle/file-system.probe b/other/软件原完成代码/minotes/.gradle/file-system.probe new file mode 100644 index 0000000..7672791 Binary files /dev/null and b/other/软件原完成代码/minotes/.gradle/file-system.probe differ diff --git a/other/软件原完成代码/minotes/.gradle/vcs-1/gc.properties b/other/软件原完成代码/minotes/.gradle/vcs-1/gc.properties new file mode 100644 index 0000000..e69de29 diff --git a/other/软件原完成代码/minotes/.idea/.gitignore b/other/软件原完成代码/minotes/.idea/.gitignore new file mode 100644 index 0000000..359bb53 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/.gitignore @@ -0,0 +1,3 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml diff --git a/other/软件原完成代码/minotes/.idea/compiler.xml b/other/软件原完成代码/minotes/.idea/compiler.xml new file mode 100644 index 0000000..fb7f4a8 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/deploymentTargetDropDown.xml b/other/软件原完成代码/minotes/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..b6543dd --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/gradle.xml b/other/软件原完成代码/minotes/.idea/gradle.xml new file mode 100644 index 0000000..a0de2a1 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/gradle.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/jarRepositories.xml b/other/软件原完成代码/minotes/.idea/jarRepositories.xml new file mode 100644 index 0000000..a5f05cd --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/misc.xml b/other/软件原完成代码/minotes/.idea/misc.xml new file mode 100644 index 0000000..5c9f89f --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/0/8/08c35f02f11c35ae9ebf8db0a482054dfa1cf493 b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/0/8/08c35f02f11c35ae9ebf8db0a482054dfa1cf493 new file mode 100644 index 0000000..b886f15 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/0/8/08c35f02f11c35ae9ebf8db0a482054dfa1cf493 @@ -0,0 +1,11 @@ + +s +java:S4144"\Update this method so that its implementation is not identical to "getParentId" on line 190.( +> +java:S1125X"(Remove the unnecessary boolean literals.( +m +java:S3776u"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.( +C +java:S1125v"(Remove the unnecessary boolean literals.( +> +java:S1125w"(Remove the unnecessary boolean literals.( \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/2/8/283f16cc23da56ca65616082bc810304d3511d0a b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/2/8/283f16cc23da56ca65616082bc810304d3511d0a new file mode 100644 index 0000000..9a2e541 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/2/8/283f16cc23da56ca65616082bc810304d3511d0a @@ -0,0 +1,39 @@ + +t +java:S22931"YReplace the type specification in this constructor call with the diamond operator ("<>").(ə +o +java:S2293d"YReplace the type specification in this constructor call with the diamond operator ("<>").( +o +java:S2293u"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ȫ +J +java:S1066["/Merge this if statement with the enclosing one.(ڧ + +java:S1319c"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".( + +java:S1319t"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".( +j +java:S1104+"TMake widgetId a static final constant or non-public and provide accessors if needed.(ǎ +q +java:S1104,"VMake widgetType a static final constant or non-public and provide accessors if needed.(漬 +C +java:S5411f"(Use a primitive boolean expression here.(ɯ +C +java:S5411w"(Use a primitive boolean expression here.(ɯ +D +java:S5411"(Use a primitive boolean expression here.( +7 +java:S1116-"Remove this empty statement.( +D +java:S18740".Remove this use of ""; it is deprecated.( +J +java:S2864e"4Iterate over the "entrySet" instead of the "keySet".(਷ +B +java:S1125f"'Remove the unnecessary boolean literal.(ɯ +J +java:S2864v"4Iterate over the "entrySet" instead of the "keySet".(਷ +B +java:S1125w"'Remove the unnecessary boolean literal.(ɯ +B +java:S1168"+Return an empty collection instead of null.( +C +java:S1125"'Remove the unnecessary boolean literal.( \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/3/2/32360bf24febc78f20db52498c7576b3d8650d56 b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/3/2/32360bf24febc78f20db52498c7576b3d8650d56 new file mode 100644 index 0000000..6907883 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/3/2/32360bf24febc78f20db52498c7576b3d8650d56 @@ -0,0 +1,39 @@ + +t +java:S22932"YReplace the type specification in this constructor call with the diamond operator ("<>").(л +t +java:S2293\"YReplace the type specification in this constructor call with the diamond operator ("<>").(л +u +java:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(ª +b +java:S1192E"GDefine a constant instead of duplicating this literal "%s: %s" 4 times.( +c +java:S1192z"HDefine a constant instead of duplicating this literal "=? AND " 4 times.( +K +java:S1066"/Merge this if statement with the enclosing one.(䲜 +v +java:S1319("`The type of "ids" should be an interface such as "Set" rather than the implementation "HashSet".( +{ +java:S1319U"`The type of "ids" should be an interface such as "Set" rather than the implementation "HashSet".(󆱋 + +java:S1319"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".( +Z +java:S2589g"8Remove this expression which always evaluates to "false"(Е8˦1 +Z +java:S2589?"8Remove this expression which always evaluates to "false"(Ύ8˦1 +O +java:S1118&":Add a private constructor to hide the implicit public one.(P +T +java:S1155-">Use isEmpty() to check whether the collection is empty or not.( +Z +java:S2147F"DCombine this catch with the one at line 68, which has the same body.(暩 +b +java:S2147n"ECombine this catch with the one at line 108, which has the same body.(8˦1 +k +java:S3252"OUse static access with "net.micode.notes.data.Notes$DataColumns" for "NOTE_ID".( +m +java:S3252"QUse static access with "net.micode.notes.data.Notes$DataColumns" for "MIME_TYPE".( +m +java:S3252"OUse static access with "net.micode.notes.data.Notes$DataColumns" for "NOTE_ID".(8˦1 +m +java:S3252"QUse static access with "net.micode.notes.data.Notes$DataColumns" for "MIME_TYPE".( \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/5/0/503adcf2a0be1ecdb94a15efba4433b6589877b9 b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/5/0/503adcf2a0be1ecdb94a15efba4433b6589877b9 new file mode 100644 index 0000000..b2dcf84 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/5/0/503adcf2a0be1ecdb94a15efba4433b6589877b9 @@ -0,0 +1,14 @@ + +o +java:S22933"YReplace the type specification in this constructor call with the diamond operator ("<>").( +D +java:S1604"(Make this anonymous inner class a lambda( +f +java:S1301o"KReplace this "switch" statement by "if" statements to increase readability.( +M +java:S1135i"2Complete the task associated to this TODO comment.( +< java:S131o""Add a default case to this switch.( +^ +java:S1126"BReplace this if-then-else statement by a single method invocation.(忥 +P +java:S2864"4Iterate over the "entrySet" instead of the "keySet".(Κ \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/5/d/5dfe6902d8ec740690f88d644e74362c3be08fad b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/5/d/5dfe6902d8ec740690f88d644e74362c3be08fad new file mode 100644 index 0000000..c8de337 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/5/d/5dfe6902d8ec740690f88d644e74362c3be08fad @@ -0,0 +1,9 @@ + +m +java:S37766"RRefactor this method to reduce its Cognitive Complexity from 16 to the 15 allowed.( +V +java:S1874F"9Remove this use of "setTextAppearance"; it is deprecated.(81 +V +java:S1874M"9Remove this use of "setTextAppearance"; it is deprecated.(81 +V +java:S1874W"9Remove this use of "setTextAppearance"; it is deprecated.(81 \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/f/9/f9f49497f95afd327db7a7a512612aa1089003d4 b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/f/9/f9f49497f95afd327db7a7a512612aa1089003d4 new file mode 100644 index 0000000..c2327c3 --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/f/9/f9f49497f95afd327db7a7a512612aa1089003d4 @@ -0,0 +1,7 @@ + +: +java:S2386$"Make this member "protected".(Ꙗ81 +K +java:S1874/".Remove this use of ""; it is deprecated.(ж81 +T +java:S11350"2Complete the task associated to this TODO comment.(81 \ No newline at end of file diff --git a/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/index.pb b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000..286d25a --- /dev/null +++ b/other/软件原完成代码/minotes/.idea/sonarlint/issuestore/index.pb @@ -0,0 +1,41 @@ + +d +4app/src/main/java/net/micode/notes/data/Contact.java,9\a\9a3a19793537958b8b1b03a81985999e22705a2f +7 +gradlew,5\b\5bbfa66edb4db3c7c33c5181f43510990d3307f9 +g +7app/src/main/java/net/micode/notes/ui/NoteEditText.java,5\0\503adcf2a0be1ecdb94a15efba4433b6589877b9 +j +:app/src/main/java/net/micode/notes/data/NotesProvider.java,6\a\6a65e747031f27aef20597b4181148a9fbf963d5 +b +2app/src/main/java/net/micode/notes/model/Note.java,d\d\dd970bd8ce083850fca1d4d159647ccd110e57cb +i +9app/src/main/java/net/micode/notes/model/WorkingNote.java,8\7\876016634c6642b35109680ccac740dc8271b236 +p +@app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java,1\e\1eb2363b523dbcae43d3c6e4790c64436af61b13 +h +8app/src/main/java/net/micode/notes/ui/NotesListItem.java,5\d\5dfe6902d8ec740690f88d644e74362c3be08fad +r +Bapp/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java,d\a\da57ce446af85bbd9aefee65e969869f0cff78b0 +f +6app/src/main/java/net/micode/notes/tool/DataUtils.java,3\2\32360bf24febc78f20db52498c7576b3d8650d56 +k +;app/src/main/java/net/micode/notes/ui/NotesListAdapter.java,2\8\283f16cc23da56ca65616082bc810304d3511d0a +g +7app/src/main/java/net/micode/notes/ui/NoteItemData.java,0\8\08c35f02f11c35ae9ebf8db0a482054dfa1cf493 +k +;app/src/main/java/net/micode/notes/ui/NoteEditActivity.java,5\7\577f30d26378ec8a2bd2e4a43f3c79b3f04c402c +b +2app/src/main/java/net/micode/notes/data/Notes.java,a\7\a7641cfac724321d508c2a284223a711011a93f5 +P + app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e +< + build.gradle,f\0\f07866736216be0ee2aba49e392191aeae700a35 +m +=app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java,f\9\f9f49497f95afd327db7a7a512612aa1089003d4 +p +@app/src/main/java/net/micode/notes/gtask/remote/GTaskClient.java,4\5\4529b3a97b0f3b19b895aa06f23bed63ff38a312 +@ +app/build.gradle,f\4\f4a01d6a4fcb971362ec00a83903fd3902f52164 +l + + + -%s + --%s + --%s + --%s + + Messaging + Email + #335b5b5b33sp26sp20sp17sp14sp#00FF00#FF0000#0000FF#FFFF00#000000#00FFFFNotesNotes 2x2Notes 4x4No associated note found, click to create associated note.Privacy mode,can not see note content...Add noteDelete reminder successfullySet reminderExpiredyyyyMMddMMMd kk:mmGot itTake a lookCallSend emailBrowse webOpen map/MIUI/notes/notes_%s.txt(%d)New FolderExport textSyncCancel syncingSettingsSearchDeleteMove to folderMove to private folderOpen private folderPlease enter the passwordBack to all notes%d selectedNothing selected, the operation is invalidSelect allDeselect allFont sizeSmallMediumLargeSuperEnter check listLeave check listView folderDelete folderChange folder nameThe folder %1$s exist, please renameShareSend to homeRemind meDelete reminderSelect folderParent folderNote added to homeConfirm to delete folder and its notes?Delete selected notesConfirm to delete the selected %d notes?Confirm to delete this note?Have moved selected %1$d notes to %2$s folderChange Selected Text ColorInsert ImageSD card busy, not available nowExport failed, please check SD cardThe note is not existSorry, can not set clock on empty noteSorry, can not send and empty note to homeExport successfulExport failExport text file (%1$s) to SD (%2$s) directorySyncing notes...Sync is successfulSync is failedSync is canceledSync is successful with account %1$sSync failed, please check network and account settingsSync failed, internal error occursSync is canceledLogging into %1$s...Getting remote note list...Synchronize local notes with Google Task...SettingsSync accountSync notes with google taskLast sync time %1$syyyy-MM-dd hh:mm:ssAdd accountChange sync accountRemove sync accountCancelSync immediatelyCancel syncingCurrent account %1$sAll sync related information will be deleted, which may result in duplicated items sometimeSync notesPlease select a google account. Local notes will be synced with google task.Cannot change the account because sync is in progress%1$s has been set as the sync accountNew note background color randomDeleteCall notesInput nameSearching NotesSearch notesText in your notesNotessetcancel改变文本颜色 + %1$s result for \"%2$s\" + + %1$s results for \"%2$s\" + Move to all notes folder + 短信 + 邮件 + 便签便签2x2便签4x4没有关联内容,点击新建便签。访客模式下,便签内容不可见...新建便签成功删除提醒创建提醒已过期yyyyMMddMM月dd日 kk:mm知道了查看呼叫电话发送邮件浏览网页打开地图/MIUI/notes/notes_%s.txt(%d)新建文件夹导出文本同步取消同步设置搜索删除移动到文件夹隐藏笔记" 查看隐藏笔记"请输入密码选中了 %d 项没有选中项,操作无效全选取消全选文字大小正常超大进入清单模式退出清单模式查看文件夹刪除文件夹修改文件夹名称文件夹 %1$s 已存在,请重新命名分享发送到桌面提醒我删除提醒选择文件夹上一级文件夹已添加到桌面删除确认要删除所选的 %d 条便签吗?确认要删除该条便签吗?确认删除文件夹及所包含的便签吗?已将所选 %1$d 条便签移到 %2$s 文件夹更改选中文本颜色插入图片SD卡被占用,不能操作导出文本时发生错误,请检查SD卡要查看的便签不存在不能为空便签设置闹钟提醒不能将空便签发送到桌面导出成功导出失败已将文本文件(%1$s)输出至SD卡(%2$s)目录同步便签...同步成功同步失败同步已取消与%1$s同步成功同步失败,请检查网络和帐号设置同步失败,发生内部错误同步已取消登录%1$s...正在获取服务器便签列表...正在同步本地便签...设置同步账号与google task同步便签记录上次同步于 %1$syyyy-MM-dd hh:mm:ss添加账号更换账号删除账号取消立即同步取消同步当前帐号 %1$s如更换同步帐号,过去的帐号同步信息将被清空,再次切换的同时可能会造成数据重复同步便签请选择google帐号,便签将与该帐号的google task内容同步。正在同步中,不能修改同步帐号同步帐号已设置为%1$s新建便签背景颜色随机删除通话便签请输入名称正在搜索便签搜索便签便签中的文字便签设置取消改变文本颜色 + %1$s 条符合“%2$s”的搜索结果 + 全部笔记移出隐藏列表 + 短信 + 郵件 + 便簽便簽2x2便簽4x4沒有關聯內容,點擊新建便簽。訪客模式下,便籤內容不可見...新建便簽成功刪除提醒創建提醒已過期yyyyMMddMM月dd日 kk:mm知道了查看呼叫電話發送郵件浏覽網頁打開地圖已將所選 %1$d 便籤移到 %2$s 文件夾/MIUI/notes/notes_%s.txt(%d)新建文件夾導出文本同步取消同步設置搜尋刪除移動到文件夾隐藏笔记查看隐藏笔记请键入密码選中了 %d 項沒有選中項,操作無效全選取消全選文字大小正常超大進入清單模式退出清單模式查看文件夾刪除文件夾修改文件夾名稱文件夾 %1$s 已存在,請重新命名分享發送到桌面提醒我刪除提醒選擇文件夾上一級文件夾已添加到桌面刪除确认要刪除所選的 %d 條便籤嗎?确认要删除該條便籤嗎?確認刪除檔夾及所包含的便簽嗎?更改选中文本颜色插入图像SD卡被佔用,不能操作導出TXT時發生錯誤,請檢查SD卡要查看的便籤不存在不能爲空便籤設置鬧鐘提醒不能將空便籤發送到桌面導出成功導出失敗已將文本文件(%1$s)導出至SD(%2$s)目錄同步便簽...同步成功同步失敗同步已取消與%1$s同步成功同步失敗,請檢查網絡和帳號設置同步失敗,發生內部錯誤同步已取消登陸%1$s...正在獲取服務器便籤列表...正在同步本地便籤...設置同步賬號与google task同步便簽記錄上次同步于 %1$syyyy-MM-dd hh:mm:ss添加賬號更換賬號刪除賬號取消立即同步取消同步當前帳號 %1$s如更換同步帳號,過去的帳號同步信息將被清空,再次切換的同時可能會造成數據重復同步便簽請選擇google帳號,便簽將與該帳號的google task內容同步。正在同步中,不能修改同步帳號同步帳號已設置為%1$s新建便籤背景顏色隨機刪除通話便籤請輸入名稱正在搜索便籤搜索便籤便籤中的文字便籤設置取消改变文本颜色 + %1$s 條符合”%2$s“的搜尋結果 + 全部笔记移除隐藏列表 \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugAssets/merger.xml b/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugAssets/merger.xml new file mode 100644 index 0000000..41d025e --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugAssets/merger.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml b/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml new file mode 100644 index 0000000..95449c5 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugShaders/merger.xml b/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugShaders/merger.xml new file mode 100644 index 0000000..d8aa5b4 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/incremental/mergeDebugShaders/merger.xml @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt b/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt new file mode 100644 index 0000000..444a608 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt @@ -0,0 +1,25 @@ +#Tue Jun 06 19:26:24 HKT 2023 +path.4=13/classes.dex +path.3=12/classes.dex +path.2=11/classes.dex +path.1=0/classes.dex +path.7=5/classes.dex +path.6=4/classes.dex +path.5=15/classes.dex +path.0=classes.dex +base.4=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\13\\classes.dex +base.3=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\12\\classes.dex +base.2=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\11\\classes.dex +base.1=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\0\\classes.dex +base.0=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeExtDexDebug\\classes.dex +renamed.3=classes4.dex +renamed.2=classes3.dex +renamed.1=classes2.dex +renamed.0=classes.dex +renamed.7=classes8.dex +renamed.6=classes7.dex +base.7=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\5\\classes.dex +renamed.5=classes6.dex +base.6=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\4\\classes.dex +renamed.4=classes5.dex +base.5=D\:\\MINOTES\\app\\build\\intermediates\\dex\\debug\\mergeProjectDexDebug\\15\\classes.dex diff --git a/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/androidResources b/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/androidResources new file mode 100644 index 0000000..7c9ee24 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/androidResources differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/javaResources0 b/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/javaResources0 new file mode 100644 index 0000000..d81d1fa Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/javaResources0 differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/BuildConfig.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/BuildConfig.class new file mode 100644 index 0000000..d0ec272 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/BuildConfig.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Contact.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Contact.class new file mode 100644 index 0000000..a7948fd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Contact.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$CallNote.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$CallNote.class new file mode 100644 index 0000000..9f4d27e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$CallNote.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$DataColumns.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$DataColumns.class new file mode 100644 index 0000000..569dbdc Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$DataColumns.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$DataConstants.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$DataConstants.class new file mode 100644 index 0000000..ddaec8f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$DataConstants.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$NoteColumns.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$NoteColumns.class new file mode 100644 index 0000000..36c8d49 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$NoteColumns.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$TextNote.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$TextNote.class new file mode 100644 index 0000000..03f890d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes$TextNote.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes.class new file mode 100644 index 0000000..3c40c6a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/Notes.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper$TABLE.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper$TABLE.class new file mode 100644 index 0000000..64fe9eb Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper$TABLE.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class new file mode 100644 index 0000000..38dd14f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class new file mode 100644 index 0000000..f4cbc24 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/MetaData.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/MetaData.class new file mode 100644 index 0000000..fcb0da5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/MetaData.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/Node.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/Node.class new file mode 100644 index 0000000..3459064 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/Node.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/SqlData.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/SqlData.class new file mode 100644 index 0000000..6a5f5ae Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/SqlData.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/SqlNote.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/SqlNote.class new file mode 100644 index 0000000..7d14912 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/SqlNote.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/Task.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/Task.class new file mode 100644 index 0000000..5aaf1d4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/Task.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/TaskList.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/TaskList.class new file mode 100644 index 0000000..359609e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/data/TaskList.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/exception/ActionFailureException.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/exception/ActionFailureException.class new file mode 100644 index 0000000..c916ef7 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/exception/ActionFailureException.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/exception/NetworkFailureException.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/exception/NetworkFailureException.class new file mode 100644 index 0000000..60c0b58 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/exception/NetworkFailureException.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask$1.class new file mode 100644 index 0000000..c78621a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask$OnCompleteListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask$OnCompleteListener.class new file mode 100644 index 0000000..f73069c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask$OnCompleteListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask.class new file mode 100644 index 0000000..beb1278 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskASyncTask.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskClient.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskClient.class new file mode 100644 index 0000000..4544bd1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskClient.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskManager.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskManager.class new file mode 100644 index 0000000..3d9560d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskManager.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskSyncService$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskSyncService$1.class new file mode 100644 index 0000000..e65832c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskSyncService$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskSyncService.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskSyncService.class new file mode 100644 index 0000000..19436e0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/gtask/remote/GTaskSyncService.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/Note$NoteData.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/Note$NoteData.class new file mode 100644 index 0000000..3415c24 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/Note$NoteData.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/Note.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/Note.class new file mode 100644 index 0000000..eb9d7e2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/Note.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/WorkingNote$NoteSettingChangedListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/WorkingNote$NoteSettingChangedListener.class new file mode 100644 index 0000000..15f1f77 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/WorkingNote$NoteSettingChangedListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/WorkingNote.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/WorkingNote.class new file mode 100644 index 0000000..b0b793e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/model/WorkingNote.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/BackupUtils$TextExport.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/BackupUtils$TextExport.class new file mode 100644 index 0000000..ec7e4b8 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/BackupUtils$TextExport.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/BackupUtils.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/BackupUtils.class new file mode 100644 index 0000000..5700670 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/BackupUtils.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/DataUtils.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/DataUtils.class new file mode 100644 index 0000000..4eda7f5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/DataUtils.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/FontColorParser$TextAppearanceResources.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/FontColorParser$TextAppearanceResources.class new file mode 100644 index 0000000..4d3861f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/FontColorParser$TextAppearanceResources.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/FontColorParser.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/FontColorParser.class new file mode 100644 index 0000000..4cd7f80 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/FontColorParser.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/GTaskStringUtils.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/GTaskStringUtils.class new file mode 100644 index 0000000..d320e3e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/GTaskStringUtils.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$NoteBgResources.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$NoteBgResources.class new file mode 100644 index 0000000..3a43d3e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$NoteBgResources.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$NoteItemBgResources.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$NoteItemBgResources.class new file mode 100644 index 0000000..1fcadcc Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$NoteItemBgResources.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$TextAppearanceResources.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$TextAppearanceResources.class new file mode 100644 index 0000000..8f484dd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$TextAppearanceResources.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$WidgetBgResources.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$WidgetBgResources.class new file mode 100644 index 0000000..6145e0d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser$WidgetBgResources.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser.class new file mode 100644 index 0000000..f2e1b62 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/tool/ResourceParser.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class new file mode 100644 index 0000000..3120a8e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class new file mode 100644 index 0000000..2c06336 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmReceiver.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmReceiver.class new file mode 100644 index 0000000..70c303c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmReceiver.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class new file mode 100644 index 0000000..526325f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class new file mode 100644 index 0000000..1adcb3b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class new file mode 100644 index 0000000..b6ef076 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class new file mode 100644 index 0000000..d39a51e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$OnDateTimeChangedListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$OnDateTimeChangedListener.class new file mode 100644 index 0000000..255a4e6 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$OnDateTimeChangedListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class new file mode 100644 index 0000000..3bbd65c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class new file mode 100644 index 0000000..b92ae75 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$OnDateTimeSetListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$OnDateTimeSetListener.class new file mode 100644 index 0000000..70481dd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$OnDateTimeSetListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class new file mode 100644 index 0000000..e2f05d2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class new file mode 100644 index 0000000..eeb6b6d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class new file mode 100644 index 0000000..2939c8e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/FoldersListAdapter$FolderListItem.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/FoldersListAdapter$FolderListItem.class new file mode 100644 index 0000000..31d4b1f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/FoldersListAdapter$FolderListItem.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/FoldersListAdapter.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/FoldersListAdapter.class new file mode 100644 index 0000000..8911567 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/FoldersListAdapter.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class new file mode 100644 index 0000000..d350b8a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class new file mode 100644 index 0000000..82dc783 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class new file mode 100644 index 0000000..edf7f59 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$HeadViewHolder.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$HeadViewHolder.class new file mode 100644 index 0000000..d0b8ade Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$HeadViewHolder.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class new file mode 100644 index 0000000..7f30612 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText$1.class new file mode 100644 index 0000000..5af1391 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText$OnTextViewChangeListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText$OnTextViewChangeListener.class new file mode 100644 index 0000000..9874f47 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText$OnTextViewChangeListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText.class new file mode 100644 index 0000000..abfb9e1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditText.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteItemData.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteItemData.class new file mode 100644 index 0000000..6b55fb8 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteItemData.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$1.class new file mode 100644 index 0000000..e232e54 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$2.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$2.class new file mode 100644 index 0000000..53bcf02 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$2.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$3.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$3.class new file mode 100644 index 0000000..cd25dc1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$3.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$4.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$4.class new file mode 100644 index 0000000..78bc904 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$4.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$5.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$5.class new file mode 100644 index 0000000..4f6410a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$5.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$6.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$6.class new file mode 100644 index 0000000..4fc5b7c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$6.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$7.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$7.class new file mode 100644 index 0000000..f86d9c1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$7.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$8.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$8.class new file mode 100644 index 0000000..5dffa28 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$8.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$9.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$9.class new file mode 100644 index 0000000..6c74a9c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$9.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.class new file mode 100644 index 0000000..c883ed8 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ListEditState.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ListEditState.class new file mode 100644 index 0000000..204625c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ListEditState.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$1.class new file mode 100644 index 0000000..29c7e95 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$2.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$2.class new file mode 100644 index 0000000..290aeed Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$2.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback.class new file mode 100644 index 0000000..0198996 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.class new file mode 100644 index 0000000..f0e5fac Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.class new file mode 100644 index 0000000..0e8a279 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity.class new file mode 100644 index 0000000..7cdba5f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListAdapter$AppWidgetAttribute.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListAdapter$AppWidgetAttribute.class new file mode 100644 index 0000000..18be735 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListAdapter$AppWidgetAttribute.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListAdapter.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListAdapter.class new file mode 100644 index 0000000..18da5bc Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListAdapter.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListItem.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListItem.class new file mode 100644 index 0000000..4f3d301 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListItem.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$1.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$1.class new file mode 100644 index 0000000..e8d5661 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$1.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$2.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$2.class new file mode 100644 index 0000000..730a969 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$2.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$3.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$3.class new file mode 100644 index 0000000..b50388a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$3.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$4.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$4.class new file mode 100644 index 0000000..29b0b3b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$4.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$5.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$5.class new file mode 100644 index 0000000..a784ff5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$5.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$6.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$6.class new file mode 100644 index 0000000..986f023 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$6.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$7.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$7.class new file mode 100644 index 0000000..123239b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$7.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$8.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$8.class new file mode 100644 index 0000000..0cd3584 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$8.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$GTaskReceiver.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$GTaskReceiver.class new file mode 100644 index 0000000..d691efd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity$GTaskReceiver.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity.class new file mode 100644 index 0000000..ca99794 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesPreferenceActivity.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider.class new file mode 100644 index 0000000..d050a6a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider_2x.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider_2x.class new file mode 100644 index 0000000..bf63eab Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider_2x.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider_4x.class b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider_4x.class new file mode 100644 index 0000000..5e50ae9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/javac/debug/classes/net/micode/notes/widget/NoteWidgetProvider_4x.class differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt b/other/软件原完成代码/minotes/app/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt new file mode 100644 index 0000000..c34d2db --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt @@ -0,0 +1,273 @@ +1 +2 +17 +21 +22 D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 +23 android:minSdkVersion="24" +23-->D:\MINOTES\app\src\main\AndroidManifest.xml:23:15-41 +24 android:targetSdkVersion="24" /> +24-->D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 +25 +26 +26-->D:\MINOTES\app\src\main\AndroidManifest.xml:25:5-81 +26-->D:\MINOTES\app\src\main\AndroidManifest.xml:25:22-78 +27 +27-->D:\MINOTES\app\src\main\AndroidManifest.xml:26:5-88 +27-->D:\MINOTES\app\src\main\AndroidManifest.xml:26:22-85 +28 +28-->D:\MINOTES\app\src\main\AndroidManifest.xml:27:5-67 +28-->D:\MINOTES\app\src\main\AndroidManifest.xml:27:22-64 +29 +29-->D:\MINOTES\app\src\main\AndroidManifest.xml:28:5-72 +29-->D:\MINOTES\app\src\main\AndroidManifest.xml:28:22-69 +30 +30-->D:\MINOTES\app\src\main\AndroidManifest.xml:29:5-74 +30-->D:\MINOTES\app\src\main\AndroidManifest.xml:29:22-71 +31 +31-->D:\MINOTES\app\src\main\AndroidManifest.xml:30:5-80 +31-->D:\MINOTES\app\src\main\AndroidManifest.xml:30:22-77 +32 +32-->D:\MINOTES\app\src\main\AndroidManifest.xml:31:5-71 +32-->D:\MINOTES\app\src\main\AndroidManifest.xml:31:22-68 +33 +33-->D:\MINOTES\app\src\main\AndroidManifest.xml:32:5-74 +33-->D:\MINOTES\app\src\main\AndroidManifest.xml:32:22-71 +34 +34-->D:\MINOTES\app\src\main\AndroidManifest.xml:33:5-81 +34-->D:\MINOTES\app\src\main\AndroidManifest.xml:33:22-78 +35 +36 D:\MINOTES\app\src\main\AndroidManifest.xml:35:5-149:19 +37 android:debuggable="true" +38 android:extractNativeLibs="false" +39 android:icon="@drawable/icon_app" +39-->D:\MINOTES\app\src\main\AndroidManifest.xml:36:9-42 +40 android:label="@string/app_name" > +40-->D:\MINOTES\app\src\main\AndroidManifest.xml:37:9-41 +41 D:\MINOTES\app\src\main\AndroidManifest.xml:38:9-51:20 +42 android:name="net.micode.notes.ui.NotesListActivity" +42-->D:\MINOTES\app\src\main\AndroidManifest.xml:39:13-49 +43 android:configChanges="keyboardHidden|orientation|screenSize" +43-->D:\MINOTES\app\src\main\AndroidManifest.xml:40:13-74 +44 android:label="@string/app_name" +44-->D:\MINOTES\app\src\main\AndroidManifest.xml:41:13-45 +45 android:launchMode="singleTop" +45-->D:\MINOTES\app\src\main\AndroidManifest.xml:42:13-43 +46 android:theme="@style/NoteTheme" +46-->D:\MINOTES\app\src\main\AndroidManifest.xml:43:13-45 +47 android:uiOptions="splitActionBarWhenNarrow" +47-->D:\MINOTES\app\src\main\AndroidManifest.xml:44:13-57 +48 android:windowSoftInputMode="adjustPan" > +48-->D:\MINOTES\app\src\main\AndroidManifest.xml:45:13-52 +49 +49-->D:\MINOTES\app\src\main\AndroidManifest.xml:47:13-50:29 +50 +50-->D:\MINOTES\app\src\main\AndroidManifest.xml:48:17-69 +50-->D:\MINOTES\app\src\main\AndroidManifest.xml:48:25-66 +51 +52 +52-->D:\MINOTES\app\src\main\AndroidManifest.xml:49:17-77 +52-->D:\MINOTES\app\src\main\AndroidManifest.xml:49:27-74 +53 +54 +55 D:\MINOTES\app\src\main\AndroidManifest.xml:53:9-81:20 +56 android:name="net.micode.notes.ui.NoteEditActivity" +56-->D:\MINOTES\app\src\main\AndroidManifest.xml:54:13-48 +57 android:configChanges="keyboardHidden|orientation|screenSize" +57-->D:\MINOTES\app\src\main\AndroidManifest.xml:55:13-74 +58 android:launchMode="singleTop" +58-->D:\MINOTES\app\src\main\AndroidManifest.xml:56:13-43 +59 android:theme="@style/NoteTheme" > +59-->D:\MINOTES\app\src\main\AndroidManifest.xml:57:13-45 +60 +60-->D:\MINOTES\app\src\main\AndroidManifest.xml:59:13-64:29 +61 +61-->D:\MINOTES\app\src\main\AndroidManifest.xml:60:17-69 +61-->D:\MINOTES\app\src\main\AndroidManifest.xml:60:25-66 +62 +63 +63-->D:\MINOTES\app\src\main\AndroidManifest.xml:61:17-76 +63-->D:\MINOTES\app\src\main\AndroidManifest.xml:61:27-73 +64 +65 +65-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:17-78 +65-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:23-75 +66 +66-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:17-78 +66-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:23-75 +67 +68 +68-->D:\MINOTES\app\src\main\AndroidManifest.xml:66:13-71:29 +69 +69-->D:\MINOTES\app\src\main\AndroidManifest.xml:67:17-79 +69-->D:\MINOTES\app\src\main\AndroidManifest.xml:67:25-76 +70 +71 +71-->D:\MINOTES\app\src\main\AndroidManifest.xml:61:17-76 +71-->D:\MINOTES\app\src\main\AndroidManifest.xml:61:27-73 +72 +73 +73-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:17-78 +73-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:23-75 +74 +74-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:17-78 +74-->D:\MINOTES\app\src\main\AndroidManifest.xml:62:23-75 +75 +76 +76-->D:\MINOTES\app\src\main\AndroidManifest.xml:73:13-76:29 +77 +77-->D:\MINOTES\app\src\main\AndroidManifest.xml:74:17-71 +77-->D:\MINOTES\app\src\main\AndroidManifest.xml:74:25-68 +78 +79 +79-->D:\MINOTES\app\src\main\AndroidManifest.xml:61:17-76 +79-->D:\MINOTES\app\src\main\AndroidManifest.xml:61:27-73 +80 +81 +82 D:\MINOTES\app\src\main\AndroidManifest.xml:78:13-80:54 +83 android:name="android.app.searchable" +83-->D:\MINOTES\app\src\main\AndroidManifest.xml:79:17-54 +84 android:resource="@xml/searchable" /> +84-->D:\MINOTES\app\src\main\AndroidManifest.xml:80:17-51 +85 +86 +87 D:\MINOTES\app\src\main\AndroidManifest.xml:83:9-86:43 +88 android:name="net.micode.notes.data.NotesProvider" +88-->D:\MINOTES\app\src\main\AndroidManifest.xml:84:13-63 +89 android:authorities="micode_notes" +89-->D:\MINOTES\app\src\main\AndroidManifest.xml:85:13-47 +90 android:multiprocess="true" /> +90-->D:\MINOTES\app\src\main\AndroidManifest.xml:86:13-40 +91 +92 D:\MINOTES\app\src\main\AndroidManifest.xml:88:9-100:20 +93 android:name="net.micode.notes.widget.NoteWidgetProvider_2x" +93-->D:\MINOTES\app\src\main\AndroidManifest.xml:89:13-57 +94 android:label="@string/app_widget2x2" > +94-->D:\MINOTES\app\src\main\AndroidManifest.xml:90:13-50 +95 +95-->D:\MINOTES\app\src\main\AndroidManifest.xml:91:13-95:29 +96 +96-->D:\MINOTES\app\src\main\AndroidManifest.xml:92:17-84 +96-->D:\MINOTES\app\src\main\AndroidManifest.xml:92:25-81 +97 +97-->D:\MINOTES\app\src\main\AndroidManifest.xml:93:17-85 +97-->D:\MINOTES\app\src\main\AndroidManifest.xml:93:25-82 +98 +98-->D:\MINOTES\app\src\main\AndroidManifest.xml:94:17-85 +98-->D:\MINOTES\app\src\main\AndroidManifest.xml:94:25-82 +99 +100 +101 D:\MINOTES\app\src\main\AndroidManifest.xml:97:13-99:58 +102 android:name="android.appwidget.provider" +102-->D:\MINOTES\app\src\main\AndroidManifest.xml:98:17-58 +103 android:resource="@xml/widget_2x_info" /> +103-->D:\MINOTES\app\src\main\AndroidManifest.xml:99:17-55 +104 +105 D:\MINOTES\app\src\main\AndroidManifest.xml:101:9-114:20 +106 android:name="net.micode.notes.widget.NoteWidgetProvider_4x" +106-->D:\MINOTES\app\src\main\AndroidManifest.xml:102:13-57 +107 android:label="@string/app_widget4x4" > +107-->D:\MINOTES\app\src\main\AndroidManifest.xml:103:13-50 +108 +108-->D:\MINOTES\app\src\main\AndroidManifest.xml:91:13-95:29 +109 +109-->D:\MINOTES\app\src\main\AndroidManifest.xml:92:17-84 +109-->D:\MINOTES\app\src\main\AndroidManifest.xml:92:25-81 +110 +110-->D:\MINOTES\app\src\main\AndroidManifest.xml:93:17-85 +110-->D:\MINOTES\app\src\main\AndroidManifest.xml:93:25-82 +111 +111-->D:\MINOTES\app\src\main\AndroidManifest.xml:94:17-85 +111-->D:\MINOTES\app\src\main\AndroidManifest.xml:94:25-82 +112 +113 +114 D:\MINOTES\app\src\main\AndroidManifest.xml:97:13-99:58 +115 android:name="android.appwidget.provider" +115-->D:\MINOTES\app\src\main\AndroidManifest.xml:98:17-58 +116 android:resource="@xml/widget_4x_info" /> +116-->D:\MINOTES\app\src\main\AndroidManifest.xml:99:17-55 +117 +118 +118-->D:\MINOTES\app\src\main\AndroidManifest.xml:116:9-120:20 +118-->D:\MINOTES\app\src\main\AndroidManifest.xml:116:19-55 +119 +119-->D:\MINOTES\app\src\main\AndroidManifest.xml:117:13-119:29 +120 +120-->D:\MINOTES\app\src\main\AndroidManifest.xml:118:17-79 +120-->D:\MINOTES\app\src\main\AndroidManifest.xml:118:25-76 +121 +122 +123 D:\MINOTES\app\src\main\AndroidManifest.xml:122:9-125:20 +124 android:name="net.micode.notes.ui.AlarmReceiver" +124-->D:\MINOTES\app\src\main\AndroidManifest.xml:123:13-61 +125 android:process=":remote" > +125-->D:\MINOTES\app\src\main\AndroidManifest.xml:124:13-38 +126 +127 +128 D:\MINOTES\app\src\main\AndroidManifest.xml:127:9-132:20 +129 android:name="net.micode.notes.ui.AlarmAlertActivity" +129-->D:\MINOTES\app\src\main\AndroidManifest.xml:128:13-50 +130 android:label="@string/app_name" +130-->D:\MINOTES\app\src\main\AndroidManifest.xml:129:13-45 +131 android:launchMode="singleInstance" +131-->D:\MINOTES\app\src\main\AndroidManifest.xml:130:13-48 +132 android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" > +132-->D:\MINOTES\app\src\main\AndroidManifest.xml:131:13-75 +133 +134 D:\MINOTES\app\src\main\AndroidManifest.xml:134:9-139:20 +135 android:name="net.micode.notes.ui.NotesPreferenceActivity" +135-->D:\MINOTES\app\src\main\AndroidManifest.xml:135:13-71 +136 android:label="@string/preferences_title" +136-->D:\MINOTES\app\src\main\AndroidManifest.xml:136:13-54 +137 android:launchMode="singleTop" +137-->D:\MINOTES\app\src\main\AndroidManifest.xml:137:13-43 +138 android:theme="@android:style/Theme.Holo.Light" > +138-->D:\MINOTES\app\src\main\AndroidManifest.xml:138:13-60 +139 +140 +141 D:\MINOTES\app\src\main\AndroidManifest.xml:141:9-144:19 +142 android:name="net.micode.notes.gtask.remote.GTaskSyncService" +142-->D:\MINOTES\app\src\main\AndroidManifest.xml:142:13-74 +143 android:exported="false" > +143-->D:\MINOTES\app\src\main\AndroidManifest.xml:143:13-37 +144 +145 +146 D:\MINOTES\app\src\main\AndroidManifest.xml:146:9-148:52 +147 android:name="android.app.default_searchable" +147-->D:\MINOTES\app\src\main\AndroidManifest.xml:147:13-58 +148 android:value=".ui.NoteEditActivity" /> +148-->D:\MINOTES\app\src\main\AndroidManifest.xml:148:13-49 +149 +150 +151 diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_java_res/debug/base.jar b/other/软件原完成代码/minotes/app/build/intermediates/merged_java_res/debug/base.jar new file mode 100644 index 0000000..0dbf6fb Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_java_res/debug/base.jar differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_manifest/debug/AndroidManifest.xml b/other/软件原完成代码/minotes/app/build/intermediates/merged_manifest/debug/AndroidManifest.xml new file mode 100644 index 0000000..ef36dbf --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_manifest/debug/AndroidManifest.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml b/other/软件原完成代码/minotes/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml new file mode 100644 index 0000000..ef36dbf --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_manifests/debug/output-metadata.json b/other/软件原完成代码/minotes/app/build/intermediates/merged_manifests/debug/output-metadata.json new file mode 100644 index 0000000..a56d03a --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_manifests/debug/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "MERGED_MANIFESTS", + "kind": "Directory" + }, + "applicationId": "net.micode.notes", + "variantName": "debug", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1, + "versionName": "0.1", + "outputFile": "AndroidManifest.xml" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/color_primary_text_dark.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/color_primary_text_dark.xml.flat new file mode 100644 index 0000000..802be34 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/color_primary_text_dark.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/color_secondary_text_dark.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/color_secondary_text_dark.xml.flat new file mode 100644 index 0000000..2d9ddb4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/color_secondary_text_dark.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_bg_btn_set_color.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_bg_btn_set_color.png.flat new file mode 100644 index 0000000..a783113 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_bg_btn_set_color.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_bg_color_btn_mask.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_bg_color_btn_mask.png.flat new file mode 100644 index 0000000..a9576bb Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_bg_color_btn_mask.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_call_record.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_call_record.png.flat new file mode 100644 index 0000000..0692876 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_call_record.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_clock.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_clock.png.flat new file mode 100644 index 0000000..a5cd8ef Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_clock.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_delete.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_delete.png.flat new file mode 100644 index 0000000..b5e283d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_delete.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_dropdown_icon.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_dropdown_icon.9.png.flat new file mode 100644 index 0000000..74c78c0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_dropdown_icon.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_blue.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_blue.9.png.flat new file mode 100644 index 0000000..5436926 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_blue.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_green.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_green.9.png.flat new file mode 100644 index 0000000..4d95a89 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_green.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_red.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_red.9.png.flat new file mode 100644 index 0000000..ce52bc1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_red.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_blue.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_blue.9.png.flat new file mode 100644 index 0000000..b376e80 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_blue.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_green.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_green.9.png.flat new file mode 100644 index 0000000..b8cc9ab Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_green.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_red.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_red.9.png.flat new file mode 100644 index 0000000..2af509b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_red.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_white.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_white.9.png.flat new file mode 100644 index 0000000..f3a6c60 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_white.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_yellow.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_yellow.9.png.flat new file mode 100644 index 0000000..8828ae3 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_title_yellow.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_white.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_white.9.png.flat new file mode 100644 index 0000000..8a98c38 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_white.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_yellow.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_yellow.9.png.flat new file mode 100644 index 0000000..4c9bdf9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_edit_yellow.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_color_green.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_color_green.png.flat new file mode 100644 index 0000000..9567b1d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_color_green.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_large.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_large.png.flat new file mode 100644 index 0000000..1422573 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_large.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_normal.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_normal.png.flat new file mode 100644 index 0000000..704993a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_normal.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_size_selector_bg.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_size_selector_bg.9.png.flat new file mode 100644 index 0000000..9a4b989 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_size_selector_bg.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_small.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_small.png.flat new file mode 100644 index 0000000..11857a4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_small.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_super.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_super.png.flat new file mode 100644 index 0000000..2227ab8 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_font_super.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_icon_app.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_icon_app.png.flat new file mode 100644 index 0000000..27a8412 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_icon_app.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_background.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_background.png.flat new file mode 100644 index 0000000..0bda0bc Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_background.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_down.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_down.9.png.flat new file mode 100644 index 0000000..75f3cd0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_down.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_middle.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_middle.9.png.flat new file mode 100644 index 0000000..f82dd6d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_middle.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_single.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_single.9.png.flat new file mode 100644 index 0000000..d57fe3a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_single.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_up.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_up.9.png.flat new file mode 100644 index 0000000..683b6f1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_blue_up.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_folder.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_folder.9.png.flat new file mode 100644 index 0000000..e75e056 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_folder.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_footer_bg.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_footer_bg.9.png.flat new file mode 100644 index 0000000..3f89243 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_footer_bg.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_down.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_down.9.png.flat new file mode 100644 index 0000000..6b24efc Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_down.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_middle.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_middle.9.png.flat new file mode 100644 index 0000000..4f7fa61 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_middle.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_single.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_single.9.png.flat new file mode 100644 index 0000000..725a39f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_single.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_up.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_up.9.png.flat new file mode 100644 index 0000000..f7b11e8 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_green_up.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_down.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_down.9.png.flat new file mode 100644 index 0000000..82de739 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_down.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_middle.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_middle.9.png.flat new file mode 100644 index 0000000..224f699 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_middle.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_single.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_single.9.png.flat new file mode 100644 index 0000000..6c1bc35 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_single.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_up.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_up.9.png.flat new file mode 100644 index 0000000..d29584e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_red_up.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_down.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_down.9.png.flat new file mode 100644 index 0000000..394cf64 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_down.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_middle.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_middle.9.png.flat new file mode 100644 index 0000000..6a55c1f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_middle.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_single.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_single.9.png.flat new file mode 100644 index 0000000..d3094aa Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_single.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_up.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_up.9.png.flat new file mode 100644 index 0000000..a3558dd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_white_up.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_down.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_down.9.png.flat new file mode 100644 index 0000000..e9e827a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_down.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_middle.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_middle.9.png.flat new file mode 100644 index 0000000..812fbce Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_middle.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_single.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_single.9.png.flat new file mode 100644 index 0000000..c4a34ba Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_single.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_up.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_up.9.png.flat new file mode 100644 index 0000000..a0b2963 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_list_yellow_up.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_menu_delete.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_menu_delete.png.flat new file mode 100644 index 0000000..0d0a7c7 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_menu_delete.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_menu_move.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_menu_move.png.flat new file mode 100644 index 0000000..7b7b9c9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_menu_move.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_new_note_normal.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_new_note_normal.png.flat new file mode 100644 index 0000000..ac802ba Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_new_note_normal.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_new_note_pressed.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_new_note_pressed.png.flat new file mode 100644 index 0000000..ee82d6c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_new_note_pressed.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_note_edit_color_selector_panel.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_note_edit_color_selector_panel.png.flat new file mode 100644 index 0000000..8d48e8e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_note_edit_color_selector_panel.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_notification.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_notification.png.flat new file mode 100644 index 0000000..dbeee0b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_notification.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_search_result.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_search_result.png.flat new file mode 100644 index 0000000..e55822d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_search_result.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_selected.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_selected.png.flat new file mode 100644 index 0000000..be2aedd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_selected.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_title_alert.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_title_alert.png.flat new file mode 100644 index 0000000..8f6daec Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_title_alert.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_title_bar_bg.9.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_title_bar_bg.9.png.flat new file mode 100644 index 0000000..87aeb20 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_title_bar_bg.9.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_blue.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_blue.png.flat new file mode 100644 index 0000000..825e93d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_blue.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_green.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_green.png.flat new file mode 100644 index 0000000..e039b02 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_green.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_red.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_red.png.flat new file mode 100644 index 0000000..a2eb42b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_red.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_white.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_white.png.flat new file mode 100644 index 0000000..c7eff78 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_white.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_yellow.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_yellow.png.flat new file mode 100644 index 0000000..decfaad Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_2x_yellow.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_blue.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_blue.png.flat new file mode 100644 index 0000000..7c3cf3a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_blue.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_green.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_green.png.flat new file mode 100644 index 0000000..1c75d02 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_green.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_red.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_red.png.flat new file mode 100644 index 0000000..e82e879 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_red.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_white.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_white.png.flat new file mode 100644 index 0000000..366fd2c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_white.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_yellow.png.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_yellow.png.flat new file mode 100644 index 0000000..ac23b11 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable-hdpi_widget_4x_yellow.png.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable_new_note.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable_new_note.xml.flat new file mode 100644 index 0000000..8b4b3a5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/drawable_new_note.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_account_dialog_title.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_account_dialog_title.xml.flat new file mode 100644 index 0000000..5fdf154 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_account_dialog_title.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_add_account_text.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_add_account_text.xml.flat new file mode 100644 index 0000000..f2fd34a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_add_account_text.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_datetime_picker.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_datetime_picker.xml.flat new file mode 100644 index 0000000..16cf2ef Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_datetime_picker.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_dialog_edit_text.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_dialog_edit_text.xml.flat new file mode 100644 index 0000000..afee10f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_dialog_edit_text.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_folder_list_item.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_folder_list_item.xml.flat new file mode 100644 index 0000000..b3d34f5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_folder_list_item.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_edit.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_edit.xml.flat new file mode 100644 index 0000000..f22ae63 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_edit.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_edit_list_item.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_edit_list_item.xml.flat new file mode 100644 index 0000000..544cfb6 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_edit_list_item.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_item.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_item.xml.flat new file mode 100644 index 0000000..2ae3d38 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_item.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list.xml.flat new file mode 100644 index 0000000..5ed2c41 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list_dropdown_menu.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list_dropdown_menu.xml.flat new file mode 100644 index 0000000..ef9a690 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list_dropdown_menu.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list_footer.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list_footer.xml.flat new file mode 100644 index 0000000..48aa960 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_note_list_footer.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_settings_header.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_settings_header.xml.flat new file mode 100644 index 0000000..4b1a1cd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_settings_header.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_widget_2x.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_widget_2x.xml.flat new file mode 100644 index 0000000..c923e71 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_widget_2x.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_widget_4x.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_widget_4x.xml.flat new file mode 100644 index 0000000..bd9974e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/layout_widget_4x.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_call_note_edit.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_call_note_edit.xml.flat new file mode 100644 index 0000000..c89b09d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_call_note_edit.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_call_record_folder.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_call_record_folder.xml.flat new file mode 100644 index 0000000..504fc9c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_call_record_folder.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_edit.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_edit.xml.flat new file mode 100644 index 0000000..50229ff Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_edit.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list.xml.flat new file mode 100644 index 0000000..8e2034d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list_dropdown.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list_dropdown.xml.flat new file mode 100644 index 0000000..6e3c761 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list_dropdown.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list_options.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list_options.xml.flat new file mode 100644 index 0000000..94778e9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_note_list_options.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_sub_folder.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_sub_folder.xml.flat new file mode 100644 index 0000000..4e4f099 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/menu_sub_folder.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/raw-zh-rCN_introduction.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/raw-zh-rCN_introduction.flat new file mode 100644 index 0000000..17cb018 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/raw-zh-rCN_introduction.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/raw_introduction.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/raw_introduction.flat new file mode 100644 index 0000000..608c6fd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/raw_introduction.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values-zh-rCN_values-zh-rCN.arsc.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values-zh-rCN_values-zh-rCN.arsc.flat new file mode 100644 index 0000000..caaaa65 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values-zh-rCN_values-zh-rCN.arsc.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values-zh-rTW_values-zh-rTW.arsc.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values-zh-rTW_values-zh-rTW.arsc.flat new file mode 100644 index 0000000..d6baf96 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values-zh-rTW_values-zh-rTW.arsc.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values_values.arsc.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values_values.arsc.flat new file mode 100644 index 0000000..4616917 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/values_values.arsc.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_preferences.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_preferences.xml.flat new file mode 100644 index 0000000..e36a338 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_preferences.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_searchable.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_searchable.xml.flat new file mode 100644 index 0000000..c4dc076 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_searchable.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_widget_2x_info.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_widget_2x_info.xml.flat new file mode 100644 index 0000000..b960844 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_widget_2x_info.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_widget_4x_info.xml.flat b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_widget_4x_info.xml.flat new file mode 100644 index 0000000..1605ca0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/merged_res/debug/xml_widget_4x_info.xml.flat differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/debug.json b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/debug.json new file mode 100644 index 0000000..2750ef9 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/debug.json @@ -0,0 +1,382 @@ +{ + "logs": [ + { + "outputFile": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\values_values.arsc.flat", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\strings.xml", + "from": { + "startLines": "135,76,79,78,77,19,20,21,53,124,125,134,133,132,26,87,88,86,85,84,100,99,98,90,39,38,68,29,30,91,41,80,126,75,71,81,42,48,57,43,67,66,65,61,60,58,59,62,82,63,49,74,50,64,72,47,56,55,54,70,46,69,44,45,73,28,34,36,33,35,32,31,25,24,52,107,106,110,122,115,114,116,117,119,118,108,109,113,111,112,105,120,121,51,131,129,128,130,27,89,97,102,101,103,96,95,94,93,22,23", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "8600,4244,4508,4411,4341,846,890,943,2835,8035,8085,8547,8488,8436,1308,5105,5200,5033,4948,4864,6079,5995,5892,5378,2043,1991,3735,1515,1569,5440,2138,4592,8149,4172,3923,4695,2198,2519,3099,2257,3663,3601,3543,3317,3264,3159,3213,3368,4774,3419,2567,4105,2621,3480,3973,2471,3043,2954,2895,3860,2420,3814,2315,2359,4037,1459,1784,1894,1736,1840,1679,1630,1252,1198,2758,6542,6474,6786,7936,7155,7073,7230,7320,7564,7484,6627,6703,7013,6851,6932,6418,7709,7832,2694,8394,8265,8207,8319,1393,5309,5805,6216,6146,6297,5745,5689,5626,5565,996,1107", + "endLines": "139,76,79,78,77,19,20,21,53,124,125,134,133,132,26,87,88,86,85,84,100,99,98,90,39,38,68,29,30,91,41,80,126,75,71,81,42,48,57,43,67,66,65,61,60,58,59,62,82,63,49,74,50,64,72,47,56,55,54,70,46,69,44,45,73,28,34,36,33,35,32,31,25,24,52,107,106,110,122,115,114,116,117,119,118,108,109,113,111,112,105,120,121,51,131,129,128,130,27,89,97,102,101,103,96,95,94,93,22,23", + "endColumns": "14,95,82,95,68,42,51,51,58,48,62,51,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,77,57,46,58,56,70,60,56,49,51,52,49,49,56,59,52,65,71,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,75,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,62,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89", + "endOffsets": "9008,4335,4586,4502,4405,884,937,990,2889,8079,8143,8594,8541,8482,1387,5194,5303,5099,5027,4942,6140,6073,5989,5434,2100,2037,3808,1563,1624,5540,2192,4689,8199,4238,3967,4768,2251,2561,3153,2309,3729,3657,3595,3362,3311,3207,3258,3413,4826,3474,2615,4166,2688,3537,4031,2513,3093,3037,2948,3917,2465,3854,2353,2414,4099,1509,1834,1942,1778,1888,1730,1673,1302,1246,2829,6621,6536,6845,8027,7224,7149,7314,7478,7703,7558,6697,6780,7067,6926,7007,6468,7826,7930,2752,8430,8313,8259,8388,1453,5372,5886,6291,6210,6386,5799,5739,5683,5620,1101,1192" + }, + "to": { + "startLines": "24,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "985,1338,1434,1517,1613,1682,1725,1777,1829,1888,1937,2000,2052,2110,2161,2245,2339,2447,2518,2602,2685,2751,2834,2936,2997,3059,3110,3188,3241,3301,3406,3465,3567,3622,3693,3742,3820,3878,3925,3984,4041,4112,4173,4230,4280,4332,4385,4435,4485,4542,4602,4655,4721,4793,4855,4918,4965,5020,5108,5166,5228,5278,5323,5366,5426,5493,5548,5603,5656,5703,5756,5812,5860,5915,5968,6044,6128,6195,6259,6355,6429,6510,6599,6762,6906,6985,7060,7142,7201,7281,7361,7416,7538,7641,7704,7745,7798,7855,7929,7994,8062,8148,8228,8297,8391,8450,8505,8567,8627,8737", + "endLines": "28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137", + "endColumns": "14,95,82,95,68,42,51,51,58,48,62,51,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,77,57,46,58,56,70,60,56,49,51,52,49,49,56,59,52,65,71,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,75,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,62,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89", + "endOffsets": "1333,1429,1512,1608,1677,1720,1772,1824,1883,1932,1995,2047,2105,2156,2240,2334,2442,2513,2597,2680,2746,2829,2931,2992,3054,3105,3183,3236,3296,3401,3460,3562,3617,3688,3737,3815,3873,3920,3979,4036,4107,4168,4225,4275,4327,4380,4430,4480,4537,4597,4650,4716,4788,4850,4913,4960,5015,5103,5161,5223,5273,5318,5361,5421,5488,5543,5598,5651,5698,5751,5807,5855,5910,5963,6039,6123,6190,6254,6350,6424,6505,6594,6757,6901,6980,7055,7137,7196,7276,7356,7411,7533,7636,7699,7740,7793,7850,7924,7989,8057,8143,8223,8292,8386,8445,8500,8562,8622,8732,8822" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\FontColor.xml", + "from": { + "startLines": "4,7,6,2,3,5", + "startColumns": "4,4,4,4,4,4", + "startOffsets": "133,255,213,55,95,172", + "endColumns": "38,45,41,39,37,40", + "endOffsets": "167,296,250,90,128,208" + }, + "to": { + "startLines": "12,13,14,15,16,17", + "startColumns": "4,4,4,4,4,4", + "startOffsets": "420,459,505,547,587,625", + "endColumns": "38,45,41,39,37,40", + "endOffsets": "454,500,542,582,620,661" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\arrays.xml", + "from": { + "startLines": "19,26", + "startColumns": "4,4", + "startOffsets": "739,1047", + "endLines": "24,29", + "endColumns": "19,19", + "endOffsets": "1041,1162" + }, + "to": { + "startLines": "2,8", + "startColumns": "4,4", + "startOffsets": "105,300", + "endLines": "7,11", + "endColumns": "19,19", + "endOffsets": "295,415" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\dimens.xml", + "from": { + "startLines": "19,20,21,22,18", + "startColumns": "4,4,4,4,4", + "startOffsets": "764,816,869,922,712", + "endColumns": "51,52,52,51,51", + "endOffsets": "811,864,917,969,759" + }, + "to": { + "startLines": "19,20,21,22,23", + "startColumns": "4,4,4,4,4", + "startOffsets": "723,775,828,881,933", + "endColumns": "51,52,52,51,51", + "endOffsets": "770,823,876,928,980" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\colors.xml", + "from": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "712", + "endColumns": "56", + "endOffsets": "764" + }, + "to": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "666", + "endColumns": "56", + "endOffsets": "718" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\styles.xml", + "from": { + "startLines": "64,69,78,74,36,40,44,49,54,32,59,28,25,19,22,82", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "2563,2773,3155,2990,1368,1555,1744,1935,2144,1181,2356,1059,946,732,841,3370", + "endLines": "67,72,81,76,39,43,47,52,57,35,62,30,27,21,24,85", + "endColumns": "12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12", + "endOffsets": "2765,2982,3364,3147,1549,1738,1927,2136,2348,1362,2555,1173,1053,835,940,3527" + }, + "to": { + "startLines": "138,142,146,150,153,157,161,165,169,173,177,181,184,187,190,193", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "8827,9031,9242,9452,9612,9795,9980,10165,10368,10574,10757,10958,11075,11185,11291,11393", + "endLines": "141,145,149,152,156,160,164,168,172,176,180,183,186,189,192,196", + "endColumns": "12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12", + "endOffsets": "9026,9237,9447,9607,9790,9975,10160,10363,10569,10752,10953,11070,11180,11286,11388,11547" + } + } + ] + }, + { + "outputFile": "net.micode.notes.app-merged_res-5:/values-zh-rCN_values-zh-rCN.arsc.flat", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\strings.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7468,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,52,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7516,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,457,523,596,646,686,734,782,828,873,930,982,1036,1086,1148,1216,1293,1352,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2085,2144,2225,2275,2334,2377,2437,2490,2533,2584,2634,2694,2747,2798,2844,2892,2940,2986,3033,3082,3132,3177,3236,3290,3343,3395,3447,3490,3537,3593,3648,3703,3747,3789,3830,3880,3939,3990,4039,4088,4135,4182,4229,4274,4325,4378,4434,4509,4568,4625,4699,4763,4832,4910,5020,5124,5197,5263,5345,5400,5465,5530,5579,5662,5740,5793,5831,5876,5924,5986,6043,6098,6157,6224,6282,6344,6392,6437,6485,6536,6602", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "endColumns": "14,72,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,64,62,54,59,62,53,61,50,59,52,61,84,58,80,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,52,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,52,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,452,518,591,641,681,729,777,823,868,925,977,1031,1081,1143,1211,1288,1347,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2080,2139,2220,2270,2329,2372,2432,2485,2528,2579,2629,2689,2742,2793,2839,2887,2935,2981,3028,3077,3127,3172,3231,3285,3338,3390,3442,3485,3532,3588,3643,3698,3742,3784,3825,3875,3934,3985,4034,4083,4130,4177,4224,4269,4320,4373,4429,4504,4563,4620,4694,4758,4827,4905,5015,5119,5192,5258,5340,5395,5460,5525,5574,5657,5735,5788,5826,5871,5919,5981,6038,6093,6152,6219,6277,6339,6387,6432,6480,6531,6597,6663" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\arrays.xml", + "from": { + "startLines": "-1", + "startColumns": "-1", + "startOffsets": "-1" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + } + ] + }, + { + "outputFile": "net.micode.notes.app-merged_res-5:/values_values.arsc.flat", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\strings.xml", + "from": { + "startLines": "136,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,51,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "8672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endLines": "140,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,51,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endColumns": "14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,70,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endOffsets": "9080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2760,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "24,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "985,1338,1434,1517,1613,1682,1725,1777,1829,1888,1937,2000,2052,2110,2161,2245,2339,2447,2518,2602,2685,2751,2834,2936,2997,3059,3110,3188,3241,3301,3406,3465,3567,3622,3693,3742,3820,3878,3925,3984,4041,4112,4173,4230,4280,4332,4385,4435,4485,4542,4602,4655,4721,4793,4864,4926,4989,5036,5091,5179,5237,5299,5349,5394,5437,5497,5564,5619,5674,5727,5774,5827,5883,5931,5986,6039,6115,6199,6266,6330,6426,6500,6581,6670,6833,6977,7056,7131,7213,7272,7352,7432,7487,7609,7712,7775,7816,7869,7926,8000,8065,8133,8219,8299,8368,8462,8521,8576,8638,8698,8808", + "endLines": "28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138", + "endColumns": "14,95,82,95,68,42,51,51,58,48,62,51,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,77,57,46,58,56,70,60,56,49,51,52,49,49,56,59,52,65,71,70,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,75,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,62,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89", + "endOffsets": "1333,1429,1512,1608,1677,1720,1772,1824,1883,1932,1995,2047,2105,2156,2240,2334,2442,2513,2597,2680,2746,2829,2931,2992,3054,3105,3183,3236,3296,3401,3460,3562,3617,3688,3737,3815,3873,3920,3979,4036,4107,4168,4225,4275,4327,4380,4430,4480,4537,4597,4650,4716,4788,4859,4921,4984,5031,5086,5174,5232,5294,5344,5389,5432,5492,5559,5614,5669,5722,5769,5822,5878,5926,5981,6034,6110,6194,6261,6325,6421,6495,6576,6665,6828,6972,7051,7126,7208,7267,7347,7427,7482,7604,7707,7770,7811,7864,7921,7995,8060,8128,8214,8294,8363,8457,8516,8571,8633,8693,8803,8893" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\FontColor.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "12,13,14,15,16,17", + "startColumns": "4,4,4,4,4,4", + "startOffsets": "420,459,505,547,587,625", + "endColumns": "38,45,41,39,37,40", + "endOffsets": "454,500,542,582,620,661" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\arrays.xml", + "from": { + "startLines": "-1,-1", + "startColumns": "-1,-1", + "startOffsets": "-1,-1" + }, + "to": { + "startLines": "2,8", + "startColumns": "4,4", + "startOffsets": "105,300", + "endLines": "7,11", + "endColumns": "19,19", + "endOffsets": "295,415" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\dimens.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "19,20,21,22,23", + "startColumns": "4,4,4,4,4", + "startOffsets": "723,775,828,881,933", + "endColumns": "51,52,52,51,51", + "endOffsets": "770,823,876,928,980" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\colors.xml", + "from": { + "startLines": "-1", + "startColumns": "-1", + "startOffsets": "-1" + }, + "to": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "666", + "endColumns": "56", + "endOffsets": "718" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\styles.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "139,143,147,151,154,158,162,166,170,174,178,182,185,188,191,194", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "8898,9102,9313,9523,9683,9866,10051,10236,10439,10645,10828,11029,11146,11256,11362,11464", + "endLines": "142,146,150,153,157,161,165,169,173,177,181,184,187,190,193,197", + "endColumns": "12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12", + "endOffsets": "9097,9308,9518,9678,9861,10046,10231,10434,10640,10823,11024,11141,11251,11357,11459,11618" + } + } + ] + }, + { + "outputFile": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\values-zh-rCN_values-zh-rCN.arsc.flat", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\strings.xml", + "from": { + "startLines": "131,77,76,75,74,19,20,21,134,121,122,130,129,128,26,85,86,84,83,82,98,97,96,88,39,38,66,29,30,89,40,78,123,73,69,80,41,47,55,42,65,64,63,59,58,56,57,60,81,61,48,72,49,62,70,46,54,53,52,68,45,67,43,44,71,28,34,36,33,35,32,31,25,24,51,105,104,108,120,113,112,114,115,117,116,106,107,111,109,110,103,118,119,50,127,125,124,126,27,87,95,100,99,101,94,93,92,91,22,23", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "7241,3907,3840,3766,3715,846,887,936,7421,6730,6776,7188,7133,7082,1225,4390,4459,4330,4264,4200,5134,5073,5009,4593,1888,1836,3278,1398,1452,4648,1951,3981,6834,3655,3438,4089,2011,2298,2715,2065,3217,3163,3111,2912,2863,2767,2816,2959,4150,3007,2342,3595,2388,3058,3482,2254,2667,2610,2554,3382,2209,3339,2116,2158,3535,1346,1657,1755,1609,1707,1561,1515,1173,1119,2497,5516,5456,5742,6655,6058,5988,6123,6202,6387,6313,5592,5659,5932,5800,5866,5406,6492,6576,2443,7043,6934,6885,6980,1288,4537,4949,5249,5190,5317,4900,4854,4805,4753,985,1052", + "endLines": "133,77,76,75,74,19,20,21,134,121,122,130,129,128,26,85,86,84,83,82,98,97,96,88,39,38,66,29,30,89,40,78,123,73,69,80,41,47,55,42,65,64,63,59,58,56,57,60,81,61,48,72,49,62,70,46,54,53,52,68,45,67,43,44,71,28,34,36,33,35,32,31,25,24,51,105,104,108,120,113,112,114,115,117,116,106,107,111,109,110,103,118,119,50,127,125,124,126,27,87,95,100,99,101,94,93,92,91,22,23", + "endColumns": "14,72,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,64,62,54,59,62,53,61,50,59,52,61,84,58,80,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,52,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "7415,3975,3901,3834,3760,881,930,979,7462,6770,6828,7235,7182,7127,1282,4453,4531,4384,4324,4258,5184,5128,5067,4642,1945,1882,3333,1446,1509,4728,2005,4057,6879,3709,3476,4144,2059,2336,2761,2110,3272,3211,3157,2953,2906,2810,2857,3001,4194,3052,2382,3649,2437,3105,3529,2292,2709,2661,2604,3432,2248,3376,2152,2203,3589,1392,1701,1799,1651,1749,1603,1555,1219,1167,2548,5586,5510,5794,6724,6117,6052,6196,6307,6486,6381,5653,5736,5982,5860,5926,5450,6570,6649,2491,7076,6974,6928,7037,1340,4587,5003,5311,5243,5374,4943,4894,4848,4799,1046,1113" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,457,523,596,646,686,734,782,828,873,930,982,1036,1086,1148,1216,1293,1352,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2085,2144,2225,2275,2334,2377,2437,2490,2533,2584,2634,2694,2747,2798,2844,2892,2940,2986,3033,3082,3132,3177,3236,3290,3342,3394,3437,3484,3540,3595,3650,3694,3736,3777,3827,3886,3937,3986,4035,4082,4129,4176,4221,4272,4325,4381,4456,4515,4572,4646,4710,4779,4857,4967,5071,5144,5210,5292,5347,5412,5477,5526,5609,5687,5740,5778,5823,5871,5933,5990,6045,6104,6171,6229,6291,6339,6384,6432,6483,6549", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "endColumns": "14,72,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,64,62,54,59,62,53,61,50,59,52,61,84,58,80,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,52,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,452,518,591,641,681,729,777,823,868,925,977,1031,1081,1143,1211,1288,1347,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2080,2139,2220,2270,2329,2372,2432,2485,2528,2579,2629,2689,2742,2793,2839,2887,2935,2981,3028,3077,3127,3172,3231,3285,3337,3389,3432,3479,3535,3590,3645,3689,3731,3772,3822,3881,3932,3981,4030,4077,4124,4171,4216,4267,4320,4376,4451,4510,4567,4641,4705,4774,4852,4962,5066,5139,5205,5287,5342,5407,5472,5521,5604,5682,5735,5773,5818,5866,5928,5985,6040,6099,6166,6224,6286,6334,6379,6427,6478,6544,6610" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\arrays.xml", + "from": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "712", + "endLines": "21", + "endColumns": "19", + "endOffsets": "817" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + } + ] + }, + { + "outputFile": "net.micode.notes.app-merged_res-5:/values-zh-rTW_values-zh-rTW.arsc.flat", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\arrays.xml", + "from": { + "startLines": "-1", + "startColumns": "-1", + "startOffsets": "-1" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\strings.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,136,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,52,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7505,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,456,522,595,645,685,733,781,827,872,929,981,1035,1085,1147,1215,1292,1351,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2084,2143,2223,2273,2332,2375,2435,2488,2531,2582,2632,2692,2745,2796,2842,2890,2938,2984,3031,3080,3130,3175,3234,3288,3341,3393,3445,3488,3535,3591,3646,3701,3745,3787,3828,3878,3937,3988,4037,4086,4133,4180,4227,4272,4323,4376,4432,4507,4566,4623,4697,4761,4830,4908,5018,5122,5195,5261,5343,5398,5463,5528,5577,5660,5738,5788,5826,5871,5919,5981,6038,6093,6152,6219,6277,6339,6387,6432,6480,6531,6597", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "endColumns": "14,71,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,65,62,54,59,62,53,61,50,59,52,61,83,58,79,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,52,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,49,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,451,517,590,640,680,728,776,822,867,924,976,1030,1080,1142,1210,1287,1346,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2079,2138,2218,2268,2327,2370,2430,2483,2526,2577,2627,2687,2740,2791,2837,2885,2933,2979,3026,3075,3125,3170,3229,3283,3336,3388,3440,3483,3530,3586,3641,3696,3740,3782,3823,3873,3932,3983,4032,4081,4128,4175,4222,4267,4318,4371,4427,4502,4561,4618,4692,4756,4825,4903,5013,5117,5190,5256,5338,5393,5458,5523,5572,5655,5733,5783,5821,5866,5914,5976,6033,6088,6147,6214,6272,6334,6382,6427,6475,6526,6592,6658" + } + } + ] + }, + { + "outputFile": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\values-zh-rTW_values-zh-rTW.arsc.flat", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\arrays.xml", + "from": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "712", + "endLines": "21", + "endColumns": "19", + "endOffsets": "817" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\strings.xml", + "from": { + "startLines": "132,78,77,76,75,19,20,21,135,121,122,131,130,129,26,84,85,83,82,81,97,96,95,87,40,39,67,29,30,88,41,37,123,74,70,79,42,48,56,43,66,65,64,60,59,57,58,61,80,62,49,73,50,63,71,47,55,54,53,69,46,68,44,45,72,28,34,36,33,35,32,31,25,24,52,104,103,107,119,112,111,113,114,116,115,105,106,110,108,109,102,117,118,51,128,126,125,127,27,86,94,99,98,100,93,92,91,90,22,23", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "7230,4001,3934,3860,3809,862,903,952,7410,6717,6763,7177,7122,7071,1241,4376,4445,4316,4249,4185,5119,5058,4994,4579,1985,1933,3372,1414,1468,4634,2048,1821,6821,3749,3532,4074,2108,2395,2809,2162,3311,3257,3205,3006,2957,2861,2910,3053,4135,3101,2439,3689,2485,3152,3576,2351,2761,2704,2648,3476,2306,3433,2213,2255,3629,1362,1673,1771,1625,1723,1577,1531,1189,1135,2591,5501,5441,5727,6640,6043,5973,6108,6187,6372,6298,5577,5644,5917,5785,5851,5391,6477,6561,2540,7032,6923,6874,6969,1304,4523,4934,5234,5175,5302,4885,4839,4790,4738,1001,1068", + "endLines": "134,78,77,76,75,19,20,21,135,121,122,131,130,129,26,84,85,83,82,81,97,96,95,87,40,39,67,29,30,88,41,37,123,74,70,79,42,48,56,43,66,65,64,60,59,57,58,61,80,62,49,73,50,63,71,47,55,54,53,69,46,68,44,45,72,28,34,36,33,35,32,31,25,24,52,104,103,107,119,112,111,113,114,116,115,105,106,110,108,109,102,117,118,51,128,126,125,127,27,86,94,99,98,100,93,92,91,90,22,23", + "endColumns": "14,71,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,65,62,54,59,62,53,61,50,59,52,61,83,58,79,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,49,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "7404,4068,3995,3928,3854,897,946,995,7451,6757,6815,7224,7171,7116,1298,4439,4517,4370,4310,4243,5169,5113,5052,4628,2042,1979,3427,1462,1525,4713,2102,1896,6866,3803,3570,4129,2156,2433,2855,2207,3366,3305,3251,3047,3000,2904,2951,3095,4179,3146,2479,3743,2534,3199,3623,2389,2803,2755,2698,3526,2345,3470,2249,2300,3683,1408,1717,1815,1667,1765,1619,1571,1235,1183,2642,5571,5495,5779,6709,6102,6037,6181,6292,6471,6366,5638,5721,5967,5845,5911,5435,6555,6634,2585,7065,6963,6917,7026,1356,4573,4988,5296,5228,5359,4928,4879,4833,4784,1062,1129" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,456,522,595,645,685,733,781,827,872,929,981,1035,1085,1147,1215,1292,1351,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2084,2143,2223,2273,2332,2375,2435,2488,2531,2582,2632,2692,2745,2796,2842,2890,2938,2984,3031,3080,3130,3175,3234,3288,3340,3392,3435,3482,3538,3593,3648,3692,3734,3775,3825,3884,3935,3984,4033,4080,4127,4174,4219,4270,4323,4379,4454,4513,4570,4644,4708,4777,4855,4965,5069,5142,5208,5290,5345,5410,5475,5524,5607,5685,5735,5773,5818,5866,5928,5985,6040,6099,6166,6224,6286,6334,6379,6427,6478,6544", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "endColumns": "14,71,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,65,62,54,59,62,53,61,50,59,52,61,83,58,79,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,49,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,451,517,590,640,680,728,776,822,867,924,976,1030,1080,1142,1210,1287,1346,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2079,2138,2218,2268,2327,2370,2430,2483,2526,2577,2627,2687,2740,2791,2837,2885,2933,2979,3026,3075,3125,3170,3229,3283,3335,3387,3430,3477,3533,3588,3643,3687,3729,3770,3820,3879,3930,3979,4028,4075,4122,4169,4214,4265,4318,4374,4449,4508,4565,4639,4703,4772,4850,4960,5064,5137,5203,5285,5340,5405,5470,5519,5602,5680,5730,5768,5813,5861,5923,5980,6035,6094,6161,6219,6281,6329,6374,6422,6473,6539,6605" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values-zh-rCN.json b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values-zh-rCN.json new file mode 100644 index 0000000..af38f53 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values-zh-rCN.json @@ -0,0 +1,86 @@ +{ + "logs": [ + { + "outputFile": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-mergeDebugResources-3:\\values-zh-rCN\\values-zh-rCN.xml", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\strings.xml", + "from": { + "startLines": "131,77,76,75,74,19,20,21,134,121,122,130,129,128,26,85,86,84,83,82,98,97,96,88,39,38,66,29,30,89,40,78,123,73,69,80,41,47,55,42,65,64,63,59,58,56,57,60,81,61,48,72,49,62,70,46,54,53,52,68,45,67,43,44,71,28,34,36,33,35,32,31,25,24,51,105,104,108,120,113,112,114,115,117,116,106,107,111,109,110,103,118,119,50,127,125,124,126,27,87,95,100,99,101,94,93,92,91,22,23", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "7241,3907,3840,3766,3715,846,887,936,7421,6730,6776,7188,7133,7082,1225,4390,4459,4330,4264,4200,5134,5073,5009,4593,1888,1836,3278,1398,1452,4648,1951,3981,6834,3655,3438,4089,2011,2298,2715,2065,3217,3163,3111,2912,2863,2767,2816,2959,4150,3007,2342,3595,2388,3058,3482,2254,2667,2610,2554,3382,2209,3339,2116,2158,3535,1346,1657,1755,1609,1707,1561,1515,1173,1119,2497,5516,5456,5742,6655,6058,5988,6123,6202,6387,6313,5592,5659,5932,5800,5866,5406,6492,6576,2443,7043,6934,6885,6980,1288,4537,4949,5249,5190,5317,4900,4854,4805,4753,985,1052", + "endLines": "133,77,76,75,74,19,20,21,134,121,122,130,129,128,26,85,86,84,83,82,98,97,96,88,39,38,66,29,30,89,40,78,123,73,69,80,41,47,55,42,65,64,63,59,58,56,57,60,81,61,48,72,49,62,70,46,54,53,52,68,45,67,43,44,71,28,34,36,33,35,32,31,25,24,51,105,104,108,120,113,112,114,115,117,116,106,107,111,109,110,103,118,119,50,127,125,124,126,27,87,95,100,99,101,94,93,92,91,22,23", + "endColumns": "14,72,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,64,62,54,59,62,53,61,50,59,52,61,84,58,80,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,52,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "7415,3975,3901,3834,3760,881,930,979,7462,6770,6828,7235,7182,7127,1282,4453,4531,4384,4324,4258,5184,5128,5067,4642,1945,1882,3333,1446,1509,4728,2005,4057,6879,3709,3476,4144,2059,2336,2761,2110,3272,3211,3157,2953,2906,2810,2857,3001,4194,3052,2382,3649,2437,3105,3529,2292,2709,2661,2604,3432,2248,3376,2152,2203,3589,1392,1701,1799,1651,1749,1603,1555,1219,1167,2548,5586,5510,5794,6724,6117,6052,6196,6307,6486,6381,5653,5736,5982,5860,5926,5450,6570,6649,2491,7076,6974,6928,7037,1340,4587,5003,5311,5243,5374,4943,4894,4848,4799,1046,1113" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,457,523,596,646,686,734,782,828,873,930,982,1036,1086,1148,1216,1293,1352,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2085,2144,2225,2275,2334,2377,2437,2490,2533,2584,2634,2694,2747,2798,2844,2892,2940,2986,3033,3082,3132,3177,3236,3290,3342,3394,3437,3484,3540,3595,3650,3694,3736,3777,3827,3886,3937,3986,4035,4082,4129,4176,4221,4272,4325,4381,4456,4515,4572,4646,4710,4779,4857,4967,5071,5144,5210,5292,5347,5412,5477,5526,5609,5687,5740,5778,5823,5871,5933,5990,6045,6104,6171,6229,6291,6339,6384,6432,6483,6549", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "endColumns": "14,72,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,64,62,54,59,62,53,61,50,59,52,61,84,58,80,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,52,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,452,518,591,641,681,729,777,823,868,925,977,1031,1081,1143,1211,1288,1347,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2080,2139,2220,2270,2329,2372,2432,2485,2528,2579,2629,2689,2742,2793,2839,2887,2935,2981,3028,3077,3127,3172,3231,3285,3337,3389,3432,3479,3535,3590,3645,3689,3731,3772,3822,3881,3932,3981,4030,4077,4124,4171,4216,4267,4320,4376,4451,4510,4567,4641,4705,4774,4852,4962,5066,5139,5205,5287,5342,5407,5472,5521,5604,5682,5735,5773,5818,5866,5928,5985,6040,6099,6166,6224,6286,6334,6379,6427,6478,6544,6610" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\arrays.xml", + "from": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "712", + "endLines": "21", + "endColumns": "19", + "endOffsets": "817" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + } + ] + }, + { + "outputFile": "net.micode.notes.app-mergeDebugResources-3:/values-zh-rCN/values-zh-rCN.xml", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\strings.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7468,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,52,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7516,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,457,523,596,646,686,734,782,828,873,930,982,1036,1086,1148,1216,1293,1352,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2085,2144,2225,2275,2334,2377,2437,2490,2533,2584,2634,2694,2747,2798,2844,2892,2940,2986,3033,3082,3132,3177,3236,3290,3343,3395,3447,3490,3537,3593,3648,3703,3747,3789,3830,3880,3939,3990,4039,4088,4135,4182,4229,4274,4325,4378,4434,4509,4568,4625,4699,4763,4832,4910,5020,5124,5197,5263,5345,5400,5465,5530,5579,5662,5740,5793,5831,5876,5924,5986,6043,6098,6157,6224,6282,6344,6392,6437,6485,6536,6602", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "endColumns": "14,72,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,64,62,54,59,62,53,61,50,59,52,61,84,58,80,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,52,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,52,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,452,518,591,641,681,729,777,823,868,925,977,1031,1081,1143,1211,1288,1347,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2080,2139,2220,2270,2329,2372,2432,2485,2528,2579,2629,2689,2742,2793,2839,2887,2935,2981,3028,3077,3127,3172,3231,3285,3338,3390,3442,3485,3532,3588,3643,3698,3742,3784,3825,3875,3934,3985,4034,4083,4130,4177,4224,4269,4320,4373,4429,4504,4563,4620,4694,4758,4827,4905,5015,5119,5192,5258,5340,5395,5460,5525,5574,5657,5735,5788,5826,5871,5919,5981,6038,6093,6152,6219,6277,6339,6387,6432,6480,6531,6597,6663" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rCN\\arrays.xml", + "from": { + "startLines": "-1", + "startColumns": "-1", + "startOffsets": "-1" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values-zh-rTW.json b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values-zh-rTW.json new file mode 100644 index 0000000..61ac59c --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values-zh-rTW.json @@ -0,0 +1,86 @@ +{ + "logs": [ + { + "outputFile": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-mergeDebugResources-3:\\values-zh-rTW\\values-zh-rTW.xml", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\arrays.xml", + "from": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "712", + "endLines": "21", + "endColumns": "19", + "endOffsets": "817" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\strings.xml", + "from": { + "startLines": "132,78,77,76,75,19,20,21,135,121,122,131,130,129,26,84,85,83,82,81,97,96,95,87,40,39,67,29,30,88,41,37,123,74,70,79,42,48,56,43,66,65,64,60,59,57,58,61,80,62,49,73,50,63,71,47,55,54,53,69,46,68,44,45,72,28,34,36,33,35,32,31,25,24,52,104,103,107,119,112,111,113,114,116,115,105,106,110,108,109,102,117,118,51,128,126,125,127,27,86,94,99,98,100,93,92,91,90,22,23", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "7230,4001,3934,3860,3809,862,903,952,7410,6717,6763,7177,7122,7071,1241,4376,4445,4316,4249,4185,5119,5058,4994,4579,1985,1933,3372,1414,1468,4634,2048,1821,6821,3749,3532,4074,2108,2395,2809,2162,3311,3257,3205,3006,2957,2861,2910,3053,4135,3101,2439,3689,2485,3152,3576,2351,2761,2704,2648,3476,2306,3433,2213,2255,3629,1362,1673,1771,1625,1723,1577,1531,1189,1135,2591,5501,5441,5727,6640,6043,5973,6108,6187,6372,6298,5577,5644,5917,5785,5851,5391,6477,6561,2540,7032,6923,6874,6969,1304,4523,4934,5234,5175,5302,4885,4839,4790,4738,1001,1068", + "endLines": "134,78,77,76,75,19,20,21,135,121,122,131,130,129,26,84,85,83,82,81,97,96,95,87,40,39,67,29,30,88,41,37,123,74,70,79,42,48,56,43,66,65,64,60,59,57,58,61,80,62,49,73,50,63,71,47,55,54,53,69,46,68,44,45,72,28,34,36,33,35,32,31,25,24,52,104,103,107,119,112,111,113,114,116,115,105,106,110,108,109,102,117,118,51,128,126,125,127,27,86,94,99,98,100,93,92,91,90,22,23", + "endColumns": "14,71,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,65,62,54,59,62,53,61,50,59,52,61,83,58,79,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,49,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "7404,4068,3995,3928,3854,897,946,995,7451,6757,6815,7224,7171,7116,1298,4439,4517,4370,4310,4243,5169,5113,5052,4628,2042,1979,3427,1462,1525,4713,2102,1896,6866,3803,3570,4129,2156,2433,2855,2207,3366,3305,3251,3047,3000,2904,2951,3095,4179,3146,2479,3743,2534,3199,3623,2389,2803,2755,2698,3526,2345,3470,2249,2300,3683,1408,1717,1815,1667,1765,1619,1571,1235,1183,2642,5571,5495,5779,6709,6102,6037,6181,6292,6471,6366,5638,5721,5967,5845,5911,5435,6555,6634,2585,7065,6963,6917,7026,1356,4573,4988,5296,5228,5359,4928,4879,4833,4784,1062,1129" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,456,522,595,645,685,733,781,827,872,929,981,1035,1085,1147,1215,1292,1351,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2084,2143,2223,2273,2332,2375,2435,2488,2531,2582,2632,2692,2745,2796,2842,2890,2938,2984,3031,3080,3130,3175,3234,3288,3340,3392,3435,3482,3538,3593,3648,3692,3734,3775,3825,3884,3935,3984,4033,4080,4127,4174,4219,4270,4323,4379,4454,4513,4570,4644,4708,4777,4855,4965,5069,5142,5208,5290,5345,5410,5475,5524,5607,5685,5735,5773,5818,5866,5928,5985,6040,6099,6166,6224,6286,6334,6379,6427,6478,6544", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117", + "endColumns": "14,71,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,65,62,54,59,62,53,61,50,59,52,61,83,58,79,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,49,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,451,517,590,640,680,728,776,822,867,924,976,1030,1080,1142,1210,1287,1346,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2079,2138,2218,2268,2327,2370,2430,2483,2526,2577,2627,2687,2740,2791,2837,2885,2933,2979,3026,3075,3125,3170,3229,3283,3335,3387,3430,3477,3533,3588,3643,3687,3729,3770,3820,3879,3930,3979,4028,4075,4122,4169,4214,4265,4318,4374,4449,4508,4565,4639,4703,4772,4850,4960,5064,5137,5203,5285,5340,5405,5470,5519,5602,5680,5730,5768,5813,5861,5923,5980,6035,6094,6161,6219,6281,6329,6374,6422,6473,6539,6605" + } + } + ] + }, + { + "outputFile": "net.micode.notes.app-mergeDebugResources-3:/values-zh-rTW/values-zh-rTW.xml", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\arrays.xml", + "from": { + "startLines": "-1", + "startColumns": "-1", + "startOffsets": "-1" + }, + "to": { + "startLines": "2", + "startColumns": "4", + "startOffsets": "105", + "endLines": "5", + "endColumns": "19", + "endOffsets": "210" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values-zh-rTW\\strings.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,136,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7457,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,52,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,7505,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "6,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "215,384,456,522,595,645,685,733,781,827,872,929,981,1035,1085,1147,1215,1292,1351,1417,1480,1535,1595,1658,1712,1774,1825,1885,1938,2000,2084,2143,2223,2273,2332,2375,2435,2488,2531,2582,2632,2692,2745,2796,2842,2890,2938,2984,3031,3080,3130,3175,3234,3288,3341,3393,3445,3488,3535,3591,3646,3701,3745,3787,3828,3878,3937,3988,4037,4086,4133,4180,4227,4272,4323,4376,4432,4507,4566,4623,4697,4761,4830,4908,5018,5122,5195,5261,5343,5398,5463,5528,5577,5660,5738,5788,5826,5871,5919,5981,6038,6093,6152,6219,6277,6339,6387,6432,6480,6531,6597", + "endLines": "8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118", + "endColumns": "14,71,65,72,49,39,47,47,45,44,56,51,53,49,61,67,76,58,65,62,54,59,62,53,61,50,59,52,61,83,58,79,49,58,42,59,52,42,50,49,59,52,50,45,47,47,45,46,48,49,44,58,53,52,51,51,42,46,55,54,54,43,41,40,49,58,50,48,48,46,46,46,44,50,52,55,74,58,56,73,63,68,77,109,103,72,65,81,54,64,64,48,82,77,49,37,44,47,61,56,54,58,66,57,61,47,44,47,50,65,65", + "endOffsets": "379,451,517,590,640,680,728,776,822,867,924,976,1030,1080,1142,1210,1287,1346,1412,1475,1530,1590,1653,1707,1769,1820,1880,1933,1995,2079,2138,2218,2268,2327,2370,2430,2483,2526,2577,2627,2687,2740,2791,2837,2885,2933,2979,3026,3075,3125,3170,3229,3283,3336,3388,3440,3483,3530,3586,3641,3696,3740,3782,3823,3873,3932,3983,4032,4081,4128,4175,4222,4267,4318,4371,4427,4502,4561,4618,4692,4756,4825,4903,5013,5117,5190,5256,5338,5393,5458,5523,5572,5655,5733,5783,5821,5866,5914,5976,6033,6088,6147,6214,6272,6334,6382,6427,6475,6526,6592,6658" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values.json b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values.json new file mode 100644 index 0000000..d167260 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/multi-v2/values.json @@ -0,0 +1,218 @@ +{ + "logs": [ + { + "outputFile": "net.micode.notes.app-mergeDebugResources-3:/values/values.xml", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\strings.xml", + "from": { + "startLines": "136,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,51,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,4,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "8672,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2694,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endLines": "140,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,51,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endColumns": "14,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,70,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "endOffsets": "9080,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,2760,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "24,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "985,1338,1434,1517,1613,1682,1725,1777,1829,1888,1937,2000,2052,2110,2161,2245,2339,2447,2518,2602,2685,2751,2834,2936,2997,3059,3110,3188,3241,3301,3406,3465,3567,3622,3693,3742,3820,3878,3925,3984,4041,4112,4173,4230,4280,4332,4385,4435,4485,4542,4602,4655,4721,4793,4864,4926,4989,5036,5091,5179,5237,5299,5349,5394,5437,5497,5564,5619,5674,5727,5774,5827,5883,5931,5986,6039,6115,6199,6266,6330,6426,6500,6581,6670,6833,6977,7056,7131,7213,7272,7352,7432,7487,7609,7712,7775,7816,7869,7926,8000,8065,8133,8219,8299,8368,8462,8521,8576,8638,8698,8808", + "endLines": "28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138", + "endColumns": "14,95,82,95,68,42,51,51,58,48,62,51,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,77,57,46,58,56,70,60,56,49,51,52,49,49,56,59,52,65,71,70,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,75,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,62,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89", + "endOffsets": "1333,1429,1512,1608,1677,1720,1772,1824,1883,1932,1995,2047,2105,2156,2240,2334,2442,2513,2597,2680,2746,2829,2931,2992,3054,3105,3183,3236,3296,3401,3460,3562,3617,3688,3737,3815,3873,3920,3979,4036,4107,4168,4225,4275,4327,4380,4430,4480,4537,4597,4650,4716,4788,4859,4921,4984,5031,5086,5174,5232,5294,5344,5389,5432,5492,5559,5614,5669,5722,5769,5822,5878,5926,5981,6034,6110,6194,6261,6325,6421,6495,6576,6665,6828,6972,7051,7126,7208,7267,7347,7427,7482,7604,7707,7770,7811,7864,7921,7995,8060,8128,8214,8294,8363,8457,8516,8571,8633,8693,8803,8893" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\FontColor.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "12,13,14,15,16,17", + "startColumns": "4,4,4,4,4,4", + "startOffsets": "420,459,505,547,587,625", + "endColumns": "38,45,41,39,37,40", + "endOffsets": "454,500,542,582,620,661" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\arrays.xml", + "from": { + "startLines": "-1,-1", + "startColumns": "-1,-1", + "startOffsets": "-1,-1" + }, + "to": { + "startLines": "2,8", + "startColumns": "4,4", + "startOffsets": "105,300", + "endLines": "7,11", + "endColumns": "19,19", + "endOffsets": "295,415" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\dimens.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "19,20,21,22,23", + "startColumns": "4,4,4,4,4", + "startOffsets": "723,775,828,881,933", + "endColumns": "51,52,52,51,51", + "endOffsets": "770,823,876,928,980" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\colors.xml", + "from": { + "startLines": "-1", + "startColumns": "-1", + "startOffsets": "-1" + }, + "to": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "666", + "endColumns": "56", + "endOffsets": "718" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\styles.xml", + "from": { + "startLines": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startColumns": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1", + "startOffsets": "-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1" + }, + "to": { + "startLines": "139,143,147,151,154,158,162,166,170,174,178,182,185,188,191,194", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "8898,9102,9313,9523,9683,9866,10051,10236,10439,10645,10828,11029,11146,11256,11362,11464", + "endLines": "142,146,150,153,157,161,165,169,173,177,181,184,187,190,193,197", + "endColumns": "12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12", + "endOffsets": "9097,9308,9518,9678,9861,10046,10231,10434,10640,10823,11024,11141,11251,11357,11459,11618" + } + } + ] + }, + { + "outputFile": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-mergeDebugResources-3:\\values\\values.xml", + "map": [ + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\strings.xml", + "from": { + "startLines": "135,76,79,78,77,19,20,21,53,124,125,134,133,132,26,87,88,86,85,84,100,99,98,90,39,38,68,29,30,91,41,80,126,75,71,81,42,48,57,43,67,66,65,61,60,58,59,62,82,63,49,74,50,64,72,47,56,55,54,70,46,69,44,45,73,28,34,36,33,35,32,31,25,24,52,107,106,110,122,115,114,116,117,119,118,108,109,113,111,112,105,120,121,51,131,129,128,130,27,89,97,102,101,103,96,95,94,93,22,23", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "8600,4244,4508,4411,4341,846,890,943,2835,8035,8085,8547,8488,8436,1308,5105,5200,5033,4948,4864,6079,5995,5892,5378,2043,1991,3735,1515,1569,5440,2138,4592,8149,4172,3923,4695,2198,2519,3099,2257,3663,3601,3543,3317,3264,3159,3213,3368,4774,3419,2567,4105,2621,3480,3973,2471,3043,2954,2895,3860,2420,3814,2315,2359,4037,1459,1784,1894,1736,1840,1679,1630,1252,1198,2758,6542,6474,6786,7936,7155,7073,7230,7320,7564,7484,6627,6703,7013,6851,6932,6418,7709,7832,2694,8394,8265,8207,8319,1393,5309,5805,6216,6146,6297,5745,5689,5626,5565,996,1107", + "endLines": "139,76,79,78,77,19,20,21,53,124,125,134,133,132,26,87,88,86,85,84,100,99,98,90,39,38,68,29,30,91,41,80,126,75,71,81,42,48,57,43,67,66,65,61,60,58,59,62,82,63,49,74,50,64,72,47,56,55,54,70,46,69,44,45,73,28,34,36,33,35,32,31,25,24,52,107,106,110,122,115,114,116,117,119,118,108,109,113,111,112,105,120,121,51,131,129,128,130,27,89,97,102,101,103,96,95,94,93,22,23", + "endColumns": "14,95,82,95,68,42,51,51,58,48,62,51,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,77,57,46,58,56,70,60,56,49,51,52,49,49,56,59,52,65,71,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,75,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,62,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89", + "endOffsets": "9008,4335,4586,4502,4405,884,937,990,2889,8079,8143,8594,8541,8482,1387,5194,5303,5099,5027,4942,6140,6073,5989,5434,2100,2037,3808,1563,1624,5540,2192,4689,8199,4238,3967,4768,2251,2561,3153,2309,3729,3657,3595,3362,3311,3207,3258,3413,4826,3474,2615,4166,2688,3537,4031,2513,3093,3037,2948,3917,2465,3854,2353,2414,4099,1509,1834,1942,1778,1888,1730,1673,1302,1246,2829,6621,6536,6845,8027,7224,7149,7314,7478,7703,7558,6697,6780,7067,6926,7007,6468,7826,7930,2752,8430,8313,8259,8388,1453,5372,5886,6291,6210,6386,5799,5739,5683,5620,1101,1192" + }, + "to": { + "startLines": "24,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "985,1338,1434,1517,1613,1682,1725,1777,1829,1888,1937,2000,2052,2110,2161,2245,2339,2447,2518,2602,2685,2751,2834,2936,2997,3059,3110,3188,3241,3301,3406,3465,3567,3622,3693,3742,3820,3878,3925,3984,4041,4112,4173,4230,4280,4332,4385,4435,4485,4542,4602,4655,4721,4793,4855,4918,4965,5020,5108,5166,5228,5278,5323,5366,5426,5493,5548,5603,5656,5703,5756,5812,5860,5915,5968,6044,6128,6195,6259,6355,6429,6510,6599,6762,6906,6985,7060,7142,7201,7281,7361,7416,7538,7641,7704,7745,7798,7855,7929,7994,8062,8148,8228,8297,8391,8450,8505,8567,8627,8737", + "endLines": "28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137", + "endColumns": "14,95,82,95,68,42,51,51,58,48,62,51,57,50,83,93,107,70,83,82,65,82,101,60,61,50,77,52,59,104,58,101,54,70,48,77,57,46,58,56,70,60,56,49,51,52,49,49,56,59,52,65,71,61,62,46,54,87,57,61,49,44,42,59,66,54,54,52,46,52,55,47,54,52,75,83,66,63,95,73,80,88,162,143,78,74,81,58,79,79,54,121,102,62,40,52,56,73,64,67,85,79,68,93,58,54,61,59,109,89", + "endOffsets": "1333,1429,1512,1608,1677,1720,1772,1824,1883,1932,1995,2047,2105,2156,2240,2334,2442,2513,2597,2680,2746,2829,2931,2992,3054,3105,3183,3236,3296,3401,3460,3562,3617,3688,3737,3815,3873,3920,3979,4036,4107,4168,4225,4275,4327,4380,4430,4480,4537,4597,4650,4716,4788,4850,4913,4960,5015,5103,5161,5223,5273,5318,5361,5421,5488,5543,5598,5651,5698,5751,5807,5855,5910,5963,6039,6123,6190,6254,6350,6424,6505,6594,6757,6901,6980,7055,7137,7196,7276,7356,7411,7533,7636,7699,7740,7793,7850,7924,7989,8057,8143,8223,8292,8386,8445,8500,8562,8622,8732,8822" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\FontColor.xml", + "from": { + "startLines": "4,7,6,2,3,5", + "startColumns": "4,4,4,4,4,4", + "startOffsets": "133,255,213,55,95,172", + "endColumns": "38,45,41,39,37,40", + "endOffsets": "167,296,250,90,128,208" + }, + "to": { + "startLines": "12,13,14,15,16,17", + "startColumns": "4,4,4,4,4,4", + "startOffsets": "420,459,505,547,587,625", + "endColumns": "38,45,41,39,37,40", + "endOffsets": "454,500,542,582,620,661" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\arrays.xml", + "from": { + "startLines": "19,26", + "startColumns": "4,4", + "startOffsets": "739,1047", + "endLines": "24,29", + "endColumns": "19,19", + "endOffsets": "1041,1162" + }, + "to": { + "startLines": "2,8", + "startColumns": "4,4", + "startOffsets": "105,300", + "endLines": "7,11", + "endColumns": "19,19", + "endOffsets": "295,415" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\dimens.xml", + "from": { + "startLines": "19,20,21,22,18", + "startColumns": "4,4,4,4,4", + "startOffsets": "764,816,869,922,712", + "endColumns": "51,52,52,51,51", + "endOffsets": "811,864,917,969,759" + }, + "to": { + "startLines": "19,20,21,22,23", + "startColumns": "4,4,4,4,4", + "startOffsets": "723,775,828,881,933", + "endColumns": "51,52,52,51,51", + "endOffsets": "770,823,876,928,980" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\colors.xml", + "from": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "712", + "endColumns": "56", + "endOffsets": "764" + }, + "to": { + "startLines": "18", + "startColumns": "4", + "startOffsets": "666", + "endColumns": "56", + "endOffsets": "718" + } + }, + { + "source": "D:\\MINOTES\\app\\src\\main\\res\\values\\styles.xml", + "from": { + "startLines": "64,69,78,74,36,40,44,49,54,32,59,28,25,19,22,82", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "2563,2773,3155,2990,1368,1555,1744,1935,2144,1181,2356,1059,946,732,841,3370", + "endLines": "67,72,81,76,39,43,47,52,57,35,62,30,27,21,24,85", + "endColumns": "12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12", + "endOffsets": "2765,2982,3364,3147,1549,1738,1927,2136,2348,1362,2555,1173,1053,835,940,3527" + }, + "to": { + "startLines": "138,142,146,150,153,157,161,165,169,173,177,181,184,187,190,193", + "startColumns": "4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4", + "startOffsets": "8827,9031,9242,9452,9612,9795,9980,10165,10368,10574,10757,10958,11075,11185,11291,11393", + "endLines": "141,145,149,152,156,160,164,168,172,176,180,183,186,189,192,196", + "endColumns": "12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12", + "endOffsets": "9026,9237,9447,9607,9790,9975,10160,10363,10569,10752,10953,11070,11180,11286,11388,11547" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/single/debug.json b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/single/debug.json new file mode 100644 index 0000000..221959c --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/merged_res_blame_folder/debug/out/single/debug.json @@ -0,0 +1,406 @@ +[ + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\raw_introduction.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\raw\\introduction" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\raw-zh-rCN_introduction.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\raw-zh-rCN\\introduction" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_call_record.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\call_record.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_edit.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_edit.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_menu_delete.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\menu_delete.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_red.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_red.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_up.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_up.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_title_green.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_title_green.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_white_single.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_white_single.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_widget_4x.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\widget_4x.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_datetime_picker.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\datetime_picker.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_folder.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_folder.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_middle.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_middle.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_list.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_list.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_notification.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\notification.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_4x_red.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_4x_red.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_yellow.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_yellow.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_footer_bg.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_footer_bg.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_blue.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_blue.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_4x_yellow.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_4x_yellow.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\xml_searchable.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\xml\\searchable.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_down.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_down.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_title_blue.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_title_blue.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_yellow_down.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_yellow_down.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_yellow_middle.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_yellow_middle.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_4x_white.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_4x_white.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_white_up.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_white_up.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_menu_move.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\menu_move.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_private_folder_menu.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\private_folder_menu.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_yellow.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_yellow.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_yellow_up.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_yellow_up.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_new_note_normal.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\new_note_normal.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_add_account_text.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\add_account_text.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_selected.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\selected.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_delete.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\delete.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_green.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_green.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_call_record_folder.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\call_record_folder.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_settings_header.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\settings_header.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_small.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_small.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_4x_green.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_4x_green.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_yellow_single.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_yellow_single.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_account_dialog_title.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\account_dialog_title.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_item.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_item.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\xml_preferences.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\xml\\preferences.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_list_footer.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_list_footer.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_white.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_white.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_title_alert.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\title_alert.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_note_list_options.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\note_list_options.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_white.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_white.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_title_yellow.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_title_yellow.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_white_down.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_white_down.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\color_secondary_text_dark.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\color\\secondary_text_dark.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_white_middle.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_white_middle.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_blue_up.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_blue_up.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_private_folder_options.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\private_folder_options.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_4x_blue.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_4x_blue.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_title_white.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_title_white.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_large.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_large.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable_new_note.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable\\new_note.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_dialog_edit_text.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\dialog_edit_text.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_edit_list_item.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_edit_list_item.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_red.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_red.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\color_primary_text_dark.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\color\\primary_text_dark.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_folder_list_item.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\folder_list_item.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\xml_widget_2x_info.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\xml\\widget_2x_info.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_icon_app.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\icon_app.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_green_single.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_green_single.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_title_bar_bg.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\title_bar_bg.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_widget_2x.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\widget_2x.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_bg_btn_set_color.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\bg_btn_set_color.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_new_note_pressed.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\new_note_pressed.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_blue_middle.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_blue_middle.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_background.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_background.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_note_edit_color_selector_panel.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\note_edit_color_selector_panel.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_clock.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\clock.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_widget_2x_green.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\widget_2x_green.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_note_list.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\note_list.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_blue.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_blue.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_blue_down.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_blue_down.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_dropdown_icon.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\dropdown_icon.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_green_up.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_green_up.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_green_middle.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_green_middle.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_search_result.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\search_result.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\layout_note_list_dropdown_menu.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\layout\\note_list_dropdown_menu.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_note_edit.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\note_edit.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_green_down.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_green_down.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_edit_title_red.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\edit_title_red.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_bg_color_btn_mask.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\bg_color_btn_mask.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_normal.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_normal.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_call_note_edit.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\call_note_edit.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_blue_single.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_blue_single.9.png" + }, + { + "merged": "net.micode.notes.app-merged_res-5:/menu_note_list_options.xml.flat", + "source": "net.micode.notes.app-main-7:/menu/note_list_options.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_super.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_super.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable_menu_visible.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable\\menu_visible.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_color_green.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_color_green.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\xml_widget_4x_info.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\xml\\widget_4x_info.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable_menu_invisible.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable\\menu_invisible.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_sub_folder.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\sub_folder.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\menu_note_list_dropdown.xml.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\menu\\note_list_dropdown.xml" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_font_size_selector_bg.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\font_size_selector_bg.9.png" + }, + { + "merged": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-merged_res-5:\\drawable-hdpi_list_red_single.9.png.flat", + "source": "C:\\Users\\82590\\.gradle\\daemon\\7.5\\net.micode.notes.app-main-7:\\drawable-hdpi\\list_red_single.9.png" + } +] \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/navigation_json/debug/navigation.json b/other/软件原完成代码/minotes/app/build/intermediates/navigation_json/debug/navigation.json new file mode 100644 index 0000000..0637a08 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/navigation_json/debug/navigation.json @@ -0,0 +1 @@ +[] \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml b/other/软件原完成代码/minotes/app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml new file mode 100644 index 0000000..ef36dbf --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml @@ -0,0 +1,151 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/packaged_manifests/debug/output-metadata.json b/other/软件原完成代码/minotes/app/build/intermediates/packaged_manifests/debug/output-metadata.json new file mode 100644 index 0000000..eea66e3 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/packaged_manifests/debug/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "PACKAGED_MANIFESTS", + "kind": "Directory" + }, + "applicationId": "net.micode.notes", + "variantName": "debug", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1, + "versionName": "0.1", + "outputFile": "AndroidManifest.xml" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/processed_res/debug/out/output-metadata.json b/other/软件原完成代码/minotes/app/build/intermediates/processed_res/debug/out/output-metadata.json new file mode 100644 index 0000000..1eefece --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/processed_res/debug/out/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "PROCESSED_RES", + "kind": "Directory" + }, + "applicationId": "net.micode.notes", + "variantName": "debug", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1, + "versionName": "0.1", + "outputFile": "resources-debug.ap_" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/processed_res/debug/out/resources-debug.ap_ b/other/软件原完成代码/minotes/app/build/intermediates/processed_res/debug/out/resources-debug.ap_ new file mode 100644 index 0000000..e369246 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/processed_res/debug/out/resources-debug.ap_ differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/BuildConfig.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/BuildConfig.dex new file mode 100644 index 0000000..4a21e88 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/BuildConfig.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Contact.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Contact.dex new file mode 100644 index 0000000..2ef7405 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Contact.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$CallNote.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$CallNote.dex new file mode 100644 index 0000000..678b836 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$CallNote.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$DataColumns.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$DataColumns.dex new file mode 100644 index 0000000..1c0dee7 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$DataColumns.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$DataConstants.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$DataConstants.dex new file mode 100644 index 0000000..4431452 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$DataConstants.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$NoteColumns.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$NoteColumns.dex new file mode 100644 index 0000000..3e6ef4e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$NoteColumns.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$TextNote.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$TextNote.dex new file mode 100644 index 0000000..fab84e3 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes$TextNote.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes.dex new file mode 100644 index 0000000..935f7b2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/Notes.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesDatabaseHelper$TABLE.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesDatabaseHelper$TABLE.dex new file mode 100644 index 0000000..00400e4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesDatabaseHelper$TABLE.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesDatabaseHelper.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesDatabaseHelper.dex new file mode 100644 index 0000000..4387715 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesDatabaseHelper.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesProvider.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesProvider.dex new file mode 100644 index 0000000..3747236 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/data/NotesProvider.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/MetaData.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/MetaData.dex new file mode 100644 index 0000000..745df43 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/MetaData.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/Node.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/Node.dex new file mode 100644 index 0000000..6bd3c6c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/Node.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/SqlData.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/SqlData.dex new file mode 100644 index 0000000..ae9c160 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/SqlData.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/SqlNote.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/SqlNote.dex new file mode 100644 index 0000000..b139a21 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/SqlNote.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/Task.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/Task.dex new file mode 100644 index 0000000..137bd02 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/Task.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/TaskList.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/TaskList.dex new file mode 100644 index 0000000..82a15e2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/data/TaskList.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/exception/ActionFailureException.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/exception/ActionFailureException.dex new file mode 100644 index 0000000..ce86fe4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/exception/ActionFailureException.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/exception/NetworkFailureException.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/exception/NetworkFailureException.dex new file mode 100644 index 0000000..e07d5b4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/exception/NetworkFailureException.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask$1.dex new file mode 100644 index 0000000..dce0337 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask$OnCompleteListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask$OnCompleteListener.dex new file mode 100644 index 0000000..9db738a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask$OnCompleteListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask.dex new file mode 100644 index 0000000..48c25f1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskASyncTask.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskClient.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskClient.dex new file mode 100644 index 0000000..9af01f3 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskClient.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskManager.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskManager.dex new file mode 100644 index 0000000..cacc62c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskManager.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskSyncService$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskSyncService$1.dex new file mode 100644 index 0000000..e1e0d98 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskSyncService$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskSyncService.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskSyncService.dex new file mode 100644 index 0000000..f06038a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/gtask/remote/GTaskSyncService.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/Note$NoteData.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/Note$NoteData.dex new file mode 100644 index 0000000..3432b84 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/Note$NoteData.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/Note.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/Note.dex new file mode 100644 index 0000000..10dc925 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/Note.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/WorkingNote$NoteSettingChangedListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/WorkingNote$NoteSettingChangedListener.dex new file mode 100644 index 0000000..4cc87c9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/WorkingNote$NoteSettingChangedListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/WorkingNote.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/WorkingNote.dex new file mode 100644 index 0000000..171c306 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/model/WorkingNote.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/BackupUtils$TextExport.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/BackupUtils$TextExport.dex new file mode 100644 index 0000000..1f0771f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/BackupUtils$TextExport.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/BackupUtils.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/BackupUtils.dex new file mode 100644 index 0000000..b9089bf Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/BackupUtils.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/DataUtils.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/DataUtils.dex new file mode 100644 index 0000000..c11ddc8 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/DataUtils.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/FontColorParser$TextAppearanceResources.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/FontColorParser$TextAppearanceResources.dex new file mode 100644 index 0000000..63ffdc9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/FontColorParser$TextAppearanceResources.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/FontColorParser.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/FontColorParser.dex new file mode 100644 index 0000000..2f237eb Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/FontColorParser.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/GTaskStringUtils.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/GTaskStringUtils.dex new file mode 100644 index 0000000..fc4e994 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/GTaskStringUtils.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$NoteBgResources.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$NoteBgResources.dex new file mode 100644 index 0000000..f187bd2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$NoteBgResources.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$NoteItemBgResources.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$NoteItemBgResources.dex new file mode 100644 index 0000000..7f59274 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$NoteItemBgResources.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$TextAppearanceResources.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$TextAppearanceResources.dex new file mode 100644 index 0000000..0bfd54b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$TextAppearanceResources.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$WidgetBgResources.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$WidgetBgResources.dex new file mode 100644 index 0000000..9abe4b0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser$WidgetBgResources.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser.dex new file mode 100644 index 0000000..61a84ce Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/tool/ResourceParser.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex new file mode 100644 index 0000000..3c34e13 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex new file mode 100644 index 0000000..f079529 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmReceiver.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmReceiver.dex new file mode 100644 index 0000000..ad3c500 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmReceiver.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex new file mode 100644 index 0000000..cdc243e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex new file mode 100644 index 0000000..8d30492 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex new file mode 100644 index 0000000..e43411c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex new file mode 100644 index 0000000..0dc26c4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$OnDateTimeChangedListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$OnDateTimeChangedListener.dex new file mode 100644 index 0000000..0df2655 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$OnDateTimeChangedListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex new file mode 100644 index 0000000..5368171 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex new file mode 100644 index 0000000..30c37a7 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$OnDateTimeSetListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$OnDateTimeSetListener.dex new file mode 100644 index 0000000..d9419a5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$OnDateTimeSetListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex new file mode 100644 index 0000000..16910cf Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex new file mode 100644 index 0000000..cccb68c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex new file mode 100644 index 0000000..8980125 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/FoldersListAdapter$FolderListItem.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/FoldersListAdapter$FolderListItem.dex new file mode 100644 index 0000000..6ac7315 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/FoldersListAdapter$FolderListItem.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/FoldersListAdapter.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/FoldersListAdapter.dex new file mode 100644 index 0000000..7a2ff09 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/FoldersListAdapter.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex new file mode 100644 index 0000000..3edbcd4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex new file mode 100644 index 0000000..bc723c3 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex new file mode 100644 index 0000000..6eb23d0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$HeadViewHolder.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$HeadViewHolder.dex new file mode 100644 index 0000000..2c6fa0d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$HeadViewHolder.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex new file mode 100644 index 0000000..9a2dba3 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText$1.dex new file mode 100644 index 0000000..fcdad97 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText$OnTextViewChangeListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText$OnTextViewChangeListener.dex new file mode 100644 index 0000000..1323e64 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText$OnTextViewChangeListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText.dex new file mode 100644 index 0000000..7736c01 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditText.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteItemData.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteItemData.dex new file mode 100644 index 0000000..35f5f98 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteItemData.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$1.dex new file mode 100644 index 0000000..724864e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$2.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$2.dex new file mode 100644 index 0000000..6d6ac95 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$2.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$3.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$3.dex new file mode 100644 index 0000000..f80a2be Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$3.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$4.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$4.dex new file mode 100644 index 0000000..a496742 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$4.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$5.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$5.dex new file mode 100644 index 0000000..ac2f2f9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$5.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$6.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$6.dex new file mode 100644 index 0000000..fbfc4f9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$6.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$7.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$7.dex new file mode 100644 index 0000000..e7bcea9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$7.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$8.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$8.dex new file mode 100644 index 0000000..521a9cd Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$8.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$9.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$9.dex new file mode 100644 index 0000000..3169ad9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$9.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.dex new file mode 100644 index 0000000..36da701 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ListEditState.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ListEditState.dex new file mode 100644 index 0000000..50d0c0b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ListEditState.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback$1.dex new file mode 100644 index 0000000..b82358a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback$2.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback$2.dex new file mode 100644 index 0000000..aeafa5c Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback$2.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback.dex new file mode 100644 index 0000000..12f6add Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$ModeCallback.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.dex new file mode 100644 index 0000000..a5a5f21 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.dex new file mode 100644 index 0000000..d65ee62 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity.dex new file mode 100644 index 0000000..158506d Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListActivity.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListAdapter$AppWidgetAttribute.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListAdapter$AppWidgetAttribute.dex new file mode 100644 index 0000000..30aea0f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListAdapter$AppWidgetAttribute.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListAdapter.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListAdapter.dex new file mode 100644 index 0000000..1e7b5fe Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListAdapter.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListItem.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListItem.dex new file mode 100644 index 0000000..e05fab5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesListItem.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$1.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$1.dex new file mode 100644 index 0000000..d3f6d8a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$1.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$2.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$2.dex new file mode 100644 index 0000000..9aa74d2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$2.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$3.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$3.dex new file mode 100644 index 0000000..ee6e240 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$3.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$4.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$4.dex new file mode 100644 index 0000000..c0a9113 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$4.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$5.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$5.dex new file mode 100644 index 0000000..61ef482 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$5.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$6.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$6.dex new file mode 100644 index 0000000..0ed7474 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$6.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$7.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$7.dex new file mode 100644 index 0000000..a7d983b Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$7.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$8.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$8.dex new file mode 100644 index 0000000..627fb01 Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$8.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$GTaskReceiver.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$GTaskReceiver.dex new file mode 100644 index 0000000..a5e194f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity$GTaskReceiver.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity.dex new file mode 100644 index 0000000..e8e576f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NotesPreferenceActivity.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider.dex new file mode 100644 index 0000000..f0c4f2e Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider_2x.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider_2x.dex new file mode 100644 index 0000000..6b1441f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider_2x.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider_4x.dex b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider_4x.dex new file mode 100644 index 0000000..1f3550a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/widget/NoteWidgetProvider_4x.dex differ diff --git a/other/软件原完成代码/minotes/app/build/intermediates/runtime_symbol_list/debug/R.txt b/other/软件原完成代码/minotes/app/build/intermediates/runtime_symbol_list/debug/R.txt new file mode 100644 index 0000000..c6ce95d --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/runtime_symbol_list/debug/R.txt @@ -0,0 +1,322 @@ +int array format_for_exported_note 0x7f010000 +int array menu_share_ways 0x7f010001 +int color Blue 0x7f020000 +int color Bright_Blue 0x7f020001 +int color Default 0x7f020002 +int color Green 0x7f020003 +int color Red 0x7f020004 +int color Yellow 0x7f020005 +int color primary_text_dark 0x7f020006 +int color secondary_text_dark 0x7f020007 +int color user_query_highlight 0x7f020008 +int dimen text_font_size_large 0x7f030000 +int dimen text_font_size_medium 0x7f030001 +int dimen text_font_size_normal 0x7f030002 +int dimen text_font_size_small 0x7f030003 +int dimen text_font_size_super 0x7f030004 +int drawable bg_btn_set_color 0x7f040000 +int drawable bg_color_btn_mask 0x7f040001 +int drawable call_record 0x7f040002 +int drawable clock 0x7f040003 +int drawable delete 0x7f040004 +int drawable dropdown_icon 0x7f040005 +int drawable edit_blue 0x7f040006 +int drawable edit_green 0x7f040007 +int drawable edit_red 0x7f040008 +int drawable edit_title_blue 0x7f040009 +int drawable edit_title_green 0x7f04000a +int drawable edit_title_red 0x7f04000b +int drawable edit_title_white 0x7f04000c +int drawable edit_title_yellow 0x7f04000d +int drawable edit_white 0x7f04000e +int drawable edit_yellow 0x7f04000f +int drawable font_color_green 0x7f040010 +int drawable font_large 0x7f040011 +int drawable font_normal 0x7f040012 +int drawable font_size_selector_bg 0x7f040013 +int drawable font_small 0x7f040014 +int drawable font_super 0x7f040015 +int drawable icon_app 0x7f040016 +int drawable list_background 0x7f040017 +int drawable list_blue_down 0x7f040018 +int drawable list_blue_middle 0x7f040019 +int drawable list_blue_single 0x7f04001a +int drawable list_blue_up 0x7f04001b +int drawable list_folder 0x7f04001c +int drawable list_footer_bg 0x7f04001d +int drawable list_green_down 0x7f04001e +int drawable list_green_middle 0x7f04001f +int drawable list_green_single 0x7f040020 +int drawable list_green_up 0x7f040021 +int drawable list_red_down 0x7f040022 +int drawable list_red_middle 0x7f040023 +int drawable list_red_single 0x7f040024 +int drawable list_red_up 0x7f040025 +int drawable list_white_down 0x7f040026 +int drawable list_white_middle 0x7f040027 +int drawable list_white_single 0x7f040028 +int drawable list_white_up 0x7f040029 +int drawable list_yellow_down 0x7f04002a +int drawable list_yellow_middle 0x7f04002b +int drawable list_yellow_single 0x7f04002c +int drawable list_yellow_up 0x7f04002d +int drawable menu_delete 0x7f04002e +int drawable menu_invisible 0x7f04002f +int drawable menu_move 0x7f040030 +int drawable menu_visible 0x7f040031 +int drawable new_note 0x7f040032 +int drawable new_note_normal 0x7f040033 +int drawable new_note_pressed 0x7f040034 +int drawable note_edit_color_selector_panel 0x7f040035 +int drawable notification 0x7f040036 +int drawable search_result 0x7f040037 +int drawable selected 0x7f040038 +int drawable title_alert 0x7f040039 +int drawable title_bar_bg 0x7f04003a +int drawable widget_2x_blue 0x7f04003b +int drawable widget_2x_green 0x7f04003c +int drawable widget_2x_red 0x7f04003d +int drawable widget_2x_white 0x7f04003e +int drawable widget_2x_yellow 0x7f04003f +int drawable widget_4x_blue 0x7f040040 +int drawable widget_4x_green 0x7f040041 +int drawable widget_4x_red 0x7f040042 +int drawable widget_4x_white 0x7f040043 +int drawable widget_4x_yellow 0x7f040044 +int id account_dialog_subtitle 0x7f050000 +int id account_dialog_title 0x7f050001 +int id action_select_all 0x7f050002 +int id amPm 0x7f050003 +int id backToRoot 0x7f050004 +int id btn_new_note 0x7f050005 +int id btn_set_bg_color 0x7f050006 +int id cb_edit_item 0x7f050007 +int id date 0x7f050008 +int id delete 0x7f050009 +int id et_edit_text 0x7f05000a +int id et_foler_name 0x7f05000b +int id font_size_selector 0x7f05000c +int id hour 0x7f05000d +int id iv_Bright_blue_select 0x7f05000e +int id iv_alert_icon 0x7f05000f +int id iv_bg_blue 0x7f050010 +int id iv_bg_blue_select 0x7f050011 +int id iv_bg_green 0x7f050012 +int id iv_bg_green_select 0x7f050013 +int id iv_bg_red 0x7f050014 +int id iv_bg_red_select 0x7f050015 +int id iv_bg_white 0x7f050016 +int id iv_bg_white_select 0x7f050017 +int id iv_bg_yellow 0x7f050018 +int id iv_bg_yellow_select 0x7f050019 +int id iv_default_select 0x7f05001a +int id iv_green_select 0x7f05001b +int id iv_large_select 0x7f05001c +int id iv_medium_select 0x7f05001d +int id iv_red_select 0x7f05001e +int id iv_small_select 0x7f05001f +int id iv_super_select 0x7f050020 +int id ll_font_Bright_blue 0x7f050021 +int id ll_font_color_selector 0x7f050022 +int id ll_font_default 0x7f050023 +int id ll_font_green 0x7f050024 +int id ll_font_large 0x7f050025 +int id ll_font_normal 0x7f050026 +int id ll_font_red 0x7f050027 +int id ll_font_small 0x7f050028 +int id ll_font_super 0x7f050029 +int id menu_alert 0x7f05002a +int id menu_change_font_color 0x7f05002b +int id menu_delete 0x7f05002c +int id menu_delete_remind 0x7f05002d +int id menu_export_text 0x7f05002e +int id menu_font_size 0x7f05002f +int id menu_insert_img 0x7f050030 +int id menu_list_mode 0x7f050031 +int id menu_new_folder 0x7f050032 +int id menu_new_note 0x7f050033 +int id menu_search 0x7f050034 +int id menu_send_to_desktop 0x7f050035 +int id menu_setting 0x7f050036 +int id menu_share 0x7f050037 +int id menu_sync 0x7f050038 +int id minute 0x7f050039 +int id move 0x7f05003a +int id move_to_private 0x7f05003b +int id move_to_root 0x7f05003c +int id navigation_bar 0x7f05003d +int id note_bg_color_selector 0x7f05003e +int id note_edit_list 0x7f05003f +int id note_edit_view 0x7f050040 +int id note_item 0x7f050041 +int id note_title 0x7f050042 +int id notes_list 0x7f050043 +int id prefenerece_sync_status_textview 0x7f050044 +int id preference_sync_button 0x7f050045 +int id private_folder 0x7f050046 +int id selection_menu 0x7f050047 +int id sv_note_edit 0x7f050048 +int id tv_alert_date 0x7f050049 +int id tv_folder_name 0x7f05004a +int id tv_modified_date 0x7f05004b +int id tv_name 0x7f05004c +int id tv_time 0x7f05004d +int id tv_title 0x7f05004e +int id tv_title_bar 0x7f05004f +int id widget_bg_image 0x7f050050 +int id widget_text 0x7f050051 +int layout account_dialog_title 0x7f060000 +int layout add_account_text 0x7f060001 +int layout datetime_picker 0x7f060002 +int layout dialog_edit_text 0x7f060003 +int layout folder_list_item 0x7f060004 +int layout note_edit 0x7f060005 +int layout note_edit_list_item 0x7f060006 +int layout note_item 0x7f060007 +int layout note_list 0x7f060008 +int layout note_list_dropdown_menu 0x7f060009 +int layout note_list_footer 0x7f06000a +int layout settings_header 0x7f06000b +int layout widget_2x 0x7f06000c +int layout widget_4x 0x7f06000d +int menu call_note_edit 0x7f070000 +int menu call_record_folder 0x7f070001 +int menu note_edit 0x7f070002 +int menu note_list 0x7f070003 +int menu note_list_dropdown 0x7f070004 +int menu note_list_options 0x7f070005 +int menu private_folder_menu 0x7f070006 +int menu private_folder_options 0x7f070007 +int menu sub_folder 0x7f070008 +int plurals search_results_title 0x7f080000 +int raw introduction 0x7f090000 +int string alert_message_delete_folder 0x7f0a0000 +int string alert_message_delete_note 0x7f0a0001 +int string alert_message_delete_notes 0x7f0a0002 +int string alert_title_delete 0x7f0a0003 +int string app_name 0x7f0a0004 +int string app_widget2x2 0x7f0a0005 +int string app_widget4x4 0x7f0a0006 +int string back_to_root 0x7f0a0007 +int string button_delete 0x7f0a0008 +int string call_record_folder_name 0x7f0a0009 +int string change_txt_color 0x7f0a000a +int string datetime_dialog_cancel 0x7f0a000b +int string datetime_dialog_ok 0x7f0a000c +int string delete_remind_time_message 0x7f0a000d +int string error_note_empty_for_clock 0x7f0a000e +int string error_note_empty_for_send_to_desktop 0x7f0a000f +int string error_note_not_exist 0x7f0a0010 +int string error_sdcard_export 0x7f0a0011 +int string error_sdcard_unmounted 0x7f0a0012 +int string error_sync_cancelled 0x7f0a0013 +int string error_sync_internal 0x7f0a0014 +int string error_sync_network 0x7f0a0015 +int string failed_sdcard_export 0x7f0a0016 +int string file_name_txt_format 0x7f0a0017 +int string file_path 0x7f0a0018 +int string folder_exist 0x7f0a0019 +int string format_date_ymd 0x7f0a001a +int string format_datetime_mdhm 0x7f0a001b +int string format_exported_file_location 0x7f0a001c +int string format_folder_files_count 0x7f0a001d +int string format_move_notes_to_folder 0x7f0a001e +int string hint_foler_name 0x7f0a001f +int string info_note_enter_desktop 0x7f0a0020 +int string menu_alert 0x7f0a0021 +int string menu_change_font_color 0x7f0a0022 +int string menu_create_folder 0x7f0a0023 +int string menu_delete 0x7f0a0024 +int string menu_deselect_all 0x7f0a0025 +int string menu_export_text 0x7f0a0026 +int string menu_folder_change_name 0x7f0a0027 +int string menu_folder_delete 0x7f0a0028 +int string menu_folder_view 0x7f0a0029 +int string menu_font_large 0x7f0a002a +int string menu_font_normal 0x7f0a002b +int string menu_font_size 0x7f0a002c +int string menu_font_small 0x7f0a002d +int string menu_font_super 0x7f0a002e +int string menu_insert_img 0x7f0a002f +int string menu_list_mode 0x7f0a0030 +int string menu_move 0x7f0a0031 +int string menu_move_parent_folder 0x7f0a0032 +int string menu_move_to_private 0x7f0a0033 +int string menu_move_to_root 0x7f0a0034 +int string menu_normal_mode 0x7f0a0035 +int string menu_remove_remind 0x7f0a0036 +int string menu_search 0x7f0a0037 +int string menu_select_all 0x7f0a0038 +int string menu_select_none 0x7f0a0039 +int string menu_select_title 0x7f0a003a +int string menu_send_to_desktop 0x7f0a003b +int string menu_setting 0x7f0a003c +int string menu_share 0x7f0a003d +int string menu_sync 0x7f0a003e +int string menu_sync_cancel 0x7f0a003f +int string menu_title_select_folder 0x7f0a0040 +int string note_alert_expired 0x7f0a0041 +int string note_link_email 0x7f0a0042 +int string note_link_other 0x7f0a0043 +int string note_link_tel 0x7f0a0044 +int string note_link_web 0x7f0a0045 +int string notealert_enter 0x7f0a0046 +int string notealert_ok 0x7f0a0047 +int string notelist_menu_new 0x7f0a0048 +int string notelist_string_info 0x7f0a0049 +int string please_enter_password 0x7f0a004a +int string preferences_account_summary 0x7f0a004b +int string preferences_account_title 0x7f0a004c +int string preferences_add_account 0x7f0a004d +int string preferences_bg_random_appear_title 0x7f0a004e +int string preferences_button_sync_cancel 0x7f0a004f +int string preferences_button_sync_immediately 0x7f0a0050 +int string preferences_dialog_change_account_title 0x7f0a0051 +int string preferences_dialog_change_account_warn_msg 0x7f0a0052 +int string preferences_dialog_select_account_tips 0x7f0a0053 +int string preferences_dialog_select_account_title 0x7f0a0054 +int string preferences_last_sync_time 0x7f0a0055 +int string preferences_last_sync_time_format 0x7f0a0056 +int string preferences_menu_cancel 0x7f0a0057 +int string preferences_menu_change_account 0x7f0a0058 +int string preferences_menu_remove_account 0x7f0a0059 +int string preferences_title 0x7f0a005a +int string preferences_toast_cannot_change_account 0x7f0a005b +int string preferences_toast_success_set_accout 0x7f0a005c +int string private_folder 0x7f0a005d +int string search 0x7f0a005e +int string search_hint 0x7f0a005f +int string search_label 0x7f0a0060 +int string search_setting_description 0x7f0a0061 +int string set_remind_time_message 0x7f0a0062 +int string success_sdcard_export 0x7f0a0063 +int string success_sync_account 0x7f0a0064 +int string sync_progress_init_list 0x7f0a0065 +int string sync_progress_login 0x7f0a0066 +int string sync_progress_syncing 0x7f0a0067 +int string ticker_cancel 0x7f0a0068 +int string ticker_fail 0x7f0a0069 +int string ticker_success 0x7f0a006a +int string ticker_syncing 0x7f0a006b +int string widget_havenot_content 0x7f0a006c +int string widget_under_visit_mode 0x7f0a006d +int style HighlightTextAppearancePrimary 0x7f0b0000 +int style HighlightTextAppearanceSecondary 0x7f0b0001 +int style NoteActionBarStyle 0x7f0b0002 +int style NoteTheme 0x7f0b0003 +int style TextAppearanceLarge 0x7f0b0004 +int style TextAppearanceMedium 0x7f0b0005 +int style TextAppearanceNormal 0x7f0b0006 +int style TextAppearancePrimaryItem 0x7f0b0007 +int style TextAppearanceSecondaryItem 0x7f0b0008 +int style TextAppearanceSuper 0x7f0b0009 +int style TextAppearanceUnderMenuIcon 0x7f0b000a +int style TextColorBrightBlue 0x7f0b000b +int style TextColorDefault 0x7f0b000c +int style TextColorGreen 0x7f0b000d +int style TextColorRed 0x7f0b000e +int style my_dialog 0x7f0b000f +int xml preferences 0x7f0c0000 +int xml searchable 0x7f0c0001 +int xml widget_2x_info 0x7f0c0002 +int xml widget_4x_info 0x7f0c0003 diff --git a/other/软件原完成代码/minotes/app/build/intermediates/signing_config_versions/debug/signing-config-versions.json b/other/软件原完成代码/minotes/app/build/intermediates/signing_config_versions/debug/signing-config-versions.json new file mode 100644 index 0000000..51f6368 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/signing_config_versions/debug/signing-config-versions.json @@ -0,0 +1 @@ +{"enableV1Signing":false,"enableV2Signing":true,"enableV3Signing":false,"enableV4Signing":false} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/build/intermediates/source_set_path_map/debug/file-map.txt b/other/软件原完成代码/minotes/app/build/intermediates/source_set_path_map/debug/file-map.txt new file mode 100644 index 0000000..b21d8c7 --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/source_set_path_map/debug/file-map.txt @@ -0,0 +1,8 @@ +net.micode.notes.app-pngs-0 D:\MINOTES\app\build\generated\res\pngs\debug +net.micode.notes.app-resValues-1 D:\MINOTES\app\build\generated\res\resValues\debug +net.micode.notes.app-rs-2 D:\MINOTES\app\build\generated\res\rs\debug +net.micode.notes.app-mergeDebugResources-3 D:\MINOTES\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir +net.micode.notes.app-mergeDebugResources-4 D:\MINOTES\app\build\intermediates\incremental\debug\mergeDebugResources\stripped.dir +net.micode.notes.app-merged_res-5 D:\MINOTES\app\build\intermediates\merged_res\debug +net.micode.notes.app-debug-6 D:\MINOTES\app\src\debug\res +net.micode.notes.app-main-7 D:\MINOTES\app\src\main\res diff --git a/other/软件原完成代码/minotes/app/build/intermediates/stable_resource_ids_file/debug/stableIds.txt b/other/软件原完成代码/minotes/app/build/intermediates/stable_resource_ids_file/debug/stableIds.txt new file mode 100644 index 0000000..e879dfe --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/intermediates/stable_resource_ids_file/debug/stableIds.txt @@ -0,0 +1,322 @@ +net.micode.notes:xml/widget_4x_info = 0x7f0c0003 +net.micode.notes:xml/preferences = 0x7f0c0000 +net.micode.notes:style/my_dialog = 0x7f0b000f +net.micode.notes:style/TextColorGreen = 0x7f0b000d +net.micode.notes:style/TextColorDefault = 0x7f0b000c +net.micode.notes:style/TextAppearanceSecondaryItem = 0x7f0b0008 +net.micode.notes:style/TextAppearanceNormal = 0x7f0b0006 +net.micode.notes:style/TextAppearanceLarge = 0x7f0b0004 +net.micode.notes:style/HighlightTextAppearancePrimary = 0x7f0b0000 +net.micode.notes:string/widget_havenot_content = 0x7f0a006c +net.micode.notes:string/ticker_syncing = 0x7f0a006b +net.micode.notes:string/ticker_success = 0x7f0a006a +net.micode.notes:style/HighlightTextAppearanceSecondary = 0x7f0b0001 +net.micode.notes:string/ticker_cancel = 0x7f0a0068 +net.micode.notes:string/sync_progress_init_list = 0x7f0a0065 +net.micode.notes:string/search_label = 0x7f0a0060 +net.micode.notes:string/preferences_toast_cannot_change_account = 0x7f0a005b +net.micode.notes:string/preferences_title = 0x7f0a005a +net.micode.notes:string/preferences_menu_remove_account = 0x7f0a0059 +net.micode.notes:style/NoteActionBarStyle = 0x7f0b0002 +net.micode.notes:string/preferences_menu_change_account = 0x7f0a0058 +net.micode.notes:string/preferences_menu_cancel = 0x7f0a0057 +net.micode.notes:string/preferences_last_sync_time = 0x7f0a0055 +net.micode.notes:string/preferences_dialog_select_account_title = 0x7f0a0054 +net.micode.notes:string/preferences_dialog_change_account_warn_msg = 0x7f0a0052 +net.micode.notes:string/preferences_button_sync_immediately = 0x7f0a0050 +net.micode.notes:string/preferences_button_sync_cancel = 0x7f0a004f +net.micode.notes:string/preferences_account_summary = 0x7f0a004b +net.micode.notes:string/preferences_toast_success_set_accout = 0x7f0a005c +net.micode.notes:string/please_enter_password = 0x7f0a004a +net.micode.notes:string/success_sdcard_export = 0x7f0a0063 +net.micode.notes:string/notelist_string_info = 0x7f0a0049 +net.micode.notes:string/notelist_menu_new = 0x7f0a0048 +net.micode.notes:string/notealert_ok = 0x7f0a0047 +net.micode.notes:string/notealert_enter = 0x7f0a0046 +net.micode.notes:string/note_link_web = 0x7f0a0045 +net.micode.notes:string/note_link_tel = 0x7f0a0044 +net.micode.notes:string/note_link_other = 0x7f0a0043 +net.micode.notes:string/note_link_email = 0x7f0a0042 +net.micode.notes:string/note_alert_expired = 0x7f0a0041 +net.micode.notes:string/menu_sync_cancel = 0x7f0a003f +net.micode.notes:string/menu_sync = 0x7f0a003e +net.micode.notes:string/menu_share = 0x7f0a003d +net.micode.notes:string/menu_select_title = 0x7f0a003a +net.micode.notes:style/TextAppearanceMedium = 0x7f0b0005 +net.micode.notes:string/menu_select_none = 0x7f0a0039 +net.micode.notes:string/menu_title_select_folder = 0x7f0a0040 +net.micode.notes:string/menu_select_all = 0x7f0a0038 +net.micode.notes:string/menu_search = 0x7f0a0037 +net.micode.notes:string/menu_remove_remind = 0x7f0a0036 +net.micode.notes:string/menu_normal_mode = 0x7f0a0035 +net.micode.notes:string/menu_move_to_root = 0x7f0a0034 +net.micode.notes:string/menu_move_to_private = 0x7f0a0033 +net.micode.notes:string/menu_move_parent_folder = 0x7f0a0032 +net.micode.notes:string/menu_move = 0x7f0a0031 +net.micode.notes:string/menu_list_mode = 0x7f0a0030 +net.micode.notes:string/menu_insert_img = 0x7f0a002f +net.micode.notes:string/menu_font_super = 0x7f0a002e +net.micode.notes:string/menu_font_small = 0x7f0a002d +net.micode.notes:string/menu_export_text = 0x7f0a0026 +net.micode.notes:string/menu_deselect_all = 0x7f0a0025 +net.micode.notes:string/menu_create_folder = 0x7f0a0023 +net.micode.notes:string/info_note_enter_desktop = 0x7f0a0020 +net.micode.notes:string/format_move_notes_to_folder = 0x7f0a001e +net.micode.notes:string/format_folder_files_count = 0x7f0a001d +net.micode.notes:string/format_date_ymd = 0x7f0a001a +net.micode.notes:style/TextAppearancePrimaryItem = 0x7f0b0007 +net.micode.notes:string/hint_foler_name = 0x7f0a001f +net.micode.notes:string/folder_exist = 0x7f0a0019 +net.micode.notes:string/file_path = 0x7f0a0018 +net.micode.notes:string/ticker_fail = 0x7f0a0069 +net.micode.notes:string/file_name_txt_format = 0x7f0a0017 +net.micode.notes:string/failed_sdcard_export = 0x7f0a0016 +net.micode.notes:string/set_remind_time_message = 0x7f0a0062 +net.micode.notes:string/private_folder = 0x7f0a005d +net.micode.notes:string/error_sync_network = 0x7f0a0015 +net.micode.notes:string/error_note_not_exist = 0x7f0a0010 +net.micode.notes:string/error_note_empty_for_send_to_desktop = 0x7f0a000f +net.micode.notes:string/error_note_empty_for_clock = 0x7f0a000e +net.micode.notes:string/delete_remind_time_message = 0x7f0a000d +net.micode.notes:style/TextColorBrightBlue = 0x7f0b000b +net.micode.notes:string/datetime_dialog_ok = 0x7f0a000c +net.micode.notes:string/datetime_dialog_cancel = 0x7f0a000b +net.micode.notes:string/back_to_root = 0x7f0a0007 +net.micode.notes:string/app_widget2x2 = 0x7f0a0005 +net.micode.notes:string/menu_font_normal = 0x7f0a002b +net.micode.notes:string/format_exported_file_location = 0x7f0a001c +net.micode.notes:raw/introduction = 0x7f090000 +net.micode.notes:dimen/text_font_size_super = 0x7f030004 +net.micode.notes:drawable/selected = 0x7f040038 +net.micode.notes:plurals/search_results_title = 0x7f080000 +net.micode.notes:menu/sub_folder = 0x7f070008 +net.micode.notes:menu/private_folder_options = 0x7f070007 +net.micode.notes:menu/note_edit = 0x7f070002 +net.micode.notes:layout/note_list = 0x7f060008 +net.micode.notes:drawable/list_white_single = 0x7f040028 +net.micode.notes:layout/note_item = 0x7f060007 +net.micode.notes:xml/widget_2x_info = 0x7f0c0002 +net.micode.notes:string/alert_message_delete_folder = 0x7f0a0000 +net.micode.notes:layout/datetime_picker = 0x7f060002 +net.micode.notes:id/btn_new_note = 0x7f050005 +net.micode.notes:id/ll_font_Bright_blue = 0x7f050021 +net.micode.notes:layout/note_list_footer = 0x7f06000a +net.micode.notes:id/widget_text = 0x7f050051 +net.micode.notes:id/tv_title_bar = 0x7f05004f +net.micode.notes:drawable/widget_2x_blue = 0x7f04003b +net.micode.notes:id/tv_time = 0x7f05004d +net.micode.notes:color/Red = 0x7f020004 +net.micode.notes:id/tv_name = 0x7f05004c +net.micode.notes:id/selection_menu = 0x7f050047 +net.micode.notes:id/menu_list_mode = 0x7f050031 +net.micode.notes:id/private_folder = 0x7f050046 +net.micode.notes:string/error_sdcard_export = 0x7f0a0011 +net.micode.notes:id/preference_sync_button = 0x7f050045 +net.micode.notes:string/alert_message_delete_notes = 0x7f0a0002 +net.micode.notes:drawable/title_alert = 0x7f040039 +net.micode.notes:id/note_title = 0x7f050042 +net.micode.notes:string/preferences_last_sync_time_format = 0x7f0a0056 +net.micode.notes:id/note_edit_view = 0x7f050040 +net.micode.notes:id/navigation_bar = 0x7f05003d +net.micode.notes:id/move_to_root = 0x7f05003c +net.micode.notes:string/sync_progress_syncing = 0x7f0a0067 +net.micode.notes:id/move_to_private = 0x7f05003b +net.micode.notes:drawable/font_normal = 0x7f040012 +net.micode.notes:id/minute = 0x7f050039 +net.micode.notes:drawable/font_super = 0x7f040015 +net.micode.notes:id/menu_sync = 0x7f050038 +net.micode.notes:id/menu_share = 0x7f050037 +net.micode.notes:id/menu_setting = 0x7f050036 +net.micode.notes:string/widget_under_visit_mode = 0x7f0a006d +net.micode.notes:id/backToRoot = 0x7f050004 +net.micode.notes:id/menu_send_to_desktop = 0x7f050035 +net.micode.notes:id/menu_search = 0x7f050034 +net.micode.notes:drawable/list_green_down = 0x7f04001e +net.micode.notes:id/menu_new_note = 0x7f050033 +net.micode.notes:id/menu_new_folder = 0x7f050032 +net.micode.notes:id/iv_medium_select = 0x7f05001d +net.micode.notes:id/menu_export_text = 0x7f05002e +net.micode.notes:string/menu_folder_view = 0x7f0a0029 +net.micode.notes:string/change_txt_color = 0x7f0a000a +net.micode.notes:id/menu_delete = 0x7f05002c +net.micode.notes:drawable/edit_blue = 0x7f040006 +net.micode.notes:id/prefenerece_sync_status_textview = 0x7f050044 +net.micode.notes:string/menu_font_size = 0x7f0a002c +net.micode.notes:string/menu_change_font_color = 0x7f0a0022 +net.micode.notes:string/menu_alert = 0x7f0a0021 +net.micode.notes:drawable/edit_title_yellow = 0x7f04000d +net.micode.notes:id/ll_font_color_selector = 0x7f050022 +net.micode.notes:id/menu_alert = 0x7f05002a +net.micode.notes:string/success_sync_account = 0x7f0a0064 +net.micode.notes:id/ll_font_super = 0x7f050029 +net.micode.notes:id/ll_font_small = 0x7f050028 +net.micode.notes:menu/call_record_folder = 0x7f070001 +net.micode.notes:id/ll_font_normal = 0x7f050026 +net.micode.notes:id/ll_font_large = 0x7f050025 +net.micode.notes:id/note_bg_color_selector = 0x7f05003e +net.micode.notes:drawable/search_result = 0x7f040037 +net.micode.notes:id/iv_super_select = 0x7f050020 +net.micode.notes:layout/note_edit = 0x7f060005 +net.micode.notes:id/notes_list = 0x7f050043 +net.micode.notes:string/error_sdcard_unmounted = 0x7f0a0012 +net.micode.notes:drawable/font_color_green = 0x7f040010 +net.micode.notes:id/iv_red_select = 0x7f05001e +net.micode.notes:drawable/new_note = 0x7f040032 +net.micode.notes:id/sv_note_edit = 0x7f050048 +net.micode.notes:id/iv_green_select = 0x7f05001b +net.micode.notes:style/TextAppearanceSuper = 0x7f0b0009 +net.micode.notes:color/secondary_text_dark = 0x7f020007 +net.micode.notes:id/move = 0x7f05003a +net.micode.notes:id/iv_bg_yellow_select = 0x7f050019 +net.micode.notes:menu/call_note_edit = 0x7f070000 +net.micode.notes:drawable/new_note_pressed = 0x7f040034 +net.micode.notes:id/iv_bg_blue = 0x7f050010 +net.micode.notes:layout/settings_header = 0x7f06000b +net.micode.notes:id/iv_default_select = 0x7f05001a +net.micode.notes:id/iv_bg_yellow = 0x7f050018 +net.micode.notes:string/error_sync_cancelled = 0x7f0a0013 +net.micode.notes:id/iv_bg_white_select = 0x7f050017 +net.micode.notes:id/iv_bg_white = 0x7f050016 +net.micode.notes:string/menu_font_large = 0x7f0a002a +net.micode.notes:drawable/widget_4x_blue = 0x7f040040 +net.micode.notes:menu/private_folder_menu = 0x7f070006 +net.micode.notes:id/iv_large_select = 0x7f05001c +net.micode.notes:id/widget_bg_image = 0x7f050050 +net.micode.notes:id/iv_bg_green_select = 0x7f050013 +net.micode.notes:id/amPm = 0x7f050003 +net.micode.notes:id/iv_bg_green = 0x7f050012 +net.micode.notes:id/iv_small_select = 0x7f05001f +net.micode.notes:menu/note_list_options = 0x7f070005 +net.micode.notes:style/NoteTheme = 0x7f0b0003 +net.micode.notes:drawable/note_edit_color_selector_panel = 0x7f040035 +net.micode.notes:id/hour = 0x7f05000d +net.micode.notes:id/menu_insert_img = 0x7f050030 +net.micode.notes:string/preferences_dialog_select_account_tips = 0x7f0a0053 +net.micode.notes:id/font_size_selector = 0x7f05000c +net.micode.notes:id/et_edit_text = 0x7f05000a +net.micode.notes:id/et_foler_name = 0x7f05000b +net.micode.notes:drawable/edit_green = 0x7f040007 +net.micode.notes:layout/widget_4x = 0x7f06000d +net.micode.notes:string/search = 0x7f0a005e +net.micode.notes:id/cb_edit_item = 0x7f050007 +net.micode.notes:id/btn_set_bg_color = 0x7f050006 +net.micode.notes:id/account_dialog_subtitle = 0x7f050000 +net.micode.notes:id/iv_bg_blue_select = 0x7f050011 +net.micode.notes:string/preferences_dialog_change_account_title = 0x7f0a0051 +net.micode.notes:drawable/menu_move = 0x7f040030 +net.micode.notes:drawable/widget_4x_white = 0x7f040043 +net.micode.notes:menu/note_list = 0x7f070003 +net.micode.notes:id/account_dialog_title = 0x7f050001 +net.micode.notes:drawable/widget_4x_green = 0x7f040041 +net.micode.notes:drawable/widget_2x_yellow = 0x7f04003f +net.micode.notes:dimen/text_font_size_large = 0x7f030000 +net.micode.notes:id/tv_alert_date = 0x7f050049 +net.micode.notes:drawable/widget_2x_red = 0x7f04003d +net.micode.notes:style/TextAppearanceUnderMenuIcon = 0x7f0b000a +net.micode.notes:id/delete = 0x7f050009 +net.micode.notes:drawable/widget_2x_green = 0x7f04003c +net.micode.notes:drawable/title_bar_bg = 0x7f04003a +net.micode.notes:id/iv_bg_red = 0x7f050014 +net.micode.notes:drawable/notification = 0x7f040036 +net.micode.notes:drawable/list_green_single = 0x7f040020 +net.micode.notes:string/alert_message_delete_note = 0x7f0a0001 +net.micode.notes:id/tv_modified_date = 0x7f05004b +net.micode.notes:drawable/list_blue_middle = 0x7f040019 +net.micode.notes:xml/searchable = 0x7f0c0001 +net.micode.notes:string/menu_folder_delete = 0x7f0a0028 +net.micode.notes:id/ll_font_green = 0x7f050024 +net.micode.notes:drawable/dropdown_icon = 0x7f040005 +net.micode.notes:string/button_delete = 0x7f0a0008 +net.micode.notes:drawable/new_note_normal = 0x7f040033 +net.micode.notes:drawable/menu_visible = 0x7f040031 +net.micode.notes:id/date = 0x7f050008 +net.micode.notes:color/Bright_Blue = 0x7f020001 +net.micode.notes:color/Yellow = 0x7f020005 +net.micode.notes:drawable/list_yellow_single = 0x7f04002c +net.micode.notes:string/app_widget4x4 = 0x7f0a0006 +net.micode.notes:drawable/menu_invisible = 0x7f04002f +net.micode.notes:drawable/list_red_up = 0x7f040025 +net.micode.notes:drawable/widget_4x_yellow = 0x7f040044 +net.micode.notes:drawable/list_yellow_middle = 0x7f04002b +net.micode.notes:id/tv_folder_name = 0x7f05004a +net.micode.notes:drawable/list_yellow_down = 0x7f04002a +net.micode.notes:drawable/clock = 0x7f040003 +net.micode.notes:drawable/list_white_up = 0x7f040029 +net.micode.notes:layout/dialog_edit_text = 0x7f060003 +net.micode.notes:string/preferences_account_title = 0x7f0a004c +net.micode.notes:drawable/edit_white = 0x7f04000e +net.micode.notes:drawable/list_white_middle = 0x7f040027 +net.micode.notes:id/menu_change_font_color = 0x7f05002b +net.micode.notes:color/user_query_highlight = 0x7f020008 +net.micode.notes:id/iv_Bright_blue_select = 0x7f05000e +net.micode.notes:drawable/list_white_down = 0x7f040026 +net.micode.notes:layout/note_list_dropdown_menu = 0x7f060009 +net.micode.notes:drawable/list_blue_down = 0x7f040018 +net.micode.notes:drawable/list_red_middle = 0x7f040023 +net.micode.notes:drawable/list_red_down = 0x7f040022 +net.micode.notes:id/action_select_all = 0x7f050002 +net.micode.notes:drawable/list_green_middle = 0x7f04001f +net.micode.notes:string/menu_send_to_desktop = 0x7f0a003b +net.micode.notes:drawable/list_red_single = 0x7f040024 +net.micode.notes:string/preferences_add_account = 0x7f0a004d +net.micode.notes:drawable/bg_btn_set_color = 0x7f040000 +net.micode.notes:string/preferences_bg_random_appear_title = 0x7f0a004e +net.micode.notes:layout/widget_2x = 0x7f06000c +net.micode.notes:drawable/list_footer_bg = 0x7f04001d +net.micode.notes:string/alert_title_delete = 0x7f0a0003 +net.micode.notes:drawable/edit_title_green = 0x7f04000a +net.micode.notes:drawable/icon_app = 0x7f040016 +net.micode.notes:drawable/font_small = 0x7f040014 +net.micode.notes:string/sync_progress_login = 0x7f0a0066 +net.micode.notes:array/menu_share_ways = 0x7f010001 +net.micode.notes:drawable/widget_2x_white = 0x7f04003e +net.micode.notes:layout/folder_list_item = 0x7f060004 +net.micode.notes:layout/add_account_text = 0x7f060001 +net.micode.notes:style/TextColorRed = 0x7f0b000e +net.micode.notes:id/tv_title = 0x7f05004e +net.micode.notes:color/primary_text_dark = 0x7f020006 +net.micode.notes:drawable/font_size_selector_bg = 0x7f040013 +net.micode.notes:drawable/list_blue_up = 0x7f04001b +net.micode.notes:drawable/widget_4x_red = 0x7f040042 +net.micode.notes:string/call_record_folder_name = 0x7f0a0009 +net.micode.notes:drawable/list_green_up = 0x7f040021 +net.micode.notes:string/search_setting_description = 0x7f0a0061 +net.micode.notes:drawable/list_blue_single = 0x7f04001a +net.micode.notes:drawable/font_large = 0x7f040011 +net.micode.notes:drawable/delete = 0x7f040004 +net.micode.notes:drawable/edit_yellow = 0x7f04000f +net.micode.notes:id/note_item = 0x7f050041 +net.micode.notes:id/ll_font_default = 0x7f050023 +net.micode.notes:color/Blue = 0x7f020000 +net.micode.notes:drawable/edit_title_white = 0x7f04000c +net.micode.notes:id/note_edit_list = 0x7f05003f +net.micode.notes:id/iv_alert_icon = 0x7f05000f +net.micode.notes:drawable/edit_red = 0x7f040008 +net.micode.notes:drawable/edit_title_red = 0x7f04000b +net.micode.notes:string/menu_delete = 0x7f0a0024 +net.micode.notes:drawable/list_folder = 0x7f04001c +net.micode.notes:drawable/call_record = 0x7f040002 +net.micode.notes:drawable/edit_title_blue = 0x7f040009 +net.micode.notes:id/iv_bg_red_select = 0x7f050015 +net.micode.notes:string/error_sync_internal = 0x7f0a0014 +net.micode.notes:drawable/menu_delete = 0x7f04002e +net.micode.notes:string/menu_folder_change_name = 0x7f0a0027 +net.micode.notes:color/Default = 0x7f020002 +net.micode.notes:string/search_hint = 0x7f0a005f +net.micode.notes:id/menu_font_size = 0x7f05002f +net.micode.notes:drawable/bg_color_btn_mask = 0x7f040001 +net.micode.notes:dimen/text_font_size_small = 0x7f030003 +net.micode.notes:dimen/text_font_size_normal = 0x7f030002 +net.micode.notes:drawable/list_background = 0x7f040017 +net.micode.notes:string/app_name = 0x7f0a0004 +net.micode.notes:menu/note_list_dropdown = 0x7f070004 +net.micode.notes:string/menu_setting = 0x7f0a003c +net.micode.notes:dimen/text_font_size_medium = 0x7f030001 +net.micode.notes:string/format_datetime_mdhm = 0x7f0a001b +net.micode.notes:color/Green = 0x7f020003 +net.micode.notes:drawable/list_yellow_up = 0x7f04002d +net.micode.notes:layout/note_edit_list_item = 0x7f060006 +net.micode.notes:layout/account_dialog_title = 0x7f060000 +net.micode.notes:id/ll_font_red = 0x7f050027 +net.micode.notes:array/format_for_exported_note = 0x7f010000 +net.micode.notes:id/menu_delete_remind = 0x7f05002d diff --git a/other/软件原完成代码/minotes/app/build/intermediates/variant_model/debug/variant_model.json b/other/软件原完成代码/minotes/app/build/intermediates/variant_model/debug/variant_model.json new file mode 100644 index 0000000..fbfb74a Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/intermediates/variant_model/debug/variant_model.json differ diff --git a/other/软件原完成代码/minotes/app/build/outputs/logs/manifest-merger-debug-report.txt b/other/软件原完成代码/minotes/app/build/outputs/logs/manifest-merger-debug-report.txt new file mode 100644 index 0000000..93ee1ee --- /dev/null +++ b/other/软件原完成代码/minotes/app/build/outputs/logs/manifest-merger-debug-report.txt @@ -0,0 +1,235 @@ +-- Merging decision tree log --- +manifest +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:1-150:12 + package + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:19:5-31 + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + android:versionName + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:21:5-30 + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + xmlns:android + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:18:11-69 + android:versionCode + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:20:5-28 + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml +uses-sdk +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 +INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 + android:targetSdkVersion + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:5-44 + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + android:minSdkVersion + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:23:15-41 + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml + INJECTED from D:\MINOTES\app\src\main\AndroidManifest.xml +uses-permission#android.permission.WRITE_EXTERNAL_STORAGE +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:25:5-81 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:25:22-78 +uses-permission#com.android.launcher.permission.INSTALL_SHORTCUT +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:26:5-88 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:26:22-85 +uses-permission#android.permission.INTERNET +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:27:5-67 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:27:22-64 +uses-permission#android.permission.READ_CONTACTS +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:28:5-72 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:28:22-69 +uses-permission#android.permission.MANAGE_ACCOUNTS +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:29:5-74 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:29:22-71 +uses-permission#android.permission.AUTHENTICATE_ACCOUNTS +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:30:5-80 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:30:22-77 +uses-permission#android.permission.GET_ACCOUNTS +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:31:5-71 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:31:22-68 +uses-permission#android.permission.USE_CREDENTIALS +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:32:5-74 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:32:22-71 +uses-permission#android.permission.RECEIVE_BOOT_COMPLETED +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:33:5-81 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:33:22-78 +application +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:35:5-149:19 + android:label + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:37:9-41 + android:icon + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:36:9-42 +activity#net.micode.notes.ui.NotesListActivity +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:38:9-51:20 + android:label + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:41:13-45 + android:launchMode + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:42:13-43 + android:windowSoftInputMode + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:45:13-52 + android:uiOptions + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:44:13-57 + android:configChanges + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:40:13-74 + android:theme + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:43:13-45 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:39:13-49 +intent-filter#action:name:android.intent.action.MAIN+category:name:android.intent.category.LAUNCHER +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:47:13-50:29 +action#android.intent.action.MAIN +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:48:17-69 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:48:25-66 +category#android.intent.category.LAUNCHER +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:49:17-77 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:49:27-74 +activity#net.micode.notes.ui.NoteEditActivity +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:53:9-81:20 + android:launchMode + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:56:13-43 + android:configChanges + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:55:13-74 + android:theme + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:57:13-45 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:54:13-48 +intent-filter#action:name:android.intent.action.VIEW+category:name:android.intent.category.DEFAULT+data:mimeType:vnd.android.cursor.item/call_note+data:mimeType:vnd.android.cursor.item/text_note +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:59:13-64:29 +action#android.intent.action.VIEW +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:60:17-69 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:60:25-66 +category#android.intent.category.DEFAULT +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:61:17-76 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:61:27-73 +data +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:62:17-78 + android:mimeType + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:62:23-75 +intent-filter#action:name:android.intent.action.INSERT_OR_EDIT+category:name:android.intent.category.DEFAULT+data:mimeType:vnd.android.cursor.item/call_note+data:mimeType:vnd.android.cursor.item/text_note +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:66:13-71:29 +action#android.intent.action.INSERT_OR_EDIT +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:67:17-79 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:67:25-76 +intent-filter#action:name:android.intent.action.SEARCH+category:name:android.intent.category.DEFAULT +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:73:13-76:29 +action#android.intent.action.SEARCH +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:74:17-71 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:74:25-68 +meta-data#android.app.searchable +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:78:13-80:54 + android:resource + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:80:17-51 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:79:17-54 +provider#net.micode.notes.data.NotesProvider +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:83:9-86:43 + android:authorities + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:85:13-47 + android:multiprocess + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:86:13-40 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:84:13-63 +receiver#net.micode.notes.widget.NoteWidgetProvider_2x +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:88:9-100:20 + android:label + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:90:13-50 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:89:13-57 +intent-filter#action:name:android.appwidget.action.APPWIDGET_DELETED+action:name:android.appwidget.action.APPWIDGET_UPDATE+action:name:android.intent.action.PRIVACY_MODE_CHANGED +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:91:13-95:29 +action#android.appwidget.action.APPWIDGET_UPDATE +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:92:17-84 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:92:25-81 +action#android.appwidget.action.APPWIDGET_DELETED +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:93:17-85 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:93:25-82 +action#android.intent.action.PRIVACY_MODE_CHANGED +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:94:17-85 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:94:25-82 +meta-data#android.appwidget.provider +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:97:13-99:58 + android:resource + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:99:17-55 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:98:17-58 +receiver#net.micode.notes.widget.NoteWidgetProvider_4x +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:101:9-114:20 + android:label + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:103:13-50 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:102:13-57 +receiver#net.micode.notes.ui.AlarmInitReceiver +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:116:9-120:20 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:116:19-55 +intent-filter#action:name:android.intent.action.BOOT_COMPLETED +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:117:13-119:29 +action#android.intent.action.BOOT_COMPLETED +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:118:17-79 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:118:25-76 +receiver#net.micode.notes.ui.AlarmReceiver +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:122:9-125:20 + android:process + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:124:13-38 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:123:13-61 +activity#net.micode.notes.ui.AlarmAlertActivity +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:127:9-132:20 + android:label + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:129:13-45 + android:launchMode + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:130:13-48 + android:theme + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:131:13-75 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:128:13-50 +activity#net.micode.notes.ui.NotesPreferenceActivity +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:134:9-139:20 + android:label + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:136:13-54 + android:launchMode + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:137:13-43 + android:theme + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:138:13-60 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:135:13-71 +service#net.micode.notes.gtask.remote.GTaskSyncService +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:141:9-144:19 + android:exported + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:143:13-37 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:142:13-74 +meta-data#android.app.default_searchable +ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:146:9-148:52 + android:value + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:148:13-49 + android:name + ADDED from D:\MINOTES\app\src\main\AndroidManifest.xml:147:13-58 diff --git a/other/软件原完成代码/minotes/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin b/other/软件原完成代码/minotes/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin new file mode 100644 index 0000000..f24e67f Binary files /dev/null and b/other/软件原完成代码/minotes/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin differ diff --git a/other/软件原完成代码/minotes/app/src/main/AndroidManifest.xml b/other/软件原完成代码/minotes/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..84d2390 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/AndroidManifest.xml @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/Contact.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/Contact.java new file mode 100644 index 0000000..d97ac5d --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/Contact.java @@ -0,0 +1,73 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.data; + +import android.content.Context; +import android.database.Cursor; +import android.provider.ContactsContract.CommonDataKinds.Phone; +import android.provider.ContactsContract.Data; +import android.telephony.PhoneNumberUtils; +import android.util.Log; + +import java.util.HashMap; + +public class Contact { + private static HashMap sContactCache; + private static final String TAG = "Contact"; + + private static final String CALLER_ID_SELECTION = "PHONE_NUMBERS_EQUAL(" + Phone.NUMBER + + ",?) AND " + Data.MIMETYPE + "='" + Phone.CONTENT_ITEM_TYPE + "'" + + " AND " + Data.RAW_CONTACT_ID + " IN " + + "(SELECT raw_contact_id " + + " FROM phone_lookup" + + " WHERE min_match = '+')"; + + public static String getContact(Context context, String phoneNumber) { + if(sContactCache == null) { + sContactCache = new HashMap(); + } + + if(sContactCache.containsKey(phoneNumber)) { + return sContactCache.get(phoneNumber); + } + + String selection = CALLER_ID_SELECTION.replace("+", + PhoneNumberUtils.toCallerIDMinMatch(phoneNumber)); + Cursor cursor = context.getContentResolver().query( + Data.CONTENT_URI, + new String [] { Phone.DISPLAY_NAME }, + selection, + new String[] { phoneNumber }, + null); + + if (cursor != null && cursor.moveToFirst()) { + try { + String name = cursor.getString(0); + sContactCache.put(phoneNumber, name); + return name; + } catch (IndexOutOfBoundsException e) { + Log.e(TAG, " Cursor get string error " + e.toString()); + return null; + } finally { + cursor.close(); + } + } else { + Log.d(TAG, "No contact matched with number:" + phoneNumber); + return null; + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/Notes.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/Notes.java new file mode 100644 index 0000000..e15c4f7 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/Notes.java @@ -0,0 +1,280 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.data; + +import android.net.Uri; +public class Notes { + public static final String AUTHORITY = "micode_notes"; + public static final String TAG = "Notes"; + public static final int TYPE_NOTE = 0; + public static final int TYPE_FOLDER = 1; + public static final int TYPE_SYSTEM = 2; + + /** + * Following IDs are system folders' identifiers + * {@link Notes#ID_ROOT_FOLDER } is default folder + * {@link Notes#ID_TEMPARAY_FOLDER } is for notes belonging no folder + * {@link Notes#ID_CALL_RECORD_FOLDER} is to store call records + */ + public static final int ID_ROOT_FOLDER = 0; + public static final int ID_TEMPARAY_FOLDER = -1; + public static final int ID_CALL_RECORD_FOLDER = -2; + public static final int ID_TRASH_FOLER = -3; + public static final int ID_PRIVATE_FOLDER = -4; + + public static final String INTENT_EXTRA_ALERT_DATE = "net.micode.notes.alert_date"; + public static final String INTENT_EXTRA_BACKGROUND_ID = "net.micode.notes.background_color_id"; + public static final String INTENT_EXTRA_WIDGET_ID = "net.micode.notes.widget_id"; + public static final String INTENT_EXTRA_WIDGET_TYPE = "net.micode.notes.widget_type"; + public static final String INTENT_EXTRA_FOLDER_ID = "net.micode.notes.folder_id"; + public static final String INTENT_EXTRA_CALL_DATE = "net.micode.notes.call_date"; + + public static final int TYPE_WIDGET_INVALIDE = -1; + public static final int TYPE_WIDGET_2X = 0; + public static final int TYPE_WIDGET_4X = 1; + + public static class DataConstants { + public static final String NOTE = TextNote.CONTENT_ITEM_TYPE; + public static final String CALL_NOTE = CallNote.CONTENT_ITEM_TYPE; + } + + /** + * Uri to query all notes and folders + */ + public static final Uri CONTENT_NOTE_URI = Uri.parse("content://" + AUTHORITY + "/note"); + + /** + * Uri to query data + */ + public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data"); + + public interface NoteColumns { + /** + * The unique ID for a row + *

Type: INTEGER (long)

+ */ + public static final String ID = "_id"; + + /** + * The parent's id for note or folder + *

Type: INTEGER (long)

+ */ + public static final String PARENT_ID = "parent_id"; + + /** + * Created data for note or folder + *

Type: INTEGER (long)

+ */ + public static final String CREATED_DATE = "created_date"; + + /** + * Latest modified date + *

Type: INTEGER (long)

+ */ + public static final String MODIFIED_DATE = "modified_date"; + + + /** + * Alert date + *

Type: INTEGER (long)

+ */ + public static final String ALERTED_DATE = "alert_date"; + + /** + * Folder's name or text content of note + *

Type: TEXT

+ */ + public static final String SNIPPET = "snippet"; + + /** + * Note's widget id + *

Type: INTEGER (long)

+ */ + public static final String WIDGET_ID = "widget_id"; + + /** + * Note's widget type + *

Type: INTEGER (long)

+ */ + public static final String WIDGET_TYPE = "widget_type"; + + /** + * Note's background color's id + *

Type: INTEGER (long)

+ */ + public static final String BG_COLOR_ID = "bg_color_id"; + + /** + * For text note, it doesn't has attachment, for multi-media + * note, it has at least one attachment + *

Type: INTEGER

+ */ + public static final String HAS_ATTACHMENT = "has_attachment"; + + /** + * Folder's count of notes + *

Type: INTEGER (long)

+ */ + public static final String NOTES_COUNT = "notes_count"; + + /** + * The file type: folder or note + *

Type: INTEGER

+ */ + public static final String TYPE = "type"; + + /** + * The last sync id + *

Type: INTEGER (long)

+ */ + public static final String SYNC_ID = "sync_id"; + + /** + * Sign to indicate local modified or not + *

Type: INTEGER

+ */ + public static final String LOCAL_MODIFIED = "local_modified"; + + /** + * Original parent id before moving into temporary folder + *

Type : INTEGER

+ */ + public static final String ORIGIN_PARENT_ID = "origin_parent_id"; + + /** + * The gtask id + *

Type : TEXT

+ */ + public static final String GTASK_ID = "gtask_id"; + + /** + * The version code + *

Type : INTEGER (long)

+ */ + public static final String VERSION = "version"; + } + + public interface DataColumns { + /** + * The unique ID for a row + *

Type: INTEGER (long)

+ */ + public static final String ID = "_id"; + + /** + * The MIME type of the item represented by this row. + *

Type: Text

+ */ + public static final String MIME_TYPE = "mime_type"; + + /** + * The reference id to note that this data belongs to + *

Type: INTEGER (long)

+ */ + public static final String NOTE_ID = "note_id"; + + /** + * Created data for note or folder + *

Type: INTEGER (long)

+ */ + public static final String CREATED_DATE = "created_date"; + + /** + * Latest modified date + *

Type: INTEGER (long)

+ */ + public static final String MODIFIED_DATE = "modified_date"; + + /** + * Data's content + *

Type: TEXT

+ */ + public static final String CONTENT = "content"; + + + /** + * Generic data column, the meaning is {@link #MIMETYPE} specific, used for + * integer data type + *

Type: INTEGER

+ */ + public static final String DATA1 = "data1"; + + /** + * Generic data column, the meaning is {@link #MIMETYPE} specific, used for + * integer data type + *

Type: INTEGER

+ */ + public static final String DATA2 = "data2"; + + /** + * Generic data column, the meaning is {@link #MIMETYPE} specific, used for + * TEXT data type + *

Type: TEXT

+ */ + public static final String DATA3 = "data3"; + + /** + * Generic data column, the meaning is {@link #MIMETYPE} specific, used for + * TEXT data type + *

Type: TEXT

+ */ + public static final String DATA4 = "data4"; + + /** + * Generic data column, the meaning is {@link #MIMETYPE} specific, used for + * TEXT data type + *

Type: TEXT

+ */ + public static final String DATA5 = "data5"; + } + + public static final class TextNote implements DataColumns { + /** + * Mode to indicate the text in check list mode or not + *

Type: Integer 1:check list mode 0: normal mode

+ */ + public static final String MODE = DATA1; + + public static final int MODE_CHECK_LIST = 1; + + public static final String CONTENT_TYPE = "vnd.android.cursor.dir/text_note"; + + public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/text_note"; + + public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/text_note"); + } + + public static final class CallNote implements DataColumns { + /** + * Call date for this record + *

Type: INTEGER (long)

+ */ + public static final String CALL_DATE = DATA1; + + /** + * Phone number for this record + *

Type: TEXT

+ */ + public static final String PHONE_NUMBER = DATA3; + + public static final String CONTENT_TYPE = "vnd.android.cursor.dir/call_note"; + + public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/call_note"; + + public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/call_note"); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java new file mode 100644 index 0000000..83a1114 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java @@ -0,0 +1,393 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.data; + +import android.content.ContentValues; +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; +import android.util.Log; + +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.DataConstants; +import net.micode.notes.data.Notes.NoteColumns; + + +public class NotesDatabaseHelper extends SQLiteOpenHelper { + private static final String DB_NAME = "note.db"; + + private static final int DB_VERSION = 4; + + public interface TABLE { + public static final String NOTE = "note"; + + public static final String DATA = "data"; + } + + private static final String TAG = "NotesDatabaseHelper"; + + private static NotesDatabaseHelper mInstance; + + private static final String CREATE_NOTE_TABLE_SQL = + "CREATE TABLE " + TABLE.NOTE + "(" + + NoteColumns.ID + " INTEGER PRIMARY KEY," + + NoteColumns.PARENT_ID + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.ALERTED_DATE + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.BG_COLOR_ID + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + + NoteColumns.HAS_ATTACHMENT + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + + NoteColumns.NOTES_COUNT + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.SNIPPET + " TEXT NOT NULL DEFAULT ''," + + NoteColumns.TYPE + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.WIDGET_ID + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.WIDGET_TYPE + " INTEGER NOT NULL DEFAULT -1," + + NoteColumns.SYNC_ID + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.LOCAL_MODIFIED + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.ORIGIN_PARENT_ID + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.GTASK_ID + " TEXT NOT NULL DEFAULT ''," + + NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" + + ")"; + + private static final String CREATE_DATA_TABLE_SQL = + "CREATE TABLE " + TABLE.DATA + "(" + + DataColumns.ID + " INTEGER PRIMARY KEY," + + DataColumns.MIME_TYPE + " TEXT NOT NULL," + + DataColumns.NOTE_ID + " INTEGER NOT NULL DEFAULT 0," + + NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + + NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + + DataColumns.CONTENT + " TEXT NOT NULL DEFAULT ''," + + DataColumns.DATA1 + " INTEGER," + + DataColumns.DATA2 + " INTEGER," + + DataColumns.DATA3 + " TEXT NOT NULL DEFAULT ''," + + DataColumns.DATA4 + " TEXT NOT NULL DEFAULT ''," + + DataColumns.DATA5 + " TEXT NOT NULL DEFAULT ''" + + ")"; + + private static final String CREATE_DATA_NOTE_ID_INDEX_SQL = + "CREATE INDEX IF NOT EXISTS note_id_index ON " + + TABLE.DATA + "(" + DataColumns.NOTE_ID + ");"; + + /** + * Increase folder's note count when move note to the folder + */ + private static final String NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER = + "CREATE TRIGGER increase_folder_count_on_update " + + " AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE + + " BEGIN " + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + " + 1" + + " WHERE " + NoteColumns.ID + "=new." + NoteColumns.PARENT_ID + ";" + + " END"; + + /** + * Decrease folder's note count when move note from folder + */ + private static final String NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER = + "CREATE TRIGGER decrease_folder_count_on_update " + + " AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE + + " BEGIN " + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + "-1" + + " WHERE " + NoteColumns.ID + "=old." + NoteColumns.PARENT_ID + + " AND " + NoteColumns.NOTES_COUNT + ">0" + ";" + + " END"; + + /** + * Increase folder's note count when insert new note to the folder + */ + private static final String NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER = + "CREATE TRIGGER increase_folder_count_on_insert " + + " AFTER INSERT ON " + TABLE.NOTE + + " BEGIN " + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + " + 1" + + " WHERE " + NoteColumns.ID + "=new." + NoteColumns.PARENT_ID + ";" + + " END"; + + /** + * Decrease folder's note count when delete note from the folder + */ + private static final String NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER = + "CREATE TRIGGER decrease_folder_count_on_delete " + + " AFTER DELETE ON " + TABLE.NOTE + + " BEGIN " + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.NOTES_COUNT + "=" + NoteColumns.NOTES_COUNT + "-1" + + " WHERE " + NoteColumns.ID + "=old." + NoteColumns.PARENT_ID + + " AND " + NoteColumns.NOTES_COUNT + ">0;" + + " END"; + + /** + * Update note's content when insert data with type {@link DataConstants#NOTE} + */ + private static final String DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER = + "CREATE TRIGGER update_note_content_on_insert " + + " AFTER INSERT ON " + TABLE.DATA + + " WHEN new." + DataColumns.MIME_TYPE + "='" + DataConstants.NOTE + "'" + + " BEGIN" + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.SNIPPET + "=new." + DataColumns.CONTENT + + " WHERE " + NoteColumns.ID + "=new." + DataColumns.NOTE_ID + ";" + + " END"; + + /** + * Update note's content when data with {@link DataConstants#NOTE} type has changed + */ + private static final String DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER = + "CREATE TRIGGER update_note_content_on_update " + + " AFTER UPDATE ON " + TABLE.DATA + + " WHEN old." + DataColumns.MIME_TYPE + "='" + DataConstants.NOTE + "'" + + " BEGIN" + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.SNIPPET + "=new." + DataColumns.CONTENT + + " WHERE " + NoteColumns.ID + "=new." + DataColumns.NOTE_ID + ";" + + " END"; + + /** + * Update note's content when data with {@link DataConstants#NOTE} type has deleted + */ + private static final String DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER = + "CREATE TRIGGER update_note_content_on_delete " + + " AFTER delete ON " + TABLE.DATA + + " WHEN old." + DataColumns.MIME_TYPE + "='" + DataConstants.NOTE + "'" + + " BEGIN" + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.SNIPPET + "=''" + + " WHERE " + NoteColumns.ID + "=old." + DataColumns.NOTE_ID + ";" + + " END"; + + /** + * Delete datas belong to note which has been deleted + */ + private static final String NOTE_DELETE_DATA_ON_DELETE_TRIGGER = + "CREATE TRIGGER delete_data_on_delete " + + " AFTER DELETE ON " + TABLE.NOTE + + " BEGIN" + + " DELETE FROM " + TABLE.DATA + + " WHERE " + DataColumns.NOTE_ID + "=old." + NoteColumns.ID + ";" + + " END"; + + /** + * Delete notes belong to folder which has been deleted + */ + private static final String FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER = + "CREATE TRIGGER folder_delete_notes_on_delete " + + " AFTER DELETE ON " + TABLE.NOTE + + " BEGIN" + + " DELETE FROM " + TABLE.NOTE + + " WHERE " + NoteColumns.PARENT_ID + "=old." + NoteColumns.ID + ";" + + " END"; + + /** + * Move notes belong to folder which has been moved to trash folder + */ + private static final String FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER = + "CREATE TRIGGER folder_move_notes_on_trash " + + " AFTER UPDATE ON " + TABLE.NOTE + + " WHEN new." + NoteColumns.PARENT_ID + "=" + Notes.ID_TRASH_FOLER + + " BEGIN" + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.PARENT_ID + "=" + Notes.ID_TRASH_FOLER + + " WHERE " + NoteColumns.PARENT_ID + "=old." + NoteColumns.ID + ";" + + " END"; + /** + * Move notes belong to folder which has been moved to private folder + */ + private static final String FOLDER_MOVE_NOTES_ON_PRIVATE_TRIGGER = + "CREATE TRIGGER folder_move_notes_on_private " + + " AFTER UPDATE ON " + TABLE.NOTE + + " WHEN new." + NoteColumns.PARENT_ID + "=" + Notes.ID_PRIVATE_FOLDER + + " BEGIN" + + " UPDATE " + TABLE.NOTE + + " SET " + NoteColumns.PARENT_ID + "=" + Notes.ID_PRIVATE_FOLDER + + " WHERE " + NoteColumns.PARENT_ID + "=old." + NoteColumns.ID + ";" + + " END"; + + public NotesDatabaseHelper(Context context) { + super(context, DB_NAME, null, DB_VERSION); + } + + public void createNoteTable(SQLiteDatabase db) { + db.execSQL(CREATE_NOTE_TABLE_SQL); + reCreateNoteTableTriggers(db); + createSystemFolder(db); + Log.d(TAG, "note table has been created"); + } + + private void reCreateNoteTableTriggers(SQLiteDatabase db) { + db.execSQL("DROP TRIGGER IF EXISTS increase_folder_count_on_update"); + db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_update"); + db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_delete"); + db.execSQL("DROP TRIGGER IF EXISTS delete_data_on_delete"); + db.execSQL("DROP TRIGGER IF EXISTS increase_folder_count_on_insert"); + db.execSQL("DROP TRIGGER IF EXISTS folder_delete_notes_on_delete"); + db.execSQL("DROP TRIGGER IF EXISTS folder_move_notes_on_trash"); + + db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER); + db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER); + db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER); + db.execSQL(NOTE_DELETE_DATA_ON_DELETE_TRIGGER); + db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER); + db.execSQL(FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER); + db.execSQL(FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER); + db.execSQL(FOLDER_MOVE_NOTES_ON_PRIVATE_TRIGGER); + } + + private void createSystemFolder(SQLiteDatabase db) { + ContentValues values = new ContentValues(); + + values.put(NoteColumns.ID, Notes.ID_PRIVATE_FOLDER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + + /** + * call record foler for call notes + */ + values.put(NoteColumns.ID, Notes.ID_CALL_RECORD_FOLDER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + + /** + * root folder which is default folder + */ + values.clear(); + values.put(NoteColumns.ID, Notes.ID_ROOT_FOLDER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + + /** + * temporary folder which is used for moving note + */ + values.clear(); + values.put(NoteColumns.ID, Notes.ID_TEMPARAY_FOLDER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + + /** + * create trash folder + */ + values.clear(); + values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + /** + * create private folder + */ + values.clear(); + values.put(NoteColumns.ID, Notes.ID_PRIVATE_FOLDER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + } + + public void createDataTable(SQLiteDatabase db) { + db.execSQL(CREATE_DATA_TABLE_SQL); + reCreateDataTableTriggers(db); + db.execSQL(CREATE_DATA_NOTE_ID_INDEX_SQL); + Log.d(TAG, "data table has been created"); + } + + private void reCreateDataTableTriggers(SQLiteDatabase db) { + db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_insert"); + db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_update"); + db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_delete"); + db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_private"); + + db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER); + db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER); + db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER); + } + + static synchronized NotesDatabaseHelper getInstance(Context context) { + if (mInstance == null) { + mInstance = new NotesDatabaseHelper(context); + } + return mInstance; + } + + @Override + public void onCreate(SQLiteDatabase db) { + createNoteTable(db); + createDataTable(db); + } + + @Override + public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { + boolean reCreateTriggers = false; + boolean skipV2 = false; + + if (oldVersion == 1) { + upgradeToV2(db); + skipV2 = true; // this upgrade including the upgrade from v2 to v3 + oldVersion++; + } + + if (oldVersion == 2 && !skipV2) { + upgradeToV3(db); + reCreateTriggers = true; + oldVersion++; + } + + if (oldVersion == 3) { + upgradeToV4(db); + oldVersion++; + } + + if (reCreateTriggers) { + reCreateNoteTableTriggers(db); + reCreateDataTableTriggers(db); + } + + if (oldVersion != newVersion) { + throw new IllegalStateException("Upgrade notes database to version " + newVersion + + "fails"); + } + } + + private void upgradeToV2(SQLiteDatabase db) { + db.execSQL("DROP TABLE IF EXISTS " + TABLE.NOTE); + db.execSQL("DROP TABLE IF EXISTS " + TABLE.DATA); + createNoteTable(db); + createDataTable(db); + } + + private void upgradeToV3(SQLiteDatabase db) { + // drop unused triggers + db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_insert"); + db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_delete"); + db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_update"); + // add a column for gtask id + db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.GTASK_ID + + " TEXT NOT NULL DEFAULT ''"); + // add a trash system folder + ContentValues values = new ContentValues(); + values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER); + values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + + // add a private system folder + ContentValues values1 = new ContentValues(); + values1.put(NoteColumns.ID, Notes.ID_PRIVATE_FOLDER); + values1.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + db.insert(TABLE.NOTE, null, values); + } + + private void upgradeToV4(SQLiteDatabase db) { + db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.VERSION + + " INTEGER NOT NULL DEFAULT 0"); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/NotesProvider.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/NotesProvider.java new file mode 100644 index 0000000..edb0a60 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/data/NotesProvider.java @@ -0,0 +1,305 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.data; + + +import android.app.SearchManager; +import android.content.ContentProvider; +import android.content.ContentUris; +import android.content.ContentValues; +import android.content.Intent; +import android.content.UriMatcher; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; +import android.net.Uri; +import android.text.TextUtils; +import android.util.Log; + +import net.micode.notes.R; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.data.NotesDatabaseHelper.TABLE; + + +public class NotesProvider extends ContentProvider { + private static final UriMatcher mMatcher; + + private NotesDatabaseHelper mHelper; + + private static final String TAG = "NotesProvider"; + + private static final int URI_NOTE = 1; + private static final int URI_NOTE_ITEM = 2; + private static final int URI_DATA = 3; + private static final int URI_DATA_ITEM = 4; + + private static final int URI_SEARCH = 5; + private static final int URI_SEARCH_SUGGEST = 6; + + static { + mMatcher = new UriMatcher(UriMatcher.NO_MATCH); + mMatcher.addURI(Notes.AUTHORITY, "note", URI_NOTE); + mMatcher.addURI(Notes.AUTHORITY, "note/#", URI_NOTE_ITEM); + mMatcher.addURI(Notes.AUTHORITY, "data", URI_DATA); + mMatcher.addURI(Notes.AUTHORITY, "data/#", URI_DATA_ITEM); + mMatcher.addURI(Notes.AUTHORITY, "search", URI_SEARCH); + mMatcher.addURI(Notes.AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY, URI_SEARCH_SUGGEST); + mMatcher.addURI(Notes.AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", URI_SEARCH_SUGGEST); + } + + /** + * x'0A' represents the '\n' character in sqlite. For title and content in the search result, + * we will trim '\n' and white space in order to show more information. + */ + private static final String NOTES_SEARCH_PROJECTION = NoteColumns.ID + "," + + NoteColumns.ID + " AS " + SearchManager.SUGGEST_COLUMN_INTENT_EXTRA_DATA + "," + + "TRIM(REPLACE(" + NoteColumns.SNIPPET + ", x'0A','')) AS " + SearchManager.SUGGEST_COLUMN_TEXT_1 + "," + + "TRIM(REPLACE(" + NoteColumns.SNIPPET + ", x'0A','')) AS " + SearchManager.SUGGEST_COLUMN_TEXT_2 + "," + + R.drawable.search_result + " AS " + SearchManager.SUGGEST_COLUMN_ICON_1 + "," + + "'" + Intent.ACTION_VIEW + "' AS " + SearchManager.SUGGEST_COLUMN_INTENT_ACTION + "," + + "'" + Notes.TextNote.CONTENT_TYPE + "' AS " + SearchManager.SUGGEST_COLUMN_INTENT_DATA; + + private static String NOTES_SNIPPET_SEARCH_QUERY = "SELECT " + NOTES_SEARCH_PROJECTION + + " FROM " + TABLE.NOTE + + " WHERE " + NoteColumns.SNIPPET + " LIKE ?" + + " AND " + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER + + " AND " + NoteColumns.TYPE + "=" + Notes.TYPE_NOTE; + + @Override + public boolean onCreate() { + mHelper = NotesDatabaseHelper.getInstance(getContext()); + return true; + } + + @Override + public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, + String sortOrder) { + Cursor c = null; + SQLiteDatabase db = mHelper.getReadableDatabase(); + String id = null; + switch (mMatcher.match(uri)) { + case URI_NOTE: + c = db.query(TABLE.NOTE, projection, selection, selectionArgs, null, null, + sortOrder); + break; + case URI_NOTE_ITEM: + id = uri.getPathSegments().get(1); + c = db.query(TABLE.NOTE, projection, NoteColumns.ID + "=" + id + + parseSelection(selection), selectionArgs, null, null, sortOrder); + break; + case URI_DATA: + c = db.query(TABLE.DATA, projection, selection, selectionArgs, null, null, + sortOrder); + break; + case URI_DATA_ITEM: + id = uri.getPathSegments().get(1); + c = db.query(TABLE.DATA, projection, DataColumns.ID + "=" + id + + parseSelection(selection), selectionArgs, null, null, sortOrder); + break; + case URI_SEARCH: + case URI_SEARCH_SUGGEST: + if (sortOrder != null || projection != null) { + throw new IllegalArgumentException( + "do not specify sortOrder, selection, selectionArgs, or projection" + "with this query"); + } + + String searchString = null; + if (mMatcher.match(uri) == URI_SEARCH_SUGGEST) { + if (uri.getPathSegments().size() > 1) { + searchString = uri.getPathSegments().get(1); + } + } else { + searchString = uri.getQueryParameter("pattern"); + } + + if (TextUtils.isEmpty(searchString)) { + return null; + } + + try { + searchString = String.format("%%%s%%", searchString); + c = db.rawQuery(NOTES_SNIPPET_SEARCH_QUERY, + new String[] { searchString }); + } catch (IllegalStateException ex) { + Log.e(TAG, "got exception: " + ex.toString()); + } + break; + default: + throw new IllegalArgumentException("Unknown URI " + uri); + } + if (c != null) { + c.setNotificationUri(getContext().getContentResolver(), uri); + } + return c; + } + + @Override + public Uri insert(Uri uri, ContentValues values) { + SQLiteDatabase db = mHelper.getWritableDatabase(); + long dataId = 0, noteId = 0, insertedId = 0; + switch (mMatcher.match(uri)) { + case URI_NOTE: + insertedId = noteId = db.insert(TABLE.NOTE, null, values); + break; + case URI_DATA: + if (values.containsKey(DataColumns.NOTE_ID)) { + noteId = values.getAsLong(DataColumns.NOTE_ID); + } else { + Log.d(TAG, "Wrong data format without note id:" + values.toString()); + } + insertedId = dataId = db.insert(TABLE.DATA, null, values); + break; + default: + throw new IllegalArgumentException("Unknown URI " + uri); + } + // Notify the note uri + if (noteId > 0) { + getContext().getContentResolver().notifyChange( + ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), null); + } + + // Notify the data uri + if (dataId > 0) { + getContext().getContentResolver().notifyChange( + ContentUris.withAppendedId(Notes.CONTENT_DATA_URI, dataId), null); + } + + return ContentUris.withAppendedId(uri, insertedId); + } + + @Override + public int delete(Uri uri, String selection, String[] selectionArgs) { + int count = 0; + String id = null; + SQLiteDatabase db = mHelper.getWritableDatabase(); + boolean deleteData = false; + switch (mMatcher.match(uri)) { + case URI_NOTE: + selection = "(" + selection + ") AND " + NoteColumns.ID + ">0 "; + count = db.delete(TABLE.NOTE, selection, selectionArgs); + break; + case URI_NOTE_ITEM: + id = uri.getPathSegments().get(1); + /** + * ID that smaller than 0 is system folder which is not allowed to + * trash + */ + long noteId = Long.valueOf(id); + if (noteId <= 0) { + break; + } + count = db.delete(TABLE.NOTE, + NoteColumns.ID + "=" + id + parseSelection(selection), selectionArgs); + break; + case URI_DATA: + count = db.delete(TABLE.DATA, selection, selectionArgs); + deleteData = true; + break; + case URI_DATA_ITEM: + id = uri.getPathSegments().get(1); + count = db.delete(TABLE.DATA, + DataColumns.ID + "=" + id + parseSelection(selection), selectionArgs); + deleteData = true; + break; + default: + throw new IllegalArgumentException("Unknown URI " + uri); + } + if (count > 0) { + if (deleteData) { + getContext().getContentResolver().notifyChange(Notes.CONTENT_NOTE_URI, null); + } + getContext().getContentResolver().notifyChange(uri, null); + } + return count; + } + + @Override + public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { + int count = 0; + String id = null; + SQLiteDatabase db = mHelper.getWritableDatabase(); + boolean updateData = false; + switch (mMatcher.match(uri)) { + case URI_NOTE: + increaseNoteVersion(-1, selection, selectionArgs); + count = db.update(TABLE.NOTE, values, selection, selectionArgs); + break; + case URI_NOTE_ITEM: + id = uri.getPathSegments().get(1); + increaseNoteVersion(Long.valueOf(id), selection, selectionArgs); + count = db.update(TABLE.NOTE, values, NoteColumns.ID + "=" + id + + parseSelection(selection), selectionArgs); + break; + case URI_DATA: + count = db.update(TABLE.DATA, values, selection, selectionArgs); + updateData = true; + break; + case URI_DATA_ITEM: + id = uri.getPathSegments().get(1); + count = db.update(TABLE.DATA, values, DataColumns.ID + "=" + id + + parseSelection(selection), selectionArgs); + updateData = true; + break; + default: + throw new IllegalArgumentException("Unknown URI " + uri); + } + + if (count > 0) { + if (updateData) { + getContext().getContentResolver().notifyChange(Notes.CONTENT_NOTE_URI, null); + } + getContext().getContentResolver().notifyChange(uri, null); + } + return count; + } + + private String parseSelection(String selection) { + return (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""); + } + + private void increaseNoteVersion(long id, String selection, String[] selectionArgs) { + StringBuilder sql = new StringBuilder(120); + sql.append("UPDATE "); + sql.append(TABLE.NOTE); + sql.append(" SET "); + sql.append(NoteColumns.VERSION); + sql.append("=" + NoteColumns.VERSION + "+1 "); + + if (id > 0 || !TextUtils.isEmpty(selection)) { + sql.append(" WHERE "); + } + if (id > 0) { + sql.append(NoteColumns.ID + "=" + String.valueOf(id)); + } + if (!TextUtils.isEmpty(selection)) { + String selectString = id > 0 ? parseSelection(selection) : selection; + for (String args : selectionArgs) { + selectString = selectString.replaceFirst("\\?", args); + } + sql.append(selectString); + } + + mHelper.getWritableDatabase().execSQL(sql.toString()); + } + + @Override + public String getType(Uri uri) { + // TODO Auto-generated method stub + return null; + } + +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/MetaData.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/MetaData.java new file mode 100644 index 0000000..c4683e4 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/MetaData.java @@ -0,0 +1,84 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.data; + +import android.database.Cursor; +import android.util.Log; + +import net.micode.notes.tool.GTaskStringUtils; + +import org.json.JSONException; +import org.json.JSONObject; + +public class MetaData extends Task { + + // 通过getSimpleName()获得类的gid并存入字符串中 + private final static String TAG = MetaData.class.getSimpleName(); + private String mRelatedGid = null; + // 设置元数据,生成元数据库 + public void setMeta(String gid, JSONObject metaInfo) { + try { + // 注释方法块 + metaInfo.put(GTaskStringUtils.META_HEAD_GTASK_ID, gid); + } catch (JSONException e) { + // 生成无法创建关联gid的日志 + Log.e(TAG, "failed to put related gid"); + } + setNotes(metaInfo.toString()); + setName(GTaskStringUtils.META_NOTE_NAME); + } + // 获取关联的gid + public String getRelatedGid() { + return mRelatedGid; + } + // 判断数据是否为空是否值得保存 + @Override + public boolean isWorthSaving() { + return getNotes() != null; + } + // 使用远程json设置元数据内容 + @Override + public void setContentByRemoteJSON(JSONObject js) { + super.setContentByRemoteJSON(js); + if (getNotes() != null) { + try { + JSONObject metaInfo = new JSONObject(getNotes().trim()); + mRelatedGid = metaInfo.getString(GTaskStringUtils.META_HEAD_GTASK_ID); + } catch (JSONException e) { + Log.w(TAG, "failed to get related gid"); + mRelatedGid = null; + } + } + } + // 使用本地json对象设置数据内容,该方法不应该被调用,若调用则抛出异常 + @Override + public void setContentByLocalJSON(JSONObject js) { + // this function should not be called + throw new IllegalAccessError("MetaData:setContentByLocalJSON should not be called"); + } + // 从元数据中获取本地json对象,该方法不应该被调用,若调用则抛出异常 + @Override + public JSONObject getLocalJSONFromContent() { + throw new IllegalAccessError("MetaData:getLocalJSONFromContent should not be called"); + } + // 获取同步动作状态,该方法不应该被调用,若调用则抛出异常 + @Override + public int getSyncAction(Cursor c) { + throw new IllegalAccessError("MetaData:getSyncAction should not be called"); + } + +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/Node.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/Node.java new file mode 100644 index 0000000..1484c14 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/Node.java @@ -0,0 +1,102 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.data; + +import android.database.Cursor; + +import org.json.JSONObject; +// 对同步操作的基本节点进行一个定义 +public abstract class Node { + // 本地和云端内容一致 + public static final int SYNC_ACTION_NONE = 0; + // 需要在远程云端增加内容 + public static final int SYNC_ACTION_ADD_REMOTE = 1; + // 需要在本地增加内容 + public static final int SYNC_ACTION_ADD_LOCAL = 2; + // 需要在远程云端和删除内容 + public static final int SYNC_ACTION_DEL_REMOTE = 3; + // 需要在本地删除内容 + public static final int SYNC_ACTION_DEL_LOCAL = 4; + // 需要将本地内容更新至云端 + public static final int SYNC_ACTION_UPDATE_REMOTE = 5; + // 需要将云端内容更新至本地 + public static final int SYNC_ACTION_UPDATE_LOCAL = 6; + // 同步冲突 + public static final int SYNC_ACTION_UPDATE_CONFLICT = 7; + // 同步错误 + public static final int SYNC_ACTION_ERROR = 8; + + private String mGid; + + private String mName; + // 记录最后一次修改的时间 + private long mLastModified; + // 表征是否被删除 + private boolean mDeleted; + + public Node() { + mGid = null; + mName = ""; + mLastModified = 0; + mDeleted = false; + } + + public abstract JSONObject getCreateAction(int actionId); + + public abstract JSONObject getUpdateAction(int actionId); + + public abstract void setContentByRemoteJSON(JSONObject js); + + public abstract void setContentByLocalJSON(JSONObject js); + + public abstract JSONObject getLocalJSONFromContent(); + + public abstract int getSyncAction(Cursor c); + + public void setGid(String gid) { + this.mGid = gid; + } + + public void setName(String name) { + this.mName = name; + } + + public void setLastModified(long lastModified) { + this.mLastModified = lastModified; + } + + public void setDeleted(boolean deleted) { + this.mDeleted = deleted; + } + + public String getGid() { + return this.mGid; + } + + public String getName() { + return this.mName; + } + + public long getLastModified() { + return this.mLastModified; + } + + public boolean getDeleted() { + return this.mDeleted; + } + +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/SqlData.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/SqlData.java new file mode 100644 index 0000000..72ba013 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/SqlData.java @@ -0,0 +1,190 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Description:用于支持小米便签最底层的数据库相关操作,和sqlnote的关系上是子集关系,即data是note的子集(节点)。 +// SqlData其实就是也就是所谓数据中的数据 +package net.micode.notes.gtask.data; + +import android.content.ContentResolver; +import android.content.ContentUris; +import android.content.ContentValues; +import android.content.Context; +import android.database.Cursor; +import android.net.Uri; +import android.util.Log; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.DataConstants; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.data.NotesDatabaseHelper.TABLE; +import net.micode.notes.gtask.exception.ActionFailureException; + +import org.json.JSONException; +import org.json.JSONObject; + +public class SqlData { + // 将得到的内容写入字符串tag中 + private static final String TAG = SqlData.class.getSimpleName(); + // 设置无效id为-99999 + private static final int INVALID_ID = -99999; + // 集合interface DataColumns中所有sf常量 + public static final String[] PROJECTION_DATA = new String[] { + DataColumns.ID, DataColumns.MIME_TYPE, DataColumns.CONTENT, DataColumns.DATA1, + DataColumns.DATA3 + }; + // 为sql表编号 + public static final int DATA_ID_COLUMN = 0; + + public static final int DATA_MIME_TYPE_COLUMN = 1; + + public static final int DATA_CONTENT_COLUMN = 2; + + public static final int DATA_CONTENT_DATA_1_COLUMN = 3; + + public static final int DATA_CONTENT_DATA_3_COLUMN = 4; + + private ContentResolver mContentResolver; + // 判断是否用content生成,真为true,假为false + private boolean mIsCreate; + + private long mDataId; + + private String mDataMimeType; + + private String mDataContent; + + private long mDataContentData1; + + private String mDataContentData3; + + private ContentValues mDiffDataValues; + // 初始化数据库的构造函数 + public SqlData(Context context) { + mContentResolver = context.getContentResolver(); + mIsCreate = true; + mDataId = INVALID_ID; + mDataMimeType = DataConstants.NOTE; + mDataContent = ""; + mDataContentData1 = 0; + mDataContentData3 = ""; + mDiffDataValues = new ContentValues(); + } + // 初始化数据库的构造函数 + public SqlData(Context context, Cursor c) { + mContentResolver = context.getContentResolver(); + mIsCreate = false; + loadFromCursor(c); + mDiffDataValues = new ContentValues(); + } + // 从游标处加载数据 + private void loadFromCursor(Cursor c) { + mDataId = c.getLong(DATA_ID_COLUMN); + mDataMimeType = c.getString(DATA_MIME_TYPE_COLUMN); + mDataContent = c.getString(DATA_CONTENT_COLUMN); + mDataContentData1 = c.getLong(DATA_CONTENT_DATA_1_COLUMN); + mDataContentData3 = c.getString(DATA_CONTENT_DATA_3_COLUMN); + } + // 设置用于共享的数据 + public void setContent(JSONObject js) throws JSONException { + long dataId = js.has(DataColumns.ID) ? js.getLong(DataColumns.ID) : INVALID_ID; + if (mIsCreate || mDataId != dataId) { + mDiffDataValues.put(DataColumns.ID, dataId); + } + mDataId = dataId; + + String dataMimeType = js.has(DataColumns.MIME_TYPE) ? js.getString(DataColumns.MIME_TYPE) + : DataConstants.NOTE; + if (mIsCreate || !mDataMimeType.equals(dataMimeType)) { + mDiffDataValues.put(DataColumns.MIME_TYPE, dataMimeType); + } + mDataMimeType = dataMimeType; + + String dataContent = js.has(DataColumns.CONTENT) ? js.getString(DataColumns.CONTENT) : ""; + if (mIsCreate || !mDataContent.equals(dataContent)) { + mDiffDataValues.put(DataColumns.CONTENT, dataContent); + } + mDataContent = dataContent; + + long dataContentData1 = js.has(DataColumns.DATA1) ? js.getLong(DataColumns.DATA1) : 0; + if (mIsCreate || mDataContentData1 != dataContentData1) { + mDiffDataValues.put(DataColumns.DATA1, dataContentData1); + } + mDataContentData1 = dataContentData1; + + String dataContentData3 = js.has(DataColumns.DATA3) ? js.getString(DataColumns.DATA3) : ""; + if (mIsCreate || !mDataContentData3.equals(dataContentData3)) { + mDiffDataValues.put(DataColumns.DATA3, dataContentData3); + } + mDataContentData3 = dataContentData3; + } + // 获取共享数据的内容 + public JSONObject getContent() throws JSONException { + if (mIsCreate) { + Log.e(TAG, "it seems that we haven't created this in database yet"); + return null; + } + JSONObject js = new JSONObject(); + js.put(DataColumns.ID, mDataId); + js.put(DataColumns.MIME_TYPE, mDataMimeType); + js.put(DataColumns.CONTENT, mDataContent); + js.put(DataColumns.DATA1, mDataContentData1); + js.put(DataColumns.DATA3, mDataContentData3); + return js; + } + // 提交更改至数据库 + public void commit(long noteId, boolean validateVersion, long version) { + + if (mIsCreate) { + if (mDataId == INVALID_ID && mDiffDataValues.containsKey(DataColumns.ID)) { + mDiffDataValues.remove(DataColumns.ID); + } + + mDiffDataValues.put(DataColumns.NOTE_ID, noteId); + Uri uri = mContentResolver.insert(Notes.CONTENT_DATA_URI, mDiffDataValues); + try { + mDataId = Long.valueOf(uri.getPathSegments().get(1)); + } catch (NumberFormatException e) { + Log.e(TAG, "Get note id error :" + e.toString()); + throw new ActionFailureException("create note failed"); + } + } else { + if (mDiffDataValues.size() > 0) { + int result = 0; + if (!validateVersion) { + result = mContentResolver.update(ContentUris.withAppendedId( + Notes.CONTENT_DATA_URI, mDataId), mDiffDataValues, null, null); + } else { + result = mContentResolver.update(ContentUris.withAppendedId( + Notes.CONTENT_DATA_URI, mDataId), mDiffDataValues, + " ? in (SELECT " + NoteColumns.ID + " FROM " + TABLE.NOTE + + " WHERE " + NoteColumns.VERSION + "=?)", new String[] { + String.valueOf(noteId), String.valueOf(version) + }); + } + if (result == 0) { + Log.w(TAG, "there is no update. maybe user updates note when syncing"); + } + } + } + + mDiffDataValues.clear(); + mIsCreate = false; + } + // 获取当前id + public long getId() { + return mDataId; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java new file mode 100644 index 0000000..be42a61 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/SqlNote.java @@ -0,0 +1,508 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.data; + +import android.appwidget.AppWidgetManager; +import android.content.ContentResolver; +import android.content.ContentValues; +import android.content.Context; +import android.database.Cursor; +import android.net.Uri; +import android.util.Log; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.gtask.exception.ActionFailureException; +import net.micode.notes.tool.GTaskStringUtils; +import net.micode.notes.tool.ResourceParser; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.util.ArrayList; + +// 用于支持小米便签最底层的数据库相关操作,和sqldata的关系上是父集关系,即note是data的子父集 +// 和SqlData相比SqlNote算是真正意义上的数据 + +public class SqlNote { + // 得到的类名写入tag中 + private static final String TAG = SqlNote.class.getSimpleName(); + + private static final int INVALID_ID = -99999; + // 集合了interface NoteColumns中所有SF常量 + public static final String[] PROJECTION_NOTE = new String[] { + NoteColumns.ID, NoteColumns.ALERTED_DATE, NoteColumns.BG_COLOR_ID, + NoteColumns.CREATED_DATE, NoteColumns.HAS_ATTACHMENT, NoteColumns.MODIFIED_DATE, + NoteColumns.NOTES_COUNT, NoteColumns.PARENT_ID, NoteColumns.SNIPPET, NoteColumns.TYPE, + NoteColumns.WIDGET_ID, NoteColumns.WIDGET_TYPE, NoteColumns.SYNC_ID, + NoteColumns.LOCAL_MODIFIED, NoteColumns.ORIGIN_PARENT_ID, NoteColumns.GTASK_ID, + NoteColumns.VERSION + }; + + public static final int ID_COLUMN = 0; + + public static final int ALERTED_DATE_COLUMN = 1; + + public static final int BG_COLOR_ID_COLUMN = 2; + + public static final int CREATED_DATE_COLUMN = 3; + + public static final int HAS_ATTACHMENT_COLUMN = 4; + + public static final int MODIFIED_DATE_COLUMN = 5; + + public static final int NOTES_COUNT_COLUMN = 6; + + public static final int PARENT_ID_COLUMN = 7; + + public static final int SNIPPET_COLUMN = 8; + + public static final int TYPE_COLUMN = 9; + + public static final int WIDGET_ID_COLUMN = 10; + + public static final int WIDGET_TYPE_COLUMN = 11; + + public static final int SYNC_ID_COLUMN = 12; + + public static final int LOCAL_MODIFIED_COLUMN = 13; + + public static final int ORIGIN_PARENT_ID_COLUMN = 14; + + public static final int GTASK_ID_COLUMN = 15; + + public static final int VERSION_COLUMN = 16; + + private Context mContext; + + private ContentResolver mContentResolver; + + private boolean mIsCreate; + + private long mId; + + private long mAlertDate; + + private int mBgColorId; + + private long mCreatedDate; + + private int mHasAttachment; + + private long mModifiedDate; + + private long mParentId; + + private String mSnippet; + + private int mType; + + private int mWidgetId; + + private int mWidgetType; + + private long mOriginParent; + + private long mVersion; + + private ContentValues mDiffNoteValues; + + private ArrayList mDataList; + // 构造函数,初始化context参数 + public SqlNote(Context context) { + mContext = context; + mContentResolver = context.getContentResolver(); + mIsCreate = true; + mId = INVALID_ID; + mAlertDate = 0; + mBgColorId = ResourceParser.getDefaultBgId(context); + mCreatedDate = System.currentTimeMillis(); + mHasAttachment = 0; + mModifiedDate = System.currentTimeMillis(); + mParentId = 0; + mSnippet = ""; + mType = Notes.TYPE_NOTE; + mWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; + mWidgetType = Notes.TYPE_WIDGET_INVALIDE; + mOriginParent = 0; + mVersion = 0; + mDiffNoteValues = new ContentValues(); + mDataList = new ArrayList(); + } + // 通过游标初始化context + public SqlNote(Context context, Cursor c) { + mContext = context; + mContentResolver = context.getContentResolver(); + mIsCreate = false; + loadFromCursor(c); + mDataList = new ArrayList(); + if (mType == Notes.TYPE_NOTE) + loadDataContent(); + mDiffNoteValues = new ContentValues(); + } + + public SqlNote(Context context, long id) { + mContext = context; + mContentResolver = context.getContentResolver(); + mIsCreate = false; + loadFromCursor(id); + mDataList = new ArrayList(); + if (mType == Notes.TYPE_NOTE) + loadDataContent(); + mDiffNoteValues = new ContentValues(); + + } + // 从游标加载数据 + private void loadFromCursor(long id) { + Cursor c = null; + try { + c = mContentResolver.query(Notes.CONTENT_NOTE_URI, PROJECTION_NOTE, "(_id=?)", + new String[] { + String.valueOf(id) + }, null); + if (c != null) { + c.moveToNext(); + loadFromCursor(c); + } else { + Log.w(TAG, "loadFromCursor: cursor = null"); + } + } finally { + if (c != null) + c.close(); + } + } + // 从游标加载数据 + private void loadFromCursor(Cursor c) { + mId = c.getLong(ID_COLUMN); + mAlertDate = c.getLong(ALERTED_DATE_COLUMN); + mBgColorId = c.getInt(BG_COLOR_ID_COLUMN); + mCreatedDate = c.getLong(CREATED_DATE_COLUMN); + mHasAttachment = c.getInt(HAS_ATTACHMENT_COLUMN); + mModifiedDate = c.getLong(MODIFIED_DATE_COLUMN); + mParentId = c.getLong(PARENT_ID_COLUMN); + mSnippet = c.getString(SNIPPET_COLUMN); + mType = c.getInt(TYPE_COLUMN); + mWidgetId = c.getInt(WIDGET_ID_COLUMN); + mWidgetType = c.getInt(WIDGET_TYPE_COLUMN); + mVersion = c.getLong(VERSION_COLUMN); + } + // 获取共享数据并加载到数据库当前游标处 + private void loadDataContent() { + Cursor c = null; + mDataList.clear(); + try { + c = mContentResolver.query(Notes.CONTENT_DATA_URI, SqlData.PROJECTION_DATA, + "(note_id=?)", new String[] { + String.valueOf(mId) + }, null); + if (c != null) { + if (c.getCount() == 0) { + Log.w(TAG, "it seems that the note has not data"); + return; + } + while (c.moveToNext()) { + SqlData data = new SqlData(mContext, c); + mDataList.add(data); + } + } else { + Log.w(TAG, "loadDataContent: cursor = null"); + } + } finally { + if (c != null) + c.close(); + } + } + // 设置通过content机制用于共享的数据信息 + public boolean setContent(JSONObject js) { + try { + JSONObject note = js.getJSONObject(GTaskStringUtils.META_HEAD_NOTE); + if (note.getInt(NoteColumns.TYPE) == Notes.TYPE_SYSTEM) { + Log.w(TAG, "cannot set system folder"); + } else if (note.getInt(NoteColumns.TYPE) == Notes.TYPE_FOLDER) { + // for folder we can only update the snnipet and type + String snippet = note.has(NoteColumns.SNIPPET) ? note + .getString(NoteColumns.SNIPPET) : ""; + if (mIsCreate || !mSnippet.equals(snippet)) { + mDiffNoteValues.put(NoteColumns.SNIPPET, snippet); + } + mSnippet = snippet; + + int type = note.has(NoteColumns.TYPE) ? note.getInt(NoteColumns.TYPE) + : Notes.TYPE_NOTE; + if (mIsCreate || mType != type) { + mDiffNoteValues.put(NoteColumns.TYPE, type); + } + mType = type; + } else if (note.getInt(NoteColumns.TYPE) == Notes.TYPE_NOTE) { + JSONArray dataArray = js.getJSONArray(GTaskStringUtils.META_HEAD_DATA); + long id = note.has(NoteColumns.ID) ? note.getLong(NoteColumns.ID) : INVALID_ID; + if (mIsCreate || mId != id) { + mDiffNoteValues.put(NoteColumns.ID, id); + } + mId = id; + + long alertDate = note.has(NoteColumns.ALERTED_DATE) ? note + .getLong(NoteColumns.ALERTED_DATE) : 0; + if (mIsCreate || mAlertDate != alertDate) { + mDiffNoteValues.put(NoteColumns.ALERTED_DATE, alertDate); + } + mAlertDate = alertDate; + + int bgColorId = note.has(NoteColumns.BG_COLOR_ID) ? note + .getInt(NoteColumns.BG_COLOR_ID) : ResourceParser.getDefaultBgId(mContext); + if (mIsCreate || mBgColorId != bgColorId) { + mDiffNoteValues.put(NoteColumns.BG_COLOR_ID, bgColorId); + } + mBgColorId = bgColorId; + + long createDate = note.has(NoteColumns.CREATED_DATE) ? note + .getLong(NoteColumns.CREATED_DATE) : System.currentTimeMillis(); + if (mIsCreate || mCreatedDate != createDate) { + mDiffNoteValues.put(NoteColumns.CREATED_DATE, createDate); + } + mCreatedDate = createDate; + + int hasAttachment = note.has(NoteColumns.HAS_ATTACHMENT) ? note + .getInt(NoteColumns.HAS_ATTACHMENT) : 0; + if (mIsCreate || mHasAttachment != hasAttachment) { + mDiffNoteValues.put(NoteColumns.HAS_ATTACHMENT, hasAttachment); + } + mHasAttachment = hasAttachment; + + long modifiedDate = note.has(NoteColumns.MODIFIED_DATE) ? note + .getLong(NoteColumns.MODIFIED_DATE) : System.currentTimeMillis(); + if (mIsCreate || mModifiedDate != modifiedDate) { + mDiffNoteValues.put(NoteColumns.MODIFIED_DATE, modifiedDate); + } + mModifiedDate = modifiedDate; + + long parentId = note.has(NoteColumns.PARENT_ID) ? note + .getLong(NoteColumns.PARENT_ID) : 0; + if (mIsCreate || mParentId != parentId) { + mDiffNoteValues.put(NoteColumns.PARENT_ID, parentId); + } + mParentId = parentId; + + String snippet = note.has(NoteColumns.SNIPPET) ? note + .getString(NoteColumns.SNIPPET) : ""; + if (mIsCreate || !mSnippet.equals(snippet)) { + mDiffNoteValues.put(NoteColumns.SNIPPET, snippet); + } + mSnippet = snippet; + + int type = note.has(NoteColumns.TYPE) ? note.getInt(NoteColumns.TYPE) + : Notes.TYPE_NOTE; + if (mIsCreate || mType != type) { + mDiffNoteValues.put(NoteColumns.TYPE, type); + } + mType = type; + + int widgetId = note.has(NoteColumns.WIDGET_ID) ? note.getInt(NoteColumns.WIDGET_ID) + : AppWidgetManager.INVALID_APPWIDGET_ID; + if (mIsCreate || mWidgetId != widgetId) { + mDiffNoteValues.put(NoteColumns.WIDGET_ID, widgetId); + } + mWidgetId = widgetId; + + int widgetType = note.has(NoteColumns.WIDGET_TYPE) ? note + .getInt(NoteColumns.WIDGET_TYPE) : Notes.TYPE_WIDGET_INVALIDE; + if (mIsCreate || mWidgetType != widgetType) { + mDiffNoteValues.put(NoteColumns.WIDGET_TYPE, widgetType); + } + mWidgetType = widgetType; + + long originParent = note.has(NoteColumns.ORIGIN_PARENT_ID) ? note + .getLong(NoteColumns.ORIGIN_PARENT_ID) : 0; + if (mIsCreate || mOriginParent != originParent) { + mDiffNoteValues.put(NoteColumns.ORIGIN_PARENT_ID, originParent); + } + mOriginParent = originParent; + + for (int i = 0; i < dataArray.length(); i++) { + JSONObject data = dataArray.getJSONObject(i); + SqlData sqlData = null; + if (data.has(DataColumns.ID)) { + long dataId = data.getLong(DataColumns.ID); + for (SqlData temp : mDataList) { + if (dataId == temp.getId()) { + sqlData = temp; + } + } + } + + if (sqlData == null) { + sqlData = new SqlData(mContext); + mDataList.add(sqlData); + } + + sqlData.setContent(data); + } + } + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + return false; + } + return true; + } + // 获取content机制提供的数据并加载到note中 + public JSONObject getContent() { + try { + JSONObject js = new JSONObject(); + + if (mIsCreate) { + Log.e(TAG, "it seems that we haven't created this in database yet"); + return null; + } + + JSONObject note = new JSONObject(); + if (mType == Notes.TYPE_NOTE) { + note.put(NoteColumns.ID, mId); + note.put(NoteColumns.ALERTED_DATE, mAlertDate); + note.put(NoteColumns.BG_COLOR_ID, mBgColorId); + note.put(NoteColumns.CREATED_DATE, mCreatedDate); + note.put(NoteColumns.HAS_ATTACHMENT, mHasAttachment); + note.put(NoteColumns.MODIFIED_DATE, mModifiedDate); + note.put(NoteColumns.PARENT_ID, mParentId); + note.put(NoteColumns.SNIPPET, mSnippet); + note.put(NoteColumns.TYPE, mType); + note.put(NoteColumns.WIDGET_ID, mWidgetId); + note.put(NoteColumns.WIDGET_TYPE, mWidgetType); + note.put(NoteColumns.ORIGIN_PARENT_ID, mOriginParent); + js.put(GTaskStringUtils.META_HEAD_NOTE, note); + + JSONArray dataArray = new JSONArray(); + for (SqlData sqlData : mDataList) { + JSONObject data = sqlData.getContent(); + if (data != null) { + dataArray.put(data); + } + } + js.put(GTaskStringUtils.META_HEAD_DATA, dataArray); + } else if (mType == Notes.TYPE_FOLDER || mType == Notes.TYPE_SYSTEM) { + note.put(NoteColumns.ID, mId); + note.put(NoteColumns.TYPE, mType); + note.put(NoteColumns.SNIPPET, mSnippet); + js.put(GTaskStringUtils.META_HEAD_NOTE, note); + } + + return js; + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + } + return null; + } + //给当前id设置父id + public void setParentId(long id) { + mParentId = id; + mDiffNoteValues.put(NoteColumns.PARENT_ID, id); + } + // 给当前id设置Gtaskid + public void setGtaskId(String gid) { + mDiffNoteValues.put(NoteColumns.GTASK_ID, gid); + } + // 给当前id设置同步id + public void setSyncId(long syncId) { + mDiffNoteValues.put(NoteColumns.SYNC_ID, syncId); + } + // 初始化本地修改,即撤销 + public void resetLocalModified() { + mDiffNoteValues.put(NoteColumns.LOCAL_MODIFIED, 0); + } + // 获得当前id + public long getId() { + return mId; + } + // 获得id的父id + public long getParentId() { + return mParentId; + } + // 获取小部分内容以显示部分便签内容 + public String getSnippet() { + return mSnippet; + } + // 判断是否为便签类型 + public boolean isNoteType() { + return mType == Notes.TYPE_NOTE; + } + // 提交更改到数据库 + public void commit(boolean validateVersion) { + if (mIsCreate) { + if (mId == INVALID_ID && mDiffNoteValues.containsKey(NoteColumns.ID)) { + mDiffNoteValues.remove(NoteColumns.ID); + } + + Uri uri = mContentResolver.insert(Notes.CONTENT_NOTE_URI, mDiffNoteValues); + try { + mId = Long.valueOf(uri.getPathSegments().get(1)); + } catch (NumberFormatException e) { + Log.e(TAG, "Get note id error :" + e.toString()); + throw new ActionFailureException("create note failed"); + } + if (mId == 0) { + throw new IllegalStateException("Create thread id failed"); + } + + if (mType == Notes.TYPE_NOTE) { + for (SqlData sqlData : mDataList) { + sqlData.commit(mId, false, -1); + } + } + } else { + if (mId <= 0 && mId != Notes.ID_ROOT_FOLDER && mId != Notes.ID_CALL_RECORD_FOLDER) { + Log.e(TAG, "No such note"); + throw new IllegalStateException("Try to update note with invalid id"); + } + if (mDiffNoteValues.size() > 0) { + mVersion ++; + int result = 0; + if (!validateVersion) { + result = mContentResolver.update(Notes.CONTENT_NOTE_URI, mDiffNoteValues, "(" + + NoteColumns.ID + "=?)", new String[] { + String.valueOf(mId) + }); + } else { + result = mContentResolver.update(Notes.CONTENT_NOTE_URI, mDiffNoteValues, "(" + + NoteColumns.ID + "=?) AND (" + NoteColumns.VERSION + "<=?)", + new String[] { + String.valueOf(mId), String.valueOf(mVersion) + }); + } + if (result == 0) { + Log.w(TAG, "there is no update. maybe user updates note when syncing"); + } + } + + if (mType == Notes.TYPE_NOTE) { + for (SqlData sqlData : mDataList) { + sqlData.commit(mId, validateVersion, mVersion); + } + } + } + + // refresh local info + loadFromCursor(mId); + if (mType == Notes.TYPE_NOTE) + loadDataContent(); + + mDiffNoteValues.clear(); + mIsCreate = false; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/Task.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/Task.java new file mode 100644 index 0000000..58097db --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/Task.java @@ -0,0 +1,351 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.data; + +import android.database.Cursor; +import android.text.TextUtils; +import android.util.Log; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.DataConstants; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.gtask.exception.ActionFailureException; +import net.micode.notes.tool.GTaskStringUtils; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + + +public class Task extends Node { + private static final String TAG = Task.class.getSimpleName(); + // 完成判断 + private boolean mCompleted; + + private String mNotes; + // 实例化存储的数据类型 + private JSONObject mMetaInfo; + // 兄弟任务的指针 + private Task mPriorSibling; + // 父类指针 + private TaskList mParent; + // 初始化构造方法 + public Task() { + super(); + mCompleted = false; + mNotes = null; + mPriorSibling = null; + mParent = null; + mMetaInfo = null; + } + // 用于创建jsonobject对象,获取创建新行为的操作 + public JSONObject getCreateAction(int actionId) { + JSONObject js = new JSONObject(); + + try { + // action_type + js.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, + GTaskStringUtils.GTASK_JSON_ACTION_TYPE_CREATE); + + // action_id + js.put(GTaskStringUtils.GTASK_JSON_ACTION_ID, actionId); + + // index + js.put(GTaskStringUtils.GTASK_JSON_INDEX, mParent.getChildTaskIndex(this)); + + // entity_delta + JSONObject entity = new JSONObject(); + entity.put(GTaskStringUtils.GTASK_JSON_NAME, getName()); + entity.put(GTaskStringUtils.GTASK_JSON_CREATOR_ID, "null"); + entity.put(GTaskStringUtils.GTASK_JSON_ENTITY_TYPE, + GTaskStringUtils.GTASK_JSON_TYPE_TASK); + if (getNotes() != null) { + entity.put(GTaskStringUtils.GTASK_JSON_NOTES, getNotes()); + } + js.put(GTaskStringUtils.GTASK_JSON_ENTITY_DELTA, entity); + + // parent_id + js.put(GTaskStringUtils.GTASK_JSON_PARENT_ID, mParent.getGid()); + + // dest_parent_type + js.put(GTaskStringUtils.GTASK_JSON_DEST_PARENT_TYPE, + GTaskStringUtils.GTASK_JSON_TYPE_GROUP); + + // list_id + js.put(GTaskStringUtils.GTASK_JSON_LIST_ID, mParent.getGid()); + + // prior_sibling_id + if (mPriorSibling != null) { + js.put(GTaskStringUtils.GTASK_JSON_PRIOR_SIBLING_ID, mPriorSibling.getGid()); + } + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("fail to generate task-create jsonobject"); + } + + return js; + } + // 用于创建jsonobject对象,实现创建更新行为的操作 + public JSONObject getUpdateAction(int actionId) { + JSONObject js = new JSONObject(); + + try { + // action_type + js.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, + GTaskStringUtils.GTASK_JSON_ACTION_TYPE_UPDATE); + + // action_id + js.put(GTaskStringUtils.GTASK_JSON_ACTION_ID, actionId); + + // id + js.put(GTaskStringUtils.GTASK_JSON_ID, getGid()); + + // entity_delta + JSONObject entity = new JSONObject(); + entity.put(GTaskStringUtils.GTASK_JSON_NAME, getName()); + if (getNotes() != null) { + entity.put(GTaskStringUtils.GTASK_JSON_NOTES, getNotes()); + } + entity.put(GTaskStringUtils.GTASK_JSON_DELETED, getDeleted()); + js.put(GTaskStringUtils.GTASK_JSON_ENTITY_DELTA, entity); + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("fail to generate task-update jsonobject"); + } + + return js; + } + // 用于从远端目录创建 + public void setContentByRemoteJSON(JSONObject js) { + if (js != null) { + try { + // id + if (js.has(GTaskStringUtils.GTASK_JSON_ID)) { + setGid(js.getString(GTaskStringUtils.GTASK_JSON_ID)); + } + + // last_modified + if (js.has(GTaskStringUtils.GTASK_JSON_LAST_MODIFIED)) { + setLastModified(js.getLong(GTaskStringUtils.GTASK_JSON_LAST_MODIFIED)); + } + + // name + if (js.has(GTaskStringUtils.GTASK_JSON_NAME)) { + setName(js.getString(GTaskStringUtils.GTASK_JSON_NAME)); + } + + // notes + if (js.has(GTaskStringUtils.GTASK_JSON_NOTES)) { + setNotes(js.getString(GTaskStringUtils.GTASK_JSON_NOTES)); + } + + // deleted + if (js.has(GTaskStringUtils.GTASK_JSON_DELETED)) { + setDeleted(js.getBoolean(GTaskStringUtils.GTASK_JSON_DELETED)); + } + + // completed + if (js.has(GTaskStringUtils.GTASK_JSON_COMPLETED)) { + setCompleted(js.getBoolean(GTaskStringUtils.GTASK_JSON_COMPLETED)); + } + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("fail to get task content from jsonobject"); + } + } + } + // 本地创建 + public void setContentByLocalJSON(JSONObject js) { + if (js == null || !js.has(GTaskStringUtils.META_HEAD_NOTE) + || !js.has(GTaskStringUtils.META_HEAD_DATA)) { + Log.w(TAG, "setContentByLocalJSON: nothing is avaiable"); + } + + try { + JSONObject note = js.getJSONObject(GTaskStringUtils.META_HEAD_NOTE); + JSONArray dataArray = js.getJSONArray(GTaskStringUtils.META_HEAD_DATA); + + if (note.getInt(NoteColumns.TYPE) != Notes.TYPE_NOTE) { + Log.e(TAG, "invalid type"); + return; + } + + for (int i = 0; i < dataArray.length(); i++) { + JSONObject data = dataArray.getJSONObject(i); + if (TextUtils.equals(data.getString(DataColumns.MIME_TYPE), DataConstants.NOTE)) { + setName(data.getString(DataColumns.CONTENT)); + break; + } + } + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + } + } + // 从目录获取本地json + public JSONObject getLocalJSONFromContent() { + String name = getName(); + try { + if (mMetaInfo == null) { + // new task created from web + if (name == null) { + Log.w(TAG, "the note seems to be an empty one"); + return null; + } + + JSONObject js = new JSONObject(); + JSONObject note = new JSONObject(); + JSONArray dataArray = new JSONArray(); + JSONObject data = new JSONObject(); + data.put(DataColumns.CONTENT, name); + dataArray.put(data); + js.put(GTaskStringUtils.META_HEAD_DATA, dataArray); + note.put(NoteColumns.TYPE, Notes.TYPE_NOTE); + js.put(GTaskStringUtils.META_HEAD_NOTE, note); + return js; + } else { + // synced task + JSONObject note = mMetaInfo.getJSONObject(GTaskStringUtils.META_HEAD_NOTE); + JSONArray dataArray = mMetaInfo.getJSONArray(GTaskStringUtils.META_HEAD_DATA); + + for (int i = 0; i < dataArray.length(); i++) { + JSONObject data = dataArray.getJSONObject(i); + if (TextUtils.equals(data.getString(DataColumns.MIME_TYPE), DataConstants.NOTE)) { + data.put(DataColumns.CONTENT, getName()); + break; + } + } + + note.put(NoteColumns.TYPE, Notes.TYPE_NOTE); + return mMetaInfo; + } + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + return null; + } + } + // 设置meta信息 + public void setMetaInfo(MetaData metaData) { + if (metaData != null && metaData.getNotes() != null) { + try { + mMetaInfo = new JSONObject(metaData.getNotes()); + } catch (JSONException e) { + Log.w(TAG, e.toString()); + mMetaInfo = null; + } + } + } + // 获取同步行为 + public int getSyncAction(Cursor c) { + try { + JSONObject noteInfo = null; + if (mMetaInfo != null && mMetaInfo.has(GTaskStringUtils.META_HEAD_NOTE)) { + noteInfo = mMetaInfo.getJSONObject(GTaskStringUtils.META_HEAD_NOTE); + } + + if (noteInfo == null) { + Log.w(TAG, "it seems that note meta has been deleted"); + return SYNC_ACTION_UPDATE_REMOTE; + } + + if (!noteInfo.has(NoteColumns.ID)) { + Log.w(TAG, "remote note id seems to be deleted"); + return SYNC_ACTION_UPDATE_LOCAL; + } + + // validate the note id now + if (c.getLong(SqlNote.ID_COLUMN) != noteInfo.getLong(NoteColumns.ID)) { + Log.w(TAG, "note id doesn't match"); + return SYNC_ACTION_UPDATE_LOCAL; + } + + if (c.getInt(SqlNote.LOCAL_MODIFIED_COLUMN) == 0) { + // there is no local update + if (c.getLong(SqlNote.SYNC_ID_COLUMN) == getLastModified()) { + // no update both side + return SYNC_ACTION_NONE; + } else { + // apply remote to local + return SYNC_ACTION_UPDATE_LOCAL; + } + } else { + // validate gtask id + if (!c.getString(SqlNote.GTASK_ID_COLUMN).equals(getGid())) { + Log.e(TAG, "gtask id doesn't match"); + return SYNC_ACTION_ERROR; + } + if (c.getLong(SqlNote.SYNC_ID_COLUMN) == getLastModified()) { + // local modification only + return SYNC_ACTION_UPDATE_REMOTE; + } else { + return SYNC_ACTION_UPDATE_CONFLICT; + } + } + } catch (Exception e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + } + + return SYNC_ACTION_ERROR; + } + + public boolean isWorthSaving() { + return mMetaInfo != null || (getName() != null && getName().trim().length() > 0) + || (getNotes() != null && getNotes().trim().length() > 0); + } + + public void setCompleted(boolean completed) { + this.mCompleted = completed; + } + + public void setNotes(String notes) { + this.mNotes = notes; + } + + public void setPriorSibling(Task priorSibling) { + this.mPriorSibling = priorSibling; + } + + public void setParent(TaskList parent) { + this.mParent = parent; + } + + public boolean getCompleted() { + return this.mCompleted; + } + + public String getNotes() { + return this.mNotes; + } + + public Task getPriorSibling() { + return this.mPriorSibling; + } + + public TaskList getParent() { + return this.mParent; + } + +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/TaskList.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/TaskList.java new file mode 100644 index 0000000..5f48d1d --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/data/TaskList.java @@ -0,0 +1,343 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.data; + +import android.database.Cursor; +import android.util.Log; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.gtask.exception.ActionFailureException; +import net.micode.notes.tool.GTaskStringUtils; + +import org.json.JSONException; +import org.json.JSONObject; + +import java.util.ArrayList; + + +public class TaskList extends Node { + private static final String TAG = TaskList.class.getSimpleName(); + // 当前TaskList的指针 + private int mIndex; + // 类中主要的保存数据的单元,用来实现一个以Task为元素的ArrayList + private ArrayList mChildren; + + public TaskList() { + super(); + mChildren = new ArrayList(); + mIndex = 1; + } + // 生成并返回一个包含了一定数据的JSONObject实体 + public JSONObject getCreateAction(int actionId) { + JSONObject js = new JSONObject(); + + try { + // action_type + js.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, + GTaskStringUtils.GTASK_JSON_ACTION_TYPE_CREATE); + + // action_id + js.put(GTaskStringUtils.GTASK_JSON_ACTION_ID, actionId); + + // index + js.put(GTaskStringUtils.GTASK_JSON_INDEX, mIndex); + + // entity_delta + JSONObject entity = new JSONObject(); + entity.put(GTaskStringUtils.GTASK_JSON_NAME, getName()); + entity.put(GTaskStringUtils.GTASK_JSON_CREATOR_ID, "null"); + entity.put(GTaskStringUtils.GTASK_JSON_ENTITY_TYPE, + GTaskStringUtils.GTASK_JSON_TYPE_GROUP); + js.put(GTaskStringUtils.GTASK_JSON_ENTITY_DELTA, entity); + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("fail to generate tasklist-create jsonobject"); + } + + return js; + } + // 更新一个包含了一定数据的JSONObject实体 + public JSONObject getUpdateAction(int actionId) { + JSONObject js = new JSONObject(); + + try { + // action_type + js.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, + GTaskStringUtils.GTASK_JSON_ACTION_TYPE_UPDATE); + + // action_id + js.put(GTaskStringUtils.GTASK_JSON_ACTION_ID, actionId); + + // id + js.put(GTaskStringUtils.GTASK_JSON_ID, getGid()); + + // entity_delta + JSONObject entity = new JSONObject(); + entity.put(GTaskStringUtils.GTASK_JSON_NAME, getName()); + entity.put(GTaskStringUtils.GTASK_JSON_DELETED, getDeleted()); + js.put(GTaskStringUtils.GTASK_JSON_ENTITY_DELTA, entity); + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("fail to generate tasklist-update jsonobject"); + } + + return js; + } + + public void setContentByRemoteJSON(JSONObject js) { + if (js != null) { + try { + // id + if (js.has(GTaskStringUtils.GTASK_JSON_ID)) { + setGid(js.getString(GTaskStringUtils.GTASK_JSON_ID)); + } + + // last_modified + if (js.has(GTaskStringUtils.GTASK_JSON_LAST_MODIFIED)) { + setLastModified(js.getLong(GTaskStringUtils.GTASK_JSON_LAST_MODIFIED)); + } + + // name + if (js.has(GTaskStringUtils.GTASK_JSON_NAME)) { + setName(js.getString(GTaskStringUtils.GTASK_JSON_NAME)); + } + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("fail to get tasklist content from jsonobject"); + } + } + } + + public void setContentByLocalJSON(JSONObject js) { + if (js == null || !js.has(GTaskStringUtils.META_HEAD_NOTE)) { + Log.w(TAG, "setContentByLocalJSON: nothing is avaiable"); + } + + try { + JSONObject folder = js.getJSONObject(GTaskStringUtils.META_HEAD_NOTE); + + if (folder.getInt(NoteColumns.TYPE) == Notes.TYPE_FOLDER) { + String name = folder.getString(NoteColumns.SNIPPET); + setName(GTaskStringUtils.MIUI_FOLDER_PREFFIX + name); + } else if (folder.getInt(NoteColumns.TYPE) == Notes.TYPE_SYSTEM) { + if (folder.getLong(NoteColumns.ID) == Notes.ID_ROOT_FOLDER) + setName(GTaskStringUtils.MIUI_FOLDER_PREFFIX + GTaskStringUtils.FOLDER_DEFAULT); + else if (folder.getLong(NoteColumns.ID) == Notes.ID_CALL_RECORD_FOLDER) + setName(GTaskStringUtils.MIUI_FOLDER_PREFFIX + + GTaskStringUtils.FOLDER_CALL_NOTE); + else + Log.e(TAG, "invalid system folder"); + } else { + Log.e(TAG, "error type"); + } + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + } + } + + public JSONObject getLocalJSONFromContent() { + try { + JSONObject js = new JSONObject(); + JSONObject folder = new JSONObject(); + + String folderName = getName(); + if (getName().startsWith(GTaskStringUtils.MIUI_FOLDER_PREFFIX)) + folderName = folderName.substring(GTaskStringUtils.MIUI_FOLDER_PREFFIX.length(), + folderName.length()); + folder.put(NoteColumns.SNIPPET, folderName); + if (folderName.equals(GTaskStringUtils.FOLDER_DEFAULT) + || folderName.equals(GTaskStringUtils.FOLDER_CALL_NOTE)) + folder.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); + else + folder.put(NoteColumns.TYPE, Notes.TYPE_FOLDER); + + js.put(GTaskStringUtils.META_HEAD_NOTE, folder); + + return js; + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + return null; + } + } + + public int getSyncAction(Cursor c) { + try { + if (c.getInt(SqlNote.LOCAL_MODIFIED_COLUMN) == 0) { + // there is no local update + if (c.getLong(SqlNote.SYNC_ID_COLUMN) == getLastModified()) { + // no update both side + return SYNC_ACTION_NONE; + } else { + // apply remote to local + return SYNC_ACTION_UPDATE_LOCAL; + } + } else { + // validate gtask id + if (!c.getString(SqlNote.GTASK_ID_COLUMN).equals(getGid())) { + Log.e(TAG, "gtask id doesn't match"); + return SYNC_ACTION_ERROR; + } + if (c.getLong(SqlNote.SYNC_ID_COLUMN) == getLastModified()) { + // local modification only + return SYNC_ACTION_UPDATE_REMOTE; + } else { + // for folder conflicts, just apply local modification + return SYNC_ACTION_UPDATE_REMOTE; + } + } + } catch (Exception e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + } + + return SYNC_ACTION_ERROR; + } + // 获得TaskList的大小 + public int getChildTaskCount() { + return mChildren.size(); + } + // 在当前任务表末尾添加新的任务 + public boolean addChildTask(Task task) { + boolean ret = false; + if (task != null && !mChildren.contains(task)) { + ret = mChildren.add(task); + if (ret) { + // need to set prior sibling and parent + task.setPriorSibling(mChildren.isEmpty() ? null : mChildren + .get(mChildren.size() - 1)); + task.setParent(this); + } + } + return ret; + } + // 在当前任务表的指定位置添加新的任务 + public boolean addChildTask(Task task, int index) { + if (index < 0 || index > mChildren.size()) { + Log.e(TAG, "add child task: invalid index"); + return false; + } + + int pos = mChildren.indexOf(task); + if (task != null && pos == -1) { + mChildren.add(index, task); + + // update the task list + Task preTask = null; + Task afterTask = null; + if (index != 0) + preTask = mChildren.get(index - 1); + if (index != mChildren.size() - 1) + afterTask = mChildren.get(index + 1); + + task.setPriorSibling(preTask); + if (afterTask != null) + afterTask.setPriorSibling(task); + } + + return true; + } + // 删除TaskList中的一个Task + public boolean removeChildTask(Task task) { + boolean ret = false; + int index = mChildren.indexOf(task); + if (index != -1) { + ret = mChildren.remove(task); + + if (ret) { + // reset prior sibling and parent + task.setPriorSibling(null); + task.setParent(null); + + // update the task list + if (index != mChildren.size()) { + mChildren.get(index).setPriorSibling( + index == 0 ? null : mChildren.get(index - 1)); + } + } + } + return ret; + } + // 移动TaskList中的一个Task + public boolean moveChildTask(Task task, int index) { + + if (index < 0 || index >= mChildren.size()) { + Log.e(TAG, "move child task: invalid index"); + return false; + } + + int pos = mChildren.indexOf(task); + if (pos == -1) { + Log.e(TAG, "move child task: the task should in the list"); + return false; + } + + if (pos == index) + return true; + return (removeChildTask(task) && addChildTask(task, index)); + } + // 按gid寻找Task + public Task findChildTaskByGid(String gid) { + for (int i = 0; i < mChildren.size(); i++) { + Task t = mChildren.get(i); + if (t.getGid().equals(gid)) { + return t; + } + } + return null; + } + // 返回指定Task的index + public int getChildTaskIndex(Task task) { + return mChildren.indexOf(task); + } + // 返回指定index的Task + public Task getChildTaskByIndex(int index) { + if (index < 0 || index >= mChildren.size()) { + Log.e(TAG, "getTaskByIndex: invalid index"); + return null; + } + return mChildren.get(index); + } + // 返回指定gid的task + public Task getChilTaskByGid(String gid) { + for (Task task : mChildren) { + if (task.getGid().equals(gid)) + return task; + } + return null; + } + + public ArrayList getChildTaskList() { + return this.mChildren; + } + + public void setIndex(int index) { + this.mIndex = index; + } + + public int getIndex() { + return this.mIndex; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/exception/ActionFailureException.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/exception/ActionFailureException.java new file mode 100644 index 0000000..7787d25 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/exception/ActionFailureException.java @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// 小米便签运行过程中的运行异常处理 +package net.micode.notes.gtask.exception; + +public class ActionFailureException extends RuntimeException { + // 版本控制用,反序列化版本升级时仍保持对象唯一性 + private static final long serialVersionUID = 4425249765923293627L; + + // 通过super()来引用父类成分 + public ActionFailureException() { + super(); + } + public ActionFailureException(String paramString) { + super(paramString); + } + + public ActionFailureException(String paramString, Throwable paramThrowable) { + super(paramString, paramThrowable); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/exception/NetworkFailureException.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/exception/NetworkFailureException.java new file mode 100644 index 0000000..6f67afe --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/exception/NetworkFailureException.java @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +// 运行过程中的网络异常处理 +package net.micode.notes.gtask.exception; + +public class NetworkFailureException extends Exception { + // 版本控制用,反序列化版本升级时仍保持对象唯一性 + private static final long serialVersionUID = 2107610287180234136L; + + // 通过super()来引用父类成分 + public NetworkFailureException() { + super(); + } + + public NetworkFailureException(String paramString) { + super(paramString); + } + + public NetworkFailureException(String paramString, Throwable paramThrowable) { + super(paramString, paramThrowable); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskASyncTask.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskASyncTask.java new file mode 100644 index 0000000..7981605 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskASyncTask.java @@ -0,0 +1,147 @@ + +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* + *异步操作类,实现Gtask异步操作过程 + *主要方法: + *private void showNotification(int tickerId, String content) 用于为用户同步当前事件状态 + *protected Integer doInBackground(Void... unused) 后台线程执行,完成任务主要工作 + *protected void onProgressUpdate(String... progress) 主线程运行,以进度条显示用户工作完成状态 + *protected void onPostExecute(Integer result) 更新UI + */ +package net.micode.notes.gtask.remote; + +import android.app.Notification; +import android.app.NotificationManager; +import android.app.PendingIntent; +import android.content.Context; +import android.content.Intent; +import android.os.AsyncTask; + +import net.micode.notes.R; +import net.micode.notes.ui.NotesListActivity; +import net.micode.notes.ui.NotesPreferenceActivity; + + +public class GTaskASyncTask extends AsyncTask { + + private static int GTASK_SYNC_NOTIFICATION_ID = 5234235; + + public interface OnCompleteListener { + void onComplete(); + } + + private Context mContext; + + private NotificationManager mNotifiManager; + + private GTaskManager mTaskManager; + + private OnCompleteListener mOnCompleteListener; + // GTask的一个同步进程类,包含上下文信息,事件完成进度监听方法,通知管理方法,和进程管理方法 + public GTaskASyncTask(Context context, OnCompleteListener listener) { + mContext = context; + mOnCompleteListener = listener; + mNotifiManager = (NotificationManager) mContext + .getSystemService(Context.NOTIFICATION_SERVICE); + mTaskManager = GTaskManager.getInstance(); + } + //取消同步 + public void cancelSync() { + mTaskManager.cancelSync(); + } + // 发布并更新事件处理进程 + public void publishProgess(String message) { + publishProgress(new String[] { + message + }); + } + + // 该方法用于为用户同步当前事件状态 + private void showNotification(int tickerId, String content) { + Notification notification = new Notification(R.drawable.notification, mContext + .getString(tickerId), System.currentTimeMillis()); + // 调用系统灯光 + notification.defaults = Notification.DEFAULT_LIGHTS; + // 操作后清除通知栏信息 + notification.flags = Notification.FLAG_AUTO_CANCEL; + // 事件挂起意向 + PendingIntent pendingIntent; + // 同步失败挂起活动信息 + if (tickerId != R.string.ticker_success) { + pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext, + NotesPreferenceActivity.class), 0); + // 同步成功显示活动信息列表 + } else { + + pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext, + NotesListActivity.class), 0); + } + // 该方法疑似为设置显示最新事件信息,但运行时编译器报错,暂时注释以规避报错选项 + /*notification.setLatestEventInfo(mContext, mContext.getString(R.string.app_name), content, + pendingIntent);*/ + // + mNotifiManager.notify(GTASK_SYNC_NOTIFICATION_ID, notification); + } + + @Override + protected Integer doInBackground(Void... unused) { + //利用getString将NotesPreferenceActivity.getSyncAccountName(mContext)的字符串内容 + //传进sync_progress_login中 + publishProgess(mContext.getString(R.string.sync_progress_login, NotesPreferenceActivity + .getSyncAccountName(mContext))); + //返回后台同步的具体操作 + return mTaskManager.sync(mContext, this); + } + + @Override + protected void onProgressUpdate(String... progress) { + showNotification(R.string.ticker_syncing, progress[0]); + //判断mContext是否为GTaskSyncService的实例 + if (mContext instanceof GTaskSyncService) { + ((GTaskSyncService) mContext).sendBroadcast(progress[0]); + } + } + + @Override + //后台运行完后更新ui,显示更新后结果 + protected void onPostExecute(Integer result) { + if (result == GTaskManager.STATE_SUCCESS) { + showNotification(R.string.ticker_success, mContext.getString( + R.string.success_sync_account, mTaskManager.getSyncAccount())); + //更新修改时间 + NotesPreferenceActivity.setLastSyncTime(mContext, System.currentTimeMillis()); + } else if (result == GTaskManager.STATE_NETWORK_ERROR) { + showNotification(R.string.ticker_fail, mContext.getString(R.string.error_sync_network)); + } else if (result == GTaskManager.STATE_INTERNAL_ERROR) { + showNotification(R.string.ticker_fail, mContext.getString(R.string.error_sync_internal)); + } else if (result == GTaskManager.STATE_SYNC_CANCELLED) { + showNotification(R.string.ticker_cancel, mContext + .getString(R.string.error_sync_cancelled)); + } + //不同状态下的结果显示 + if (mOnCompleteListener != null) { + //新增可运行线程 + new Thread(new Runnable() { + //线程运行,初始化操作 + public void run() { + mOnCompleteListener.onComplete(); + } + }).start(); + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskClient.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskClient.java new file mode 100644 index 0000000..fee4803 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskClient.java @@ -0,0 +1,634 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.remote; + +import android.accounts.Account; +import android.accounts.AccountManager; +import android.accounts.AccountManagerFuture; +import android.app.Activity; +import android.os.Bundle; +import android.text.TextUtils; +import android.util.Log; + +import net.micode.notes.gtask.data.Node; +import net.micode.notes.gtask.data.Task; +import net.micode.notes.gtask.data.TaskList; +import net.micode.notes.gtask.exception.ActionFailureException; +import net.micode.notes.gtask.exception.NetworkFailureException; +import net.micode.notes.tool.GTaskStringUtils; +import net.micode.notes.ui.NotesPreferenceActivity; + +import org.apache.http.HttpEntity; +import org.apache.http.HttpResponse; +import org.apache.http.client.ClientProtocolException; +import org.apache.http.client.entity.UrlEncodedFormEntity; +import org.apache.http.client.methods.HttpGet; +import org.apache.http.client.methods.HttpPost; +import org.apache.http.cookie.Cookie; +import org.apache.http.impl.client.BasicCookieStore; +import org.apache.http.impl.client.DefaultHttpClient; +import org.apache.http.message.BasicNameValuePair; +import org.apache.http.params.BasicHttpParams; +import org.apache.http.params.HttpConnectionParams; +import org.apache.http.params.HttpParams; +import org.apache.http.params.HttpProtocolParams; +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.LinkedList; +import java.util.List; +import java.util.zip.GZIPInputStream; +import java.util.zip.Inflater; +import java.util.zip.InflaterInputStream; + +/* + *实现GTask登录操作,创建GTask任务,与谷歌服务联网获取任务和任务列表 + *主要用类:accountManager JSONObject HttpParams authToken Gid + */ +public class GTaskClient { + private static final String TAG = GTaskClient.class.getSimpleName(); + //指定登录URL地址 + private static final String GTASK_URL = "https://mail.google.com/tasks/"; + + private static final String GTASK_GET_URL = "https://mail.google.com/tasks/ig"; + + private static final String GTASK_POST_URL = "https://mail.google.com/tasks/r/ig"; + + private static GTaskClient mInstance = null; + + private DefaultHttpClient mHttpClient; + + private String mGetUrl; + + private String mPostUrl; + + private long mClientVersion; + + private boolean mLoggedin; + + private long mLastLoginTime; + + private int mActionId; + + private Account mAccount; + + private JSONArray mUpdateArray; + // 创建GTask构造方法 + private GTaskClient() { + mHttpClient = null; + mGetUrl = GTASK_GET_URL; + mPostUrl = GTASK_POST_URL; + mClientVersion = -1; + mLoggedin = false; + mLastLoginTime = 0; + mActionId = 1; + mAccount = null; + mUpdateArray = null; + } + // 实例化并锁定GTaskClient,使用getInstance()返回mInstance + public static synchronized GTaskClient getInstance() { + if (mInstance == null) { + mInstance = new GTaskClient(); + } + return mInstance; + } + // 用于实现登录操作的布尔方法,提供了账号URL密码登录和谷歌官方邮箱URL登录两种登陆方法 + public boolean login(Activity activity) { + // we suppose that the cookie would expire after 5 minutes + // then we need to re-login + // 五分钟后需要重新登录 + final long interval = 1000 * 60 * 5; + if (mLastLoginTime + interval < System.currentTimeMillis()) { + mLoggedin = false; + } + + // need to re-login after account switch + // 切换账号后需要重新登录 + if (mLoggedin + && !TextUtils.equals(getSyncAccount().name, NotesPreferenceActivity + .getSyncAccountName(activity))) { + mLoggedin = false; + } + // 检测登录状态 + if (mLoggedin) { + Log.d(TAG, "already logged in"); + return true; + } + // 获取上一次登陆时间 + mLastLoginTime = System.currentTimeMillis(); + // 返回的Token为空则登陆失败 + String authToken = loginGoogleAccount(activity, false); + if (authToken == null) { + Log.e(TAG, "login google account failed"); + return false; + } + + // login with custom domain if necessary + // 必要时使用本地输入谷歌邮箱登录 + if (!(mAccount.name.toLowerCase().endsWith("gmail.com") || mAccount.name.toLowerCase() + .endsWith("googlemail.com"))) { + StringBuilder url = new StringBuilder(GTASK_URL).append("a/"); + int index = mAccount.name.indexOf('@') + 1; + String suffix = mAccount.name.substring(index); + url.append(suffix + "/"); + mGetUrl = url.toString() + "ig"; + mPostUrl = url.toString() + "r/ig"; + + if (tryToLoginGtask(activity, authToken)) { + mLoggedin = true; + } + } + + // try to login with google official url + // 调取谷歌邮箱官方URL登录 + if (!mLoggedin) { + mGetUrl = GTASK_GET_URL; + mPostUrl = GTASK_POST_URL; + if (!tryToLoginGtask(activity, authToken)) { + return false; + } + } + + mLoggedin = true; + return true; + } + // 实现谷歌登录的方法,以AccountManager管理账号,Token登录 + private String loginGoogleAccount(Activity activity, boolean invalidateToken) { + // 登录Token + String authToken; + // 账号管理,提供账号注册接口 + AccountManager accountManager = AccountManager.get(activity); + // 获取以com.google结尾的账号列表 + Account[] accounts = accountManager.getAccountsByType("com.google"); + // 如果账号长度为空则返回无可用账号 + if (accounts.length == 0) { + Log.e(TAG, "there is no available google account"); + return null; + } + // 获取账户名称 + String accountName = NotesPreferenceActivity.getSyncAccountName(activity); + Account account = null; + // 遍历返回的账户信息,寻找记录的账户信息 + for (Account a : accounts) { + if (a.name.equals(accountName)) { + account = a; + break; + } + } + + if (account != null) { + mAccount = account; + } else { + Log.e(TAG, "unable to get an account with the same name in the settings"); + return null; + } + + // get the token now + // 取得登录Token + AccountManagerFuture accountManagerFuture = accountManager.getAuthToken(account, + "goanna_mobile", null, activity, null, null); + try { + Bundle authTokenBundle = accountManagerFuture.getResult(); + authToken = authTokenBundle.getString(AccountManager.KEY_AUTHTOKEN); + // 若Token无效,则通过invalidateAuthToken方法废除该Token + if (invalidateToken) { + accountManager.invalidateAuthToken("com.google", authToken); + loginGoogleAccount(activity, false); + } + } catch (Exception e) { + Log.e(TAG, "get auth token failed"); + authToken = null; + } + + return authToken; + } + // 尝试登录的布尔方法需要预先判断Token是否有效 + private boolean tryToLoginGtask(Activity activity, String authToken) { + if (!loginGtask(authToken)) { + // maybe the auth token is out of date, now let's invalidate the + // token and try again + // 若Token则废弃Token且重试 + authToken = loginGoogleAccount(activity, true); + if (authToken == null) { + Log.e(TAG, "login google account failed"); + return false; + } + + if (!loginGtask(authToken)) { + Log.e(TAG, "login gtask failed"); + return false; + } + } + return true; + } + // 登录GTask具体操作 + private boolean loginGtask(String authToken) { + int timeoutConnection = 10000; + // socket为一种通信数据交换的端口 + int timeoutSocket = 15000; + // 实现一个新的HTTP参数类 + HttpParams httpParameters = new BasicHttpParams(); + // 设置链接超时时间 + HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection); + // 设置设置端口超时时间 + HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket); + mHttpClient = new DefaultHttpClient(httpParameters); + // 存储新的本地cookie + BasicCookieStore localBasicCookieStore = new BasicCookieStore(); + mHttpClient.setCookieStore(localBasicCookieStore); + HttpProtocolParams.setUseExpectContinue(mHttpClient.getParams(), false); + + // login gtask + // 登录GTask具体操作 + try { + // 设置登录URL + String loginUrl = mGetUrl + "?auth=" + authToken; + // 通过已实例化URL网页中的资源查找 + HttpGet httpGet = new HttpGet(loginUrl); + HttpResponse response = null; + response = mHttpClient.execute(httpGet); + + // get the cookie now + // 遍历已存储的cookie以验证是否与登录cookie相符,若相符则匹配 + List cookies = mHttpClient.getCookieStore().getCookies(); + boolean hasAuthCookie = false; + for (Cookie cookie : cookies) { + if (cookie.getName().contains("GTL")) { + hasAuthCookie = true; + } + } + if (!hasAuthCookie) { + Log.w(TAG, "it seems that there is no auth cookie"); + } + + // get the client version + // 以脚本获取返回的Content中GTask_Url的内容 + String resString = getResponseContent(response.getEntity()); + String jsBegin = "_setup("; + String jsEnd = ")}"; + int begin = resString.indexOf(jsBegin); + int end = resString.lastIndexOf(jsEnd); + String jsString = null; + if (begin != -1 && end != -1 && begin < end) { + jsString = resString.substring(begin + jsBegin.length(), end); + } + JSONObject js = new JSONObject(jsString); + mClientVersion = js.getLong("v"); + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + return false; + } catch (Exception e) { + // simply catch all exceptions + // 仅捕获到异常则返回捕获失败 + Log.e(TAG, "httpget gtask_url failed"); + return false; + } + + return true; + } + // 获取行为ID + private int getActionId() { + return mActionId++; + } + + // 实例化创建用于网络传输的对向,使用HTTPpost类来创建并返回一个空的的对向 + private HttpPost createHttpPost() { + HttpPost httpPost = new HttpPost(mPostUrl); + httpPost.setHeader("Content-Type", "application/x-www-form-urlencoded;charset=utf-8"); + httpPost.setHeader("AT", "1"); + return httpPost; + } + // 获取响应的资源目录 + private String getResponseContent(HttpEntity entity) throws IOException { + String contentEncoding = null; + // 荣国URL获得HttpEntity对象,若返回值不为空,则创建数据流获取返回对象 + if (entity.getContentEncoding() != null) { + contentEncoding = entity.getContentEncoding().getValue(); + Log.d(TAG, "encoding: " + contentEncoding); + } + + InputStream input = entity.getContent(); + // Gzip为使用DEFLATE压缩数据的另一个压缩库 + if (contentEncoding != null && contentEncoding.equalsIgnoreCase("gzip")) { + input = new GZIPInputStream(entity.getContent()); + } + // Deflate为一个无专利的无损数据压缩算法 + else if (contentEncoding != null && contentEncoding.equalsIgnoreCase("deflate")) { + Inflater inflater = new Inflater(true); + input = new InflaterInputStream(entity.getContent(), inflater); + } + + try { + // 包装类,用于提高读取的运行效率 + InputStreamReader isr = new InputStreamReader(input); + BufferedReader br = new BufferedReader(isr); + StringBuilder sb = new StringBuilder(); + + while (true) { + String buff = br.readLine(); + if (buff == null) { + return sb.toString(); + } + sb = sb.append(buff); + } + } finally { + input.close(); + } + } + /* + * 以json发送请求,请求的内容在json中的实例化对象传入,利用json获取task中内容 + * 并创捷对应jspost,利用postrequest得到返回的任务信息并用task_setGid设置task的新id + */ + private JSONObject postRequest(JSONObject js) throws NetworkFailureException { + if (!mLoggedin) { + Log.e(TAG, "please login first"); + throw new ActionFailureException("not logged in"); + } + + HttpPost httpPost = createHttpPost(); + try { + LinkedList list = new LinkedList(); + list.add(new BasicNameValuePair("r", js.toString())); + UrlEncodedFormEntity entity = new UrlEncodedFormEntity(list, "UTF-8"); + httpPost.setEntity(entity); + + // execute the post + HttpResponse response = mHttpClient.execute(httpPost); + String jsString = getResponseContent(response.getEntity()); + return new JSONObject(jsString); + + } catch (ClientProtocolException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new NetworkFailureException("postRequest failed"); + } catch (IOException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new NetworkFailureException("postRequest failed"); + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("unable to convert response content to jsonobject"); + } catch (Exception e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("error occurs when posting request"); + } + } + + // 创建单个任务,传入task类的对象、使用json获取task中的内容,并创建相应的jspost,利用postRequest获得任务返回信 + // 息并且使用task.setGid设置task的new_id + public void createTask(Task task) throws NetworkFailureException { + commitUpdate(); + try { + JSONObject jsPost = new JSONObject(); + JSONArray actionList = new JSONArray(); + + // action_list + actionList.put(task.getCreateAction(getActionId())); + jsPost.put(GTaskStringUtils.GTASK_JSON_ACTION_LIST, actionList); + + // client_version + jsPost.put(GTaskStringUtils.GTASK_JSON_CLIENT_VERSION, mClientVersion); + + // post + JSONObject jsResponse = postRequest(jsPost); + JSONObject jsResult = (JSONObject) jsResponse.getJSONArray( + GTaskStringUtils.GTASK_JSON_RESULTS).get(0); + task.setGid(jsResult.getString(GTaskStringUtils.GTASK_JSON_NEW_ID)); + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("create task: handing jsonobject failed"); + } + } + // 创建任务列表,设置tasklist_Gid + public void createTaskList(TaskList tasklist) throws NetworkFailureException { + commitUpdate(); + try { + JSONObject jsPost = new JSONObject(); + JSONArray actionList = new JSONArray(); + + // action_list + actionList.put(tasklist.getCreateAction(getActionId())); + jsPost.put(GTaskStringUtils.GTASK_JSON_ACTION_LIST, actionList); + + // client version + jsPost.put(GTaskStringUtils.GTASK_JSON_CLIENT_VERSION, mClientVersion); + + // post + JSONObject jsResponse = postRequest(jsPost); + JSONObject jsResult = (JSONObject) jsResponse.getJSONArray( + GTaskStringUtils.GTASK_JSON_RESULTS).get(0); + tasklist.setGid(jsResult.getString(GTaskStringUtils.GTASK_JSON_NEW_ID)); + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("create tasklist: handing jsonobject failed"); + } + } + // 提交更新,使用JSONobject进行存储,使用jsPost.put,Put的信息包括UpdateArray和ClientVersion,使用 + // postRequest发送这个jspost,进行处理 + public void commitUpdate() throws NetworkFailureException { + if (mUpdateArray != null) { + try { + JSONObject jsPost = new JSONObject(); + + // action_list + jsPost.put(GTaskStringUtils.GTASK_JSON_ACTION_LIST, mUpdateArray); + + // client_version + jsPost.put(GTaskStringUtils.GTASK_JSON_CLIENT_VERSION, mClientVersion); + + postRequest(jsPost); + mUpdateArray = null; + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("commit update: handing jsonobject failed"); + } + } + } + // 添加更新事项,通过调用 commitUpdate()实现 + public void addUpdateNode(Node node) throws NetworkFailureException { + if (node != null) { + // too many update items may result in an error + // set max to 10 items + if (mUpdateArray != null && mUpdateArray.length() > 10) { + commitUpdate(); + } + + if (mUpdateArray == null) + mUpdateArray = new JSONArray(); + mUpdateArray.put(node.getUpdateAction(getActionId())); + } + } + // 移动task至不同的任务列表中去,通过getgid获取所属不同任务列表的gid,通过 + // JSONObject.put(String name, Object value)函数设置移动后的task的相关属性值,从而达到移动的目的 + // 最后通过postRequest进行更新后的任务列表的发送 + public void moveTask(Task task, TaskList preParent, TaskList curParent) + throws NetworkFailureException { + commitUpdate(); + try { + JSONObject jsPost = new JSONObject(); + JSONArray actionList = new JSONArray(); + JSONObject action = new JSONObject(); + + // action_list + action.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, + GTaskStringUtils.GTASK_JSON_ACTION_TYPE_MOVE); + action.put(GTaskStringUtils.GTASK_JSON_ACTION_ID, getActionId()); + action.put(GTaskStringUtils.GTASK_JSON_ID, task.getGid()); + if (preParent == curParent && task.getPriorSibling() != null) { + // put prioring_sibing_id only if moving within the tasklist and + // it is not the first one + //设置优先级ID,只有当移动是发生在文件中 + action.put(GTaskStringUtils.GTASK_JSON_PRIOR_SIBLING_ID, task.getPriorSibling()); + } + action.put(GTaskStringUtils.GTASK_JSON_SOURCE_LIST, preParent.getGid()); + action.put(GTaskStringUtils.GTASK_JSON_DEST_PARENT, curParent.getGid()); + if (preParent != curParent) { + // put the dest_list only if moving between tasklists + action.put(GTaskStringUtils.GTASK_JSON_DEST_LIST, curParent.getGid()); + } + actionList.put(action); + //最后将ACTION_LIST加入到jsPost中 + jsPost.put(GTaskStringUtils.GTASK_JSON_ACTION_LIST, actionList); + + // client_version + jsPost.put(GTaskStringUtils.GTASK_JSON_CLIENT_VERSION, mClientVersion); + + postRequest(jsPost); + + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("move task: handing jsonobject failed"); + } + } + + //删除操作节点,利用JSON,删除后使用postRequest发送删除后的结果 + public void deleteNode(Node node) throws NetworkFailureException { + commitUpdate(); + try { + JSONObject jsPost = new JSONObject(); + JSONArray actionList = new JSONArray(); + + // action_list + node.setDeleted(true); + // 这里会获取到删除操作的ID,加入到actionLiast中 + actionList.put(node.getUpdateAction(getActionId())); + jsPost.put(GTaskStringUtils.GTASK_JSON_ACTION_LIST, actionList); + + // client_version + jsPost.put(GTaskStringUtils.GTASK_JSON_CLIENT_VERSION, mClientVersion); + + postRequest(jsPost); + mUpdateArray = null; + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("delete node: handing jsonobject failed"); + } + } + //获取任务列表,首先通过GetURL使用getResponseContent联网获取数据,然后筛选出"_setup("到)}的部分, + // 并且从中获取GTASK_JSON_LISTS的内容返回 + public JSONArray getTaskLists() throws NetworkFailureException { + if (!mLoggedin) { + Log.e(TAG, "please login first"); + throw new ActionFailureException("not logged in"); + } + + try { + HttpGet httpGet = new HttpGet(mGetUrl); + HttpResponse response = null; + response = mHttpClient.execute(httpGet); + + // get the task list + // 获取任务列表并存储进jsString中 + String resString = getResponseContent(response.getEntity()); + String jsBegin = "_setup("; + String jsEnd = ")}"; + int begin = resString.indexOf(jsBegin); + int end = resString.lastIndexOf(jsEnd); + String jsString = null; + if (begin != -1 && end != -1 && begin < end) { + jsString = resString.substring(begin + jsBegin.length(), end); + } + JSONObject js = new JSONObject(jsString); + return js.getJSONObject("t").getJSONArray(GTaskStringUtils.GTASK_JSON_LISTS); + } catch (ClientProtocolException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new NetworkFailureException("gettasklists: httpget failed"); + } catch (IOException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new NetworkFailureException("gettasklists: httpget failed"); + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("get task lists: handing jasonobject failed"); + } + } + + // 通过传入的TASKList的gid,从网络上获取相应属于这个任务列表的任务 + public JSONArray getTaskList(String listGid) throws NetworkFailureException { + commitUpdate(); + try { + JSONObject jsPost = new JSONObject(); + JSONArray actionList = new JSONArray(); + JSONObject action = new JSONObject(); + + // action_list + action.put(GTaskStringUtils.GTASK_JSON_ACTION_TYPE, + GTaskStringUtils.GTASK_JSON_ACTION_TYPE_GETALL); + action.put(GTaskStringUtils.GTASK_JSON_ACTION_ID, getActionId()); + // 设置为传入的listGid + action.put(GTaskStringUtils.GTASK_JSON_LIST_ID, listGid); + action.put(GTaskStringUtils.GTASK_JSON_GET_DELETED, false); + actionList.put(action); + jsPost.put(GTaskStringUtils.GTASK_JSON_ACTION_LIST, actionList); + + // client_version + jsPost.put(GTaskStringUtils.GTASK_JSON_CLIENT_VERSION, mClientVersion); + + JSONObject jsResponse = postRequest(jsPost); + return jsResponse.getJSONArray(GTaskStringUtils.GTASK_JSON_TASKS); + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("get task list: handing jsonobject failed"); + } + } + + public Account getSyncAccount() { + return mAccount; + } + // 重装更新后的内容 + public void resetUpdateArray() { + mUpdateArray = null; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java new file mode 100644 index 0000000..d514ada --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java @@ -0,0 +1,839 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.remote; + +import android.app.Activity; +import android.content.ContentResolver; +import android.content.ContentUris; +import android.content.ContentValues; +import android.content.Context; +import android.database.Cursor; +import android.util.Log; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.gtask.data.MetaData; +import net.micode.notes.gtask.data.Node; +import net.micode.notes.gtask.data.SqlNote; +import net.micode.notes.gtask.data.Task; +import net.micode.notes.gtask.data.TaskList; +import net.micode.notes.gtask.exception.ActionFailureException; +import net.micode.notes.gtask.exception.NetworkFailureException; +import net.micode.notes.tool.DataUtils; +import net.micode.notes.tool.GTaskStringUtils; + +import org.json.JSONArray; +import org.json.JSONException; +import org.json.JSONObject; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; +import java.util.Map; + + +public class GTaskManager { + private static final String TAG = GTaskManager.class.getSimpleName(); + + public static final int STATE_SUCCESS = 0; + + public static final int STATE_NETWORK_ERROR = 1; + + public static final int STATE_INTERNAL_ERROR = 2; + + public static final int STATE_SYNC_IN_PROGRESS = 3; + + public static final int STATE_SYNC_CANCELLED = 4; + + private static GTaskManager mInstance = null; + + private Activity mActivity; + + private Context mContext; + + private ContentResolver mContentResolver; + + private boolean mSyncing; + + private boolean mCancelled; + + private HashMap mGTaskListHashMap; + + private HashMap mGTaskHashMap; + + private HashMap mMetaHashMap; + + private TaskList mMetaList; + + private HashSet mLocalDeleteIdMap; + + private HashMap mGidToNid; + + private HashMap mNidToGid; + // 初始化Google任务管理器的函数 + private GTaskManager() { + // 初始化同步状态为未执行 + mSyncing = false; + // 全局状态标识为可执行 + mCancelled = false; + // java泛型类,用于创建一个用类作为参数的类 + mGTaskListHashMap = new HashMap(); + mGTaskHashMap = new HashMap(); + mMetaHashMap = new HashMap(); + mMetaList = null; + mLocalDeleteIdMap = new HashSet(); + // 将Gid转换为Noteid通过哈希表建立映射 + mGidToNid = new HashMap(); + // 将Noteid转换为Gid通过哈希表建立映射 + mNidToGid = new HashMap(); + } + // synchronizedy语言级同步,用于表述该方法可能运行于多线程环境之下 + // 该方法用于初始化mInstance + // @return GTaskManager + public static synchronized GTaskManager getInstance() { + if (mInstance == null) { + mInstance = new GTaskManager(); + } + return mInstance; + } + // synchronizedy语言级同步,用于表述该方法可能运行于多线程环境之下 + public synchronized void setActivityContext(Activity activity) { + // used for getting authtoken + mActivity = activity; + } + // 用于本地化和远端同步的方法 + // @param context-----获取上下文 + // @param assyncTask-----用于同步的异步操作类 + // @return int + public int sync(Context context, GTaskASyncTask asyncTask) { + if (mSyncing) { + // 创建同步的日志文件 + Log.d(TAG, "Sync is in progress"); + return STATE_SYNC_IN_PROGRESS; + } + mContext = context; + mContentResolver = mContext.getContentResolver(); + mSyncing = true; + mCancelled = false; + mGTaskListHashMap.clear(); + mGTaskHashMap.clear(); + mMetaHashMap.clear(); + mLocalDeleteIdMap.clear(); + mGidToNid.clear(); + mNidToGid.clear(); + + try { + // 创建用户机实例 + GTaskClient client = GTaskClient.getInstance(); + // JSON类型,用于置空NULL + client.resetUpdateArray(); + + // login google task + if (!mCancelled) { + // 谷歌登录操作,若非则抛出登陆失败异常 + if (!client.login(mActivity)) { + throw new NetworkFailureException("login google task failed"); + } + } + + // get the task list from google + asyncTask.publishProgess(mContext.getString(R.string.sync_progress_init_list)); + // 将谷歌上获取的JSONTasklist转换为本地Tasklist + initGTaskList(); + + // do content sync work + asyncTask.publishProgess(mContext.getString(R.string.sync_progress_syncing)); + syncContent(); + // 抓取网络异常并创建调试日志抛出error + } catch (NetworkFailureException e) { + Log.e(TAG, e.toString()); + return STATE_NETWORK_ERROR; + // 抓取操作异常并创建调试日志抛出error + } catch (ActionFailureException e) { + Log.e(TAG, e.toString()); + return STATE_INTERNAL_ERROR; + } catch (Exception e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + return STATE_INTERNAL_ERROR; + } finally { + mGTaskListHashMap.clear(); + mGTaskHashMap.clear(); + mMetaHashMap.clear(); + mLocalDeleteIdMap.clear(); + mGidToNid.clear(); + mNidToGid.clear(); + mSyncing = false; + } + + return mCancelled ? STATE_SYNC_CANCELLED : STATE_SUCCESS; + } + // 初始化GTaskList,获取Google上JSONTaskList并转换为本地TaskList + // 将获取的数据储存在mMetaList,mGTaskListHashMap,MGTaskHashmap中 + // @exception NetworkFailureException + // @return void + private void initGTaskList() throws NetworkFailureException { + if (mCancelled) + return; + GTaskClient client = GTaskClient.getInstance(); + try { + // Json对象是子元素的无序集合,相当于创建一个Map对象, + // bantouyan-json库对Json对象的抽象概念,提供操纵json对象的各种方法, + // 其格式为("key1": value1,"key2": value2...)key为字符串 + // ajax请求不刷新页面,因此配合js可实现局部刷新,所以json常用作异步请求返回对象使用 + JSONArray jsTaskLists = client.getTaskLists(); + + // init meta list first + // TaskList类型 + mMetaList = null; + for (int i = 0; i < jsTaskLists.length(); i++) { + // JSONObject与JSONArray一个为对象,一个为数组。此处取出单个JSONObject + JSONObject object = jsTaskLists.getJSONObject(i); + String gid = object.getString(GTaskStringUtils.GTASK_JSON_ID); + String name = object.getString(GTaskStringUtils.GTASK_JSON_NAME); + + if (name.equals(GTaskStringUtils.MIUI_FOLDER_PREFFIX + GTaskStringUtils.FOLDER_META)) { + // MetaList为元表,此处为初始化TaskList + mMetaList = new TaskList(); + // 由远端JSON获取对象信息 + mMetaList.setContentByRemoteJSON(object); + + // load meta data + // 获取用户端的TaskList的gid + JSONArray jsMetas = client.getTaskList(gid); + for (int j = 0; j < jsMetas.length(); j++) { + object = (JSONObject) jsMetas.getJSONObject(j); + MetaData metaData = new MetaData(); + metaData.setContentByRemoteJSON(object); + // 判断值是否值得存储,为否则不加入mMetaList + if (metaData.isWorthSaving()) { + mMetaList.addChildTask(metaData); + if (metaData.getGid() != null) { + mMetaHashMap.put(metaData.getRelatedGid(), metaData); + } + } + } + } + } + + // create meta list if not existed + if (mMetaList == null) { + mMetaList = new TaskList(); + mMetaList.setName(GTaskStringUtils.MIUI_FOLDER_PREFFIX + + GTaskStringUtils.FOLDER_META); + GTaskClient.getInstance().createTaskList(mMetaList); + } + + // init task list + for (int i = 0; i < jsTaskLists.length(); i++) { + JSONObject object = jsTaskLists.getJSONObject(i); + // 通过GetString传入本地某标志数据的名称,获取其在远端的名称 + String gid = object.getString(GTaskStringUtils.GTASK_JSON_ID); + String name = object.getString(GTaskStringUtils.GTASK_JSON_NAME); + + if (name.startsWith(GTaskStringUtils.MIUI_FOLDER_PREFFIX) + && !name.equals(GTaskStringUtils.MIUI_FOLDER_PREFFIX + + GTaskStringUtils.FOLDER_META)) { + // 由本地tasklist获取内容用于和远端同步 + TaskList tasklist = new TaskList(); + tasklist.setContentByRemoteJSON(object); + mGTaskListHashMap.put(gid, tasklist); + mGTaskHashMap.put(gid, tasklist); + + // load tasks + // 加载tasks + JSONArray jsTasks = client.getTaskList(gid); + for (int j = 0; j < jsTasks.length(); j++) { + object = (JSONObject) jsTasks.getJSONObject(j); + gid = object.getString(GTaskStringUtils.GTASK_JSON_ID); + Task task = new Task(); + task.setContentByRemoteJSON(object); + if (task.isWorthSaving()) { + task.setMetaInfo(mMetaHashMap.get(gid)); + tasklist.addChildTask(task); + mGTaskHashMap.put(gid, task); + } + } + } + } + } catch (JSONException e) { + Log.e(TAG, e.toString()); + e.printStackTrace(); + throw new ActionFailureException("initGTaskList: handing JSONObject failed"); + } + } + // 本地内容同步操作 + // @throw NetWorkFailureException + private void syncContent() throws NetworkFailureException { + int syncType; + Cursor c = null; + String gid; + Node node; + + mLocalDeleteIdMap.clear(); + + if (mCancelled) { + return; + } + + // for local deleted note + try { + c = mContentResolver.query(Notes.CONTENT_NOTE_URI, SqlNote.PROJECTION_NOTE, + "(type<>? AND parent_id=?)", new String[] { + String.valueOf(Notes.TYPE_SYSTEM), String.valueOf(Notes.ID_TRASH_FOLER) + }, null); + if (c != null) { + while (c.moveToNext()) { + gid = c.getString(SqlNote.GTASK_ID_COLUMN); + node = mGTaskHashMap.get(gid); + if (node != null) { + mGTaskHashMap.remove(gid); + doContentSync(Node.SYNC_ACTION_DEL_REMOTE, node, c); + } + + mLocalDeleteIdMap.add(c.getLong(SqlNote.ID_COLUMN)); + } + } else { + Log.w(TAG, "failed to query trash folder"); + } + } finally { + if (c != null) { + c.close(); + c = null; + } + } + + // sync folder first + syncFolder(); + + // for note existing in database + try { + c = mContentResolver.query(Notes.CONTENT_NOTE_URI, SqlNote.PROJECTION_NOTE, + "(type=? AND parent_id<>?)", new String[] { + String.valueOf(Notes.TYPE_NOTE), String.valueOf(Notes.ID_TRASH_FOLER) + }, NoteColumns.TYPE + " DESC"); + if (c != null) { + while (c.moveToNext()) { + gid = c.getString(SqlNote.GTASK_ID_COLUMN); + node = mGTaskHashMap.get(gid); + if (node != null) { + // 通过哈希表获取gid + mGTaskHashMap.remove(gid); + mGidToNid.put(gid, c.getLong(SqlNote.ID_COLUMN)); + mNidToGid.put(c.getLong(SqlNote.ID_COLUMN), gid); + syncType = node.getSyncAction(c); + } else { + if (c.getString(SqlNote.GTASK_ID_COLUMN).trim().length() == 0) { + // local add + syncType = Node.SYNC_ACTION_ADD_REMOTE; + } else { + // remote delete + syncType = Node.SYNC_ACTION_DEL_LOCAL; + } + } + doContentSync(syncType, node, c); + } + } else { + Log.w(TAG, "failed to query existing note in database"); + } + + } finally { + if (c != null) { + c.close(); + c = null; + } + } + + // go through remaining items + Iterator> iter = mGTaskHashMap.entrySet().iterator(); + while (iter.hasNext()) { + Map.Entry entry = iter.next(); + node = entry.getValue(); + doContentSync(Node.SYNC_ACTION_ADD_LOCAL, node, null); + } + + // mCancelled can be set by another thread, so we neet to check one by + // one + // clear local delete table + if (!mCancelled) { + if (!DataUtils.batchDeleteNotes(mContentResolver, mLocalDeleteIdMap)) { + throw new ActionFailureException("failed to batch-delete local deleted notes"); + } + } + + // refresh local sync id + if (!mCancelled) { + GTaskClient.getInstance().commitUpdate(); + refreshLocalSyncId(); + } + + } + // 同步文件夹 + private void syncFolder() throws NetworkFailureException { + Cursor c = null; + String gid; + Node node; + int syncType; + + if (mCancelled) { + return; + } + + // for root folder + try { + c = mContentResolver.query(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, + Notes.ID_ROOT_FOLDER), SqlNote.PROJECTION_NOTE, null, null, null); + if (c != null) { + c.moveToNext(); + gid = c.getString(SqlNote.GTASK_ID_COLUMN); + node = mGTaskHashMap.get(gid); + if (node != null) { + mGTaskHashMap.remove(gid); + mGidToNid.put(gid, (long) Notes.ID_ROOT_FOLDER); + mNidToGid.put((long) Notes.ID_ROOT_FOLDER, gid); + // for system folder, only update remote name if necessary + if (!node.getName().equals( + GTaskStringUtils.MIUI_FOLDER_PREFFIX + GTaskStringUtils.FOLDER_DEFAULT)) + doContentSync(Node.SYNC_ACTION_UPDATE_REMOTE, node, c); + } else { + doContentSync(Node.SYNC_ACTION_ADD_REMOTE, node, c); + } + } else { + Log.w(TAG, "failed to query root folder"); + } + } finally { + if (c != null) { + c.close(); + c = null; + } + } + + // for call-note folder + try { + c = mContentResolver.query(Notes.CONTENT_NOTE_URI, SqlNote.PROJECTION_NOTE, "(_id=?)", + new String[] { + String.valueOf(Notes.ID_CALL_RECORD_FOLDER) + }, null); + if (c != null) { + if (c.moveToNext()) { + gid = c.getString(SqlNote.GTASK_ID_COLUMN); + node = mGTaskHashMap.get(gid); + if (node != null) { + mGTaskHashMap.remove(gid); + mGidToNid.put(gid, (long) Notes.ID_CALL_RECORD_FOLDER); + mNidToGid.put((long) Notes.ID_CALL_RECORD_FOLDER, gid); + // for system folder, only update remote name if + // necessary + if (!node.getName().equals( + GTaskStringUtils.MIUI_FOLDER_PREFFIX + + GTaskStringUtils.FOLDER_CALL_NOTE)) + doContentSync(Node.SYNC_ACTION_UPDATE_REMOTE, node, c); + } else { + doContentSync(Node.SYNC_ACTION_ADD_REMOTE, node, c); + } + } + } else { + Log.w(TAG, "failed to query call note folder"); + } + } finally { + if (c != null) { + c.close(); + c = null; + } + } + + // for local existing folders + try { + c = mContentResolver.query(Notes.CONTENT_NOTE_URI, SqlNote.PROJECTION_NOTE, + "(type=? AND parent_id<>?)", new String[] { + String.valueOf(Notes.TYPE_FOLDER), String.valueOf(Notes.ID_TRASH_FOLER) + }, NoteColumns.TYPE + " DESC"); + if (c != null) { + while (c.moveToNext()) { + gid = c.getString(SqlNote.GTASK_ID_COLUMN); + node = mGTaskHashMap.get(gid); + if (node != null) { + mGTaskHashMap.remove(gid); + mGidToNid.put(gid, c.getLong(SqlNote.ID_COLUMN)); + mNidToGid.put(c.getLong(SqlNote.ID_COLUMN), gid); + syncType = node.getSyncAction(c); + } else { + if (c.getString(SqlNote.GTASK_ID_COLUMN).trim().length() == 0) { + // local add + syncType = Node.SYNC_ACTION_ADD_REMOTE; + } else { + // remote delete + syncType = Node.SYNC_ACTION_DEL_LOCAL; + } + } + doContentSync(syncType, node, c); + } + } else { + Log.w(TAG, "failed to query existing folder"); + } + } finally { + if (c != null) { + c.close(); + c = null; + } + } + + // for remote add folders + Iterator> iter = mGTaskListHashMap.entrySet().iterator(); + while (iter.hasNext()) { + Map.Entry entry = iter.next(); + gid = entry.getKey(); + node = entry.getValue(); + if (mGTaskHashMap.containsKey(gid)) { + mGTaskHashMap.remove(gid); + doContentSync(Node.SYNC_ACTION_ADD_LOCAL, node, null); + } + } + + if (!mCancelled) + GTaskClient.getInstance().commitUpdate(); + } + // 为同步类型分类 + private void doContentSync(int syncType, Node node, Cursor c) throws NetworkFailureException { + if (mCancelled) { + return; + } + + MetaData meta; + switch (syncType) { + case Node.SYNC_ACTION_ADD_LOCAL: + addLocalNode(node); + break; + case Node.SYNC_ACTION_ADD_REMOTE: + addRemoteNode(node, c); + break; + case Node.SYNC_ACTION_DEL_LOCAL: + meta = mMetaHashMap.get(c.getString(SqlNote.GTASK_ID_COLUMN)); + if (meta != null) { + GTaskClient.getInstance().deleteNode(meta); + } + mLocalDeleteIdMap.add(c.getLong(SqlNote.ID_COLUMN)); + break; + case Node.SYNC_ACTION_DEL_REMOTE: + meta = mMetaHashMap.get(node.getGid()); + if (meta != null) { + GTaskClient.getInstance().deleteNode(meta); + } + GTaskClient.getInstance().deleteNode(node); + break; + case Node.SYNC_ACTION_UPDATE_LOCAL: + updateLocalNode(node, c); + break; + case Node.SYNC_ACTION_UPDATE_REMOTE: + updateRemoteNode(node, c); + break; + case Node.SYNC_ACTION_UPDATE_CONFLICT: + // merging both modifications maybe a good idea + // right now just use local update simply + updateRemoteNode(node, c); + break; + case Node.SYNC_ACTION_NONE: + break; + case Node.SYNC_ACTION_ERROR: + default: + throw new ActionFailureException("unkown sync action type"); + } + } + // 本地增加新的Node + private void addLocalNode(Node node) throws NetworkFailureException { + if (mCancelled) { + return; + } + + SqlNote sqlNote; + if (node instanceof TaskList) { + if (node.getName().equals( + GTaskStringUtils.MIUI_FOLDER_PREFFIX + GTaskStringUtils.FOLDER_DEFAULT)) { + sqlNote = new SqlNote(mContext, Notes.ID_ROOT_FOLDER); + } else if (node.getName().equals( + GTaskStringUtils.MIUI_FOLDER_PREFFIX + GTaskStringUtils.FOLDER_CALL_NOTE)) { + sqlNote = new SqlNote(mContext, Notes.ID_CALL_RECORD_FOLDER); + } else { + sqlNote = new SqlNote(mContext); + sqlNote.setContent(node.getLocalJSONFromContent()); + sqlNote.setParentId(Notes.ID_ROOT_FOLDER); + } + } else { + sqlNote = new SqlNote(mContext); + JSONObject js = node.getLocalJSONFromContent(); + try { + if (js.has(GTaskStringUtils.META_HEAD_NOTE)) { + JSONObject note = js.getJSONObject(GTaskStringUtils.META_HEAD_NOTE); + if (note.has(NoteColumns.ID)) { + long id = note.getLong(NoteColumns.ID); + if (DataUtils.existInNoteDatabase(mContentResolver, id)) { + // the id is not available, have to create a new one + note.remove(NoteColumns.ID); + } + } + } + + if (js.has(GTaskStringUtils.META_HEAD_DATA)) { + JSONArray dataArray = js.getJSONArray(GTaskStringUtils.META_HEAD_DATA); + for (int i = 0; i < dataArray.length(); i++) { + JSONObject data = dataArray.getJSONObject(i); + if (data.has(DataColumns.ID)) { + long dataId = data.getLong(DataColumns.ID); + if (DataUtils.existInDataDatabase(mContentResolver, dataId)) { + // the data id is not available, have to create + // a new one + data.remove(DataColumns.ID); + } + } + } + + } + } catch (JSONException e) { + Log.w(TAG, e.toString()); + e.printStackTrace(); + } + sqlNote.setContent(js); + + Long parentId = mGidToNid.get(((Task) node).getParent().getGid()); + if (parentId == null) { + Log.e(TAG, "cannot find task's parent id locally"); + throw new ActionFailureException("cannot add local node"); + } + sqlNote.setParentId(parentId.longValue()); + } + + // create the local node + sqlNote.setGtaskId(node.getGid()); + sqlNote.commit(false); + + // update gid-nid mapping + mGidToNid.put(node.getGid(), sqlNote.getId()); + mNidToGid.put(sqlNote.getId(), node.getGid()); + + // update meta + updateRemoteMeta(node.getGid(), sqlNote); + } + // 更新本地Node + private void updateLocalNode(Node node, Cursor c) throws NetworkFailureException { + if (mCancelled) { + return; + } + + SqlNote sqlNote; + // update the note locally + sqlNote = new SqlNote(mContext, c); + sqlNote.setContent(node.getLocalJSONFromContent()); + + Long parentId = (node instanceof Task) ? mGidToNid.get(((Task) node).getParent().getGid()) + : new Long(Notes.ID_ROOT_FOLDER); + if (parentId == null) { + Log.e(TAG, "cannot find task's parent id locally"); + throw new ActionFailureException("cannot update local node"); + } + sqlNote.setParentId(parentId.longValue()); + sqlNote.commit(true); + + // update meta info + updateRemoteMeta(node.getGid(), sqlNote); + } + // 添加远端node + private void addRemoteNode(Node node, Cursor c) throws NetworkFailureException { + if (mCancelled) { + return; + } + // 从本地数据库中获取内容 + SqlNote sqlNote = new SqlNote(mContext, c); + Node n; + + // update remotely + if (sqlNote.isNoteType()) { + Task task = new Task(); + task.setContentByLocalJSON(sqlNote.getContent()); + + String parentGid = mNidToGid.get(sqlNote.getParentId()); + if (parentGid == null) { + Log.e(TAG, "cannot find task's parent tasklist"); + throw new ActionFailureException("cannot add remote task"); + } + // 在本地生成的GTaskList中添加子节点 + mGTaskListHashMap.get(parentGid).addChildTask(task); + // 登录远端服务器创建task + GTaskClient.getInstance().createTask(task); + n = (Node) task; + + // add meta + updateRemoteMeta(task.getGid(), sqlNote); + } else { + TaskList tasklist = null; + + // we need to skip folder if it has already existed + String folderName = GTaskStringUtils.MIUI_FOLDER_PREFFIX; + if (sqlNote.getId() == Notes.ID_ROOT_FOLDER) + folderName += GTaskStringUtils.FOLDER_DEFAULT; + else if (sqlNote.getId() == Notes.ID_CALL_RECORD_FOLDER) + folderName += GTaskStringUtils.FOLDER_CALL_NOTE; + else + folderName += sqlNote.getSnippet(); + // 迭代器,通过统一接口迭代所有map元素 + Iterator> iter = mGTaskListHashMap.entrySet().iterator(); + while (iter.hasNext()) { + Map.Entry entry = iter.next(); + String gid = entry.getKey(); + TaskList list = entry.getValue(); + + if (list.getName().equals(folderName)) { + tasklist = list; + if (mGTaskHashMap.containsKey(gid)) { + mGTaskHashMap.remove(gid); + } + break; + } + } + + // no match we can add now + if (tasklist == null) { + tasklist = new TaskList(); + tasklist.setContentByLocalJSON(sqlNote.getContent()); + GTaskClient.getInstance().createTaskList(tasklist); + mGTaskListHashMap.put(tasklist.getGid(), tasklist); + } + n = (Node) tasklist; + } + + // update local note + sqlNote.setGtaskId(n.getGid()); + sqlNote.commit(false); + sqlNote.resetLocalModified(); + sqlNote.commit(true); + + // gid-id mapping + mGidToNid.put(n.getGid(), sqlNote.getId()); + mNidToGid.put(sqlNote.getId(), n.getGid()); + } + // 更新远端node + private void updateRemoteNode(Node node, Cursor c) throws NetworkFailureException { + if (mCancelled) { + return; + } + + SqlNote sqlNote = new SqlNote(mContext, c); + + // update remotely + node.setContentByLocalJSON(sqlNote.getContent()); + GTaskClient.getInstance().addUpdateNode(node); + + // update meta + updateRemoteMeta(node.getGid(), sqlNote); + + // move task if necessary + if (sqlNote.isNoteType()) { + Task task = (Task) node; + // preParentList通过node获取的父节点列表 + TaskList preParentList = task.getParent(); + // curParentGid为通过光标在数据库中找到sqlNote的mParentId,再通过mNidToGid由long类型转为String类型的Gid + String curParentGid = mNidToGid.get(sqlNote.getParentId()); + if (curParentGid == null) { + Log.e(TAG, "cannot find task's parent tasklist"); + throw new ActionFailureException("cannot update remote task"); + } + // 通过HashMap找到对应Gid的TaskList + TaskList curParentList = mGTaskListHashMap.get(curParentGid); + // 判断父上一个节点是否与本节点相符,用于更新操作 + if (preParentList != curParentList) { + preParentList.removeChildTask(task); + curParentList.addChildTask(task); + GTaskClient.getInstance().moveTask(task, preParentList, curParentList); + } + } + + // clear local modified flag + sqlNote.resetLocalModified(); + sqlNote.commit(true); + } + // 升级远程meta + private void updateRemoteMeta(String gid, SqlNote sqlNote) throws NetworkFailureException { + if (sqlNote != null && sqlNote.isNoteType()) { + MetaData metaData = mMetaHashMap.get(gid); + if (metaData != null) { + metaData.setMeta(gid, sqlNote.getContent()); + GTaskClient.getInstance().addUpdateNode(metaData); + } else { + metaData = new MetaData(); + metaData.setMeta(gid, sqlNote.getContent()); + mMetaList.addChildTask(metaData); + mMetaHashMap.put(gid, metaData); + GTaskClient.getInstance().createTask(metaData); + } + } + } + // 刷新本地syncid以对应更改后的对象 + private void refreshLocalSyncId() throws NetworkFailureException { + if (mCancelled) { + return; + } + + // get the latest gtask list + mGTaskHashMap.clear(); + mGTaskListHashMap.clear(); + mMetaHashMap.clear(); + initGTaskList(); + + Cursor c = null; + try { + c = mContentResolver.query(Notes.CONTENT_NOTE_URI, SqlNote.PROJECTION_NOTE, + "(type<>? AND parent_id<>?)", new String[] { + String.valueOf(Notes.TYPE_SYSTEM), String.valueOf(Notes.ID_TRASH_FOLER) + }, NoteColumns.TYPE + " DESC"); + if (c != null) { + while (c.moveToNext()) { + String gid = c.getString(SqlNote.GTASK_ID_COLUMN); + Node node = mGTaskHashMap.get(gid); + if (node != null) { + mGTaskHashMap.remove(gid); + // 在ContentValues中创建键值对。准备通过contentResolver写入数据 + ContentValues values = new ContentValues(); + values.put(NoteColumns.SYNC_ID, node.getLastModified()); + // 进行批量更改,选择参数为NULL,应该可以用insert替换,参数分别为表名和需要更新的value对象。 + mContentResolver.update(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, + c.getLong(SqlNote.ID_COLUMN)), values, null, null); + } else { + Log.e(TAG, "something is missed"); + throw new ActionFailureException( + "some local items don't have gid after sync"); + } + } + } else { + Log.w(TAG, "failed to query local note to refresh sync id"); + } + } finally { + if (c != null) { + c.close(); + c = null; + } + } + } + + public String getSyncAccount() { + return GTaskClient.getInstance().getSyncAccount().name; + } + + public void cancelSync() { + mCancelled = true; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskSyncService.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskSyncService.java new file mode 100644 index 0000000..a23452b --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/gtask/remote/GTaskSyncService.java @@ -0,0 +1,150 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.gtask.remote; + +/* + * Service是在一段不定的时间运行在后台,不和用户交互的应用组件 + * 主要方法: + * private void startSync() 启动一个同步工作 + * private void cancelSync() 取消同步 + * public void onCreate() + * public int onStartCommand(Intent intent, int flags, int startId) service生命周期的组成部分,相当于重启service(比如在被暂停之后),而不是创建一个新的service + * public void onLowMemory() 在没有内存的情况下如果存在service则结束掉这的service + * public IBinder onBind() + * public void sendBroadcast(String msg) 发送同步的相关通知 + * public static void startSync(Activity activity) + * public static void cancelSync(Context context) + * public static boolean isSyncing() 判读是否在进行同步 + * public static String getProgressString() 获取当前进度的信息 + */ + + +import android.app.Activity; +import android.app.Service; +import android.content.Context; +import android.content.Intent; +import android.os.Bundle; +import android.os.IBinder; + +public class GTaskSyncService extends Service { + public final static String ACTION_STRING_NAME = "sync_action_type"; + + public final static int ACTION_START_SYNC = 0; + + public final static int ACTION_CANCEL_SYNC = 1; + + public final static int ACTION_INVALID = 2; + + public final static String GTASK_SERVICE_BROADCAST_NAME = "net.micode.notes.gtask.remote.gtask_sync_service"; + + public final static String GTASK_SERVICE_BROADCAST_IS_SYNCING = "isSyncing"; + + public final static String GTASK_SERVICE_BROADCAST_PROGRESS_MSG = "progressMsg"; + + private static GTaskASyncTask mSyncTask = null; + + private static String mSyncProgress = ""; + // 开始进行一个同的步 + private void startSync() { + if (mSyncTask == null) { + mSyncTask = new GTaskASyncTask(this, new GTaskASyncTask.OnCompleteListener() { + public void onComplete() { + mSyncTask = null; + sendBroadcast(""); + stopSelf(); + } + }); + sendBroadcast(""); + // 该函数主打的是一个让任务以单线程队列或者线程池队列方式运行 + mSyncTask.execute(); + } + } + + private void cancelSync() { + if (mSyncTask != null) { + mSyncTask.cancelSync(); + } + } + + @Override + // 对Service进行一个初始化 + public void onCreate() { + mSyncTask = null; + } + + @Override + public int onStartCommand(Intent intent, int flags, int startId) { + Bundle bundle = intent.getExtras(); + if (bundle != null && bundle.containsKey(ACTION_STRING_NAME)) { + // 对于开始同步和取消同步分情况表示 + switch (bundle.getInt(ACTION_STRING_NAME, ACTION_INVALID)) { + case ACTION_START_SYNC: + startSync(); + break; + case ACTION_CANCEL_SYNC: + cancelSync(); + break; + default: + break; + } + return START_STICKY; + } + return super.onStartCommand(intent, flags, startId); + } + + @Override + public void onLowMemory() { + if (mSyncTask != null) { + mSyncTask.cancelSync(); + } + } + // 重制客户端的服务绑定 + public IBinder onBind(Intent intent) { + return null; + } + + public void sendBroadcast(String msg) { + mSyncProgress = msg; + // 创建新的新意图 + Intent intent = new Intent(GTASK_SERVICE_BROADCAST_NAME); + intent.putExtra(GTASK_SERVICE_BROADCAST_IS_SYNCING, mSyncTask != null); + intent.putExtra(GTASK_SERVICE_BROADCAST_PROGRESS_MSG, msg); + sendBroadcast(intent); + } + // 对同步进行一个开始 + public static void startSync(Activity activity) { + GTaskManager.getInstance().setActivityContext(activity); + Intent intent = new Intent(activity, GTaskSyncService.class); + intent.putExtra(GTaskSyncService.ACTION_STRING_NAME, GTaskSyncService.ACTION_START_SYNC); + // 发送通知 + activity.startService(intent); + } + // 对同步进行一个取消 + public static void cancelSync(Context context) { + Intent intent = new Intent(context, GTaskSyncService.class); + intent.putExtra(GTaskSyncService.ACTION_STRING_NAME, GTaskSyncService.ACTION_CANCEL_SYNC); + context.startService(intent); + } + + public static boolean isSyncing() { + return mSyncTask != null; + } + + public static String getProgressString() { + return mSyncProgress; + } +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/model/Note.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/model/Note.java new file mode 100644 index 0000000..4072cf5 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/model/Note.java @@ -0,0 +1,255 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.model; + +import android.content.ContentProviderOperation; +import android.content.ContentProviderResult; +import android.content.ContentUris; +import android.content.ContentValues; +import android.content.Context; +import android.content.OperationApplicationException; +import android.net.Uri; +import android.os.RemoteException; +import android.util.Log; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.CallNote; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.data.Notes.TextNote; + +import java.util.ArrayList; + +public class Note {// 便签类 + private ContentValues mNoteDiffValues; // 用于保存便签修改值 + private NoteData mNoteData; // 保存便签的数据 + private static final String TAG = "Note"; // 设置TAG为Note + + /** + * Create a new note id for adding a new note to databases + */ + public static synchronized long getNewNoteId(Context context, long folderId) { // 为一个新的便签创建id返回数据库 + // Create a new note in the database + ContentValues values = new ContentValues(); // 用于保存创建日期等字段的值 + long createdTime = System.currentTimeMillis(); // 获取创建时间 + values.put(NoteColumns.CREATED_DATE, createdTime); + values.put(NoteColumns.MODIFIED_DATE, createdTime); + values.put(NoteColumns.TYPE, Notes.TYPE_NOTE); + values.put(NoteColumns.LOCAL_MODIFIED, 1); + values.put(NoteColumns.PARENT_ID, folderId); + Uri uri = context.getContentResolver().insert(Notes.CONTENT_NOTE_URI, values); // 将values插入数据库中,并返回uri + + long noteId = 0; + try { + noteId = Long.valueOf(uri.getPathSegments().get(1)); // 解析uri获取新笔记id + } catch (NumberFormatException e) { + Log.e(TAG, "Get note id error :" + e.toString()); // 解析失败日志 + noteId = 0; + } + if (noteId == -1) { + throw new IllegalStateException("Wrong note id:" + noteId); // 获取id出错,抛出异常 + } + return noteId; + } + + public Note() { + mNoteDiffValues = new ContentValues(); // 创建新对象 + mNoteData = new NoteData(); // 创建新对象 + } + + public void setNoteValue(String key, String value) { // 设置便签的值 + mNoteDiffValues.put(key, value); // key为属性,values为新值 + mNoteDiffValues.put(NoteColumns.LOCAL_MODIFIED, 1); // 本地修改标识为1,标识被修改 + mNoteDiffValues.put(NoteColumns.MODIFIED_DATE, System.currentTimeMillis()); // 表示修改时间,用于服务器时间比较 + } + + public void setTextData(String key, String value) { + mNoteData.setTextData(key, value); // 添加键值对 + } // 设置文本数据 + + public void setTextDataId(long id) { + mNoteData.setTextDataId(id); + } // 设置文本数据id + + public long getTextDataId() { + return mNoteData.mTextDataId; + } // 获取文本数据id + + public void setCallDataId(long id) { + mNoteData.setCallDataId(id); + } // 设置通讯数据id + + public void setCallData(String key, String value) { + mNoteData.setCallData(key, value); + } // 设置通讯数据,添加键值对 + + public boolean isLocalModified() { + return mNoteDiffValues.size() > 0 || mNoteData.isLocalModified(); + } // 检查是否被修改 + + public boolean syncNote(Context context, long noteId) { // 用于同步到数据库中 + if (noteId <= 0) { + throw new IllegalArgumentException("Wrong note id:" + noteId); // 抛出异常 + } + + if (!isLocalModified()) { // 判断是否修改过 + return true; // 没修改则不需要同步 + } + + /** + * In theory, once data changed, the note should be updated on + * {@link NoteColumns#LOCAL_MODIFIED} and + * {@link NoteColumns#MODIFIED_DATE}. For data safety, though update note fails, + * we also update the + * note data info + */ + if (context.getContentResolver().update( // 打包并同步 + ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), mNoteDiffValues, null, + null) == 0) { + Log.e(TAG, "Update note error, should not happen"); + // Do not return, fall through + } + mNoteDiffValues.clear(); + + if (mNoteData.isLocalModified() + && (mNoteData.pushIntoContentResolver(context, noteId) == null)) { + return false; // 表示同步失败 + } + + return true; + } + + private class NoteData { // 私有内部类,用于便签数据管理 + private long mTextDataId; + + private ContentValues mTextDataValues; + + private long mCallDataId; + + private ContentValues mCallDataValues; + + private static final String TAG = "NoteData"; + + public NoteData() { // 构造函数 + mTextDataValues = new ContentValues(); // 保存便签文本 + mCallDataValues = new ContentValues(); // 保存便签通讯记录 + mTextDataId = 0; + mCallDataId = 0; + } + + boolean isLocalModified() { + return mTextDataValues.size() > 0 || mCallDataValues.size() > 0; + } // 检查便签是否再本地修改 + + void setTextDataId(long id) { + if (id <= 0) { + throw new IllegalArgumentException("Text data id should larger than 0"); + } + mTextDataId = id; + } // 设置便签文本标识符 + + void setCallDataId(long id) { + if (id <= 0) { + throw new IllegalArgumentException("Call data id should larger than 0"); + } + mCallDataId = id; + } // 设置便签通讯标识符 + + void setCallData(String key, String value) { + mCallDataValues.put(key, value); + mNoteDiffValues.put(NoteColumns.LOCAL_MODIFIED, 1); // 更新修改状态 + mNoteDiffValues.put(NoteColumns.MODIFIED_DATE, System.currentTimeMillis()); // 更新修改日期 + } // 设置文本数据 + + void setTextData(String key, String value) { // 设置通讯数据 + mTextDataValues.put(key, value); + mNoteDiffValues.put(NoteColumns.LOCAL_MODIFIED, 1); + mNoteDiffValues.put(NoteColumns.MODIFIED_DATE, System.currentTimeMillis()); + } + + Uri pushIntoContentResolver(Context context, long noteId) { // 将文本数据与通讯数据添加到context + /** + * Check for safety + */ + if (noteId <= 0) { + throw new IllegalArgumentException("Wrong note id:" + noteId); // 抛出异常 + } + + ArrayList operationList = new ArrayList(); + ContentProviderOperation.Builder builder = null; + + if (mTextDataValues.size() > 0) { // 检查文本数据 + mTextDataValues.put(DataColumns.NOTE_ID, noteId); // 将便签id与数据值相关联 + if (mTextDataId == 0) { + mTextDataValues.put(DataColumns.MIME_TYPE, TextNote.CONTENT_ITEM_TYPE); // 并将键值对添加到mTextDataValues中 + Uri uri = context.getContentResolver().insert(Notes.CONTENT_DATA_URI, + mTextDataValues); // 插入新的数据行,保存返回的uri + try { + setTextDataId(Long.valueOf(uri.getPathSegments().get(1))); + } catch (NumberFormatException e) { + Log.e(TAG, "Insert new text data fail with noteId" + noteId); // 异常日志 + mTextDataValues.clear(); + return null; + } + } else { // 表示需要更新现有数据行 + builder = ContentProviderOperation.newUpdate(ContentUris.withAppendedId( + Notes.CONTENT_DATA_URI, mTextDataId)); + builder.withValues(mTextDataValues); + operationList.add(builder.build()); + } + mTextDataValues.clear(); // 清空mTextDataValues + } + if (mCallDataValues.size() > 0) { // 检查通讯数据,代码内容功能同上 + mCallDataValues.put(DataColumns.NOTE_ID, noteId); + if (mCallDataId == 0) { + mCallDataValues.put(DataColumns.MIME_TYPE, CallNote.CONTENT_ITEM_TYPE); + Uri uri = context.getContentResolver().insert(Notes.CONTENT_DATA_URI, + mCallDataValues); + try { + setCallDataId(Long.valueOf(uri.getPathSegments().get(1))); + } catch (NumberFormatException e) { + Log.e(TAG, "Insert new call data fail with noteId" + noteId); + mCallDataValues.clear(); + return null; + } + } else { + builder = ContentProviderOperation.newUpdate(ContentUris.withAppendedId( + Notes.CONTENT_DATA_URI, mCallDataId)); + builder.withValues(mCallDataValues); + operationList.add(builder.build()); + } + mCallDataValues.clear(); + } + + if (operationList.size() > 0) { // 检查operationList,对载入的操作进行批量提交 + try { + ContentProviderResult[] results = context.getContentResolver().applyBatch( + Notes.AUTHORITY, operationList); + return (results == null || results.length == 0 || results[0] == null) ? null + : ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId); + } catch (RemoteException e) { + Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + return null; + } catch (OperationApplicationException e) { + Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + return null; + } + } + return null; + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/model/WorkingNote.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/model/WorkingNote.java new file mode 100644 index 0000000..dc18c52 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/model/WorkingNote.java @@ -0,0 +1,376 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.model; + +import android.appwidget.AppWidgetManager; +import android.content.ContentUris; +import android.content.Context; +import android.database.Cursor; +import android.text.TextUtils; +import android.util.Log; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.CallNote; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.DataConstants; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.data.Notes.TextNote; +import net.micode.notes.tool.ResourceParser.NoteBgResources; + +public class WorkingNote {// 表示工作便签 + // Note for the working note + private Note mNote; // 表示工作便签 + // Note Id + private long mNoteId; // 便签id + // Note content + public String mContent; // 便签内容 + // Note mode + private int mMode; // 便签模式 + + private long mAlertDate; // 提醒日期 + + private long mModifiedDate; // 最近修改日期 + + private int mBgColorId; // 背景颜色id + + private int mTxtColorId; // 文本颜色id + + private int mWidgetId; // 小部件id + + private int mWidgetType; // 小部件类型 + + private long mFolderId; // 所在文件夹id + + private Context mContext; // 表示上下文 + + private static final String TAG = "WorkingNote"; // 设置TAG + + private boolean mIsDeleted; // 表示是否被删除 + + private NoteSettingChangedListener mNoteSettingStatusListener; // 表示便签设置状态 + + public static final String[] DATA_PROJECTION = new String[] { // 用于指定需要从数据库查询的数据列 + DataColumns.ID, + DataColumns.CONTENT, + DataColumns.MIME_TYPE, + DataColumns.DATA1, + DataColumns.DATA2, + DataColumns.DATA3, + DataColumns.DATA4, + }; + + public static final String[] NOTE_PROJECTION = new String[] { + NoteColumns.PARENT_ID, + NoteColumns.ALERTED_DATE, + NoteColumns.BG_COLOR_ID, + NoteColumns.WIDGET_ID, + NoteColumns.WIDGET_TYPE, + NoteColumns.MODIFIED_DATE + }; + + private static final int DATA_ID_COLUMN = 0; // 表示查询数据的id列 + + private static final int DATA_CONTENT_COLUMN = 1; // 表示查询数据的内容列 + + private static final int DATA_MIME_TYPE_COLUMN = 2; // 表示查询数据的MIME类型列 + + private static final int DATA_MODE_COLUMN = 3; // 表示查询数据的模式列 + + private static final int NOTE_PARENT_ID_COLUMN = 0; // 表示查询便签的父文件夹id列 + + private static final int NOTE_ALERTED_DATE_COLUMN = 1; // 表示便签的提醒日期列 + + private static final int NOTE_BG_COLOR_ID_COLUMN = 2; // 表示便签的背景颜色id列 + + private static final int NOTE_WIDGET_ID_COLUMN = 3; // 表示便签小组件id列 + + private static final int NOTE_WIDGET_TYPE_COLUMN = 4; // 表示便签小组件类型列 + + private static final int NOTE_MODIFIED_DATE_COLUMN = 5; // 表示便签最后修改日期列 + + + // New note construct + private WorkingNote(Context context, long folderId) { // 新建便签的结构 + mContext = context; + mAlertDate = 0; + mModifiedDate = System.currentTimeMillis(); + mFolderId = folderId; + mNote = new Note(); + mNoteId = 0; + mIsDeleted = false; + mMode = 0; + mWidgetType = Notes.TYPE_WIDGET_INVALIDE; + } + + // Existing note construct + private WorkingNote(Context context, long noteId, long folderId) { // 存在的的便签结构 + mContext = context; + mNoteId = noteId; + mFolderId = folderId; + mIsDeleted = false; + mNote = new Note(); + loadNote(); + } + + private void loadNote() { // 查询并加载当前便签的详细信息 + Cursor cursor = mContext.getContentResolver().query( + ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, mNoteId), NOTE_PROJECTION, null, + null, null); // 返回一个Cursor对象 + + if (cursor != null) { + if (cursor.moveToFirst()) { // 将查询结构的列值返回当前便签 + mFolderId = cursor.getLong(NOTE_PARENT_ID_COLUMN); + mBgColorId = cursor.getInt(NOTE_BG_COLOR_ID_COLUMN); + mWidgetId = cursor.getInt(NOTE_WIDGET_ID_COLUMN); + mWidgetType = cursor.getInt(NOTE_WIDGET_TYPE_COLUMN); + mAlertDate = cursor.getLong(NOTE_ALERTED_DATE_COLUMN); + mModifiedDate = cursor.getLong(NOTE_MODIFIED_DATE_COLUMN); + } + cursor.close(); + } else { + Log.e(TAG, "No note with id:" + mNoteId); + throw new IllegalArgumentException("Unable to find note with id " + mNoteId); // 抛出异常,表示未找到指定id的便签 + } + loadNoteData(); // 加载便签内容和其他数据 + } + + private void loadNoteData() { // 加载便签内容数据 + Cursor cursor = mContext.getContentResolver().query(Notes.CONTENT_DATA_URI, DATA_PROJECTION, + DataColumns.NOTE_ID + "=?", new String[] { // 获取与便签id相对应的所有数据 + String.valueOf(mNoteId) + }, null); // 遍历Cursor对象所有数据 + + if (cursor != null) { + if (cursor.moveToFirst()) { + do { + String type = cursor.getString(DATA_MIME_TYPE_COLUMN); + if (DataConstants.NOTE.equals(type)) { // 类型相对应则设置WorkingNote对象成员变量 + mContent = cursor.getString(DATA_CONTENT_COLUMN); + mMode = cursor.getInt(DATA_MODE_COLUMN); + mNote.setTextDataId(cursor.getLong(DATA_ID_COLUMN)); + } else if (DataConstants.CALL_NOTE.equals(type)) { + mNote.setCallDataId(cursor.getLong(DATA_ID_COLUMN)); // 设置为Notes对象的成员变量 + } else { + Log.d(TAG, "Wrong note type with type:" + type); // 抛出异常,错误的数据类型 + } + } while (cursor.moveToNext()); + } + cursor.close(); + } else { + Log.e(TAG, "No data with id:" + mNoteId); + throw new IllegalArgumentException("Unable to find note's data with id " + mNoteId); // 抛出异常,无查询结果 + } + } + + public static WorkingNote createEmptyNote(Context context, long folderId, int widgetId, // 上下文对象、文件夹id、组件id、组件类型、默认背景颜色id + int widgetType, int defaultBgColorId) { // 创建空白便签 + WorkingNote note = new WorkingNote(context, folderId); // 用上下文对象、父文件夹id创建WorkingNote + note.setBgColorId(defaultBgColorId); + note.setWidgetId(widgetId); + note.setWidgetType(widgetType); + return note; // 设置变量并返回 + } + + public static WorkingNote load(Context context, long id) { // 用上下文对象和id创建新的WorkingNote对象 + return new WorkingNote(context, id, 0); + } + + public synchronized boolean saveNote() { // 保存便签 + if (isWorthSaving()) { // 判断是否保存 + if (!existInDatabase()) { // 是否存在与数据库 + if ((mNoteId = Note.getNewNoteId(mContext, mFolderId)) == 0) { // 不存在则获取id + Log.e(TAG, "Create new note fail with id:" + mNoteId); // 日志记录 + return false; + } + } + + mNote.syncNote(mContext, mNoteId); // 同步到数据库中 + + /** + * Update widget content if there exist any widget of this note + */ + if (mWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID // 诺该便签与组件关联 + && mWidgetType != Notes.TYPE_WIDGET_INVALIDE + && mNoteSettingStatusListener != null) { + mNoteSettingStatusListener.onWidgetChanged(); // 更新组件 + } + return true; + } else { + return false; + } + } + + public boolean existInDatabase() { + return mNoteId > 0; + } // 判断便签是否存在数据库 + + private boolean isWorthSaving() { + if (mIsDeleted || (!existInDatabase() && TextUtils.isEmpty(mContent)) // 不存在于数据库且为空,或者没本地修改 + || (existInDatabase() && !mNote.isLocalModified())) { + return false; + } else { + return true; + } + } // 判断是否值得保存 + + public void setOnSettingStatusChangedListener(NoteSettingChangedListener l) { + mNoteSettingStatusListener = l; + } // 设置便签状态监视器 + + public void setAlertDate(long date, boolean set) { // 设置提醒 + if (date != mAlertDate) { // 判断传入是否相同 + mAlertDate = date; // 更新 + mNote.setNoteValue(NoteColumns.ALERTED_DATE, String.valueOf(mAlertDate)); // 更新数据库 + } + if (mNoteSettingStatusListener != null) { + mNoteSettingStatusListener.onClockAlertChanged(date, set); // 调用监听器 + } + } + + public void markDeleted(boolean mark) { // 标记删除标志 + mIsDeleted = mark; + if (mWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID + && mWidgetType != Notes.TYPE_WIDGET_INVALIDE && mNoteSettingStatusListener != null) { + mNoteSettingStatusListener.onWidgetChanged(); // 已删除则更新组件 + } + } + + public void setBgColorId(int id) { // 设置背景颜色 + if (id != mBgColorId) { // 检查 + mBgColorId = id; // 更新设置 + if (mNoteSettingStatusListener != null) { + mNoteSettingStatusListener.onBackgroundColorChanged(); // 通知监听器 + } + mNote.setNoteValue(NoteColumns.BG_COLOR_ID, String.valueOf(id)); // 更新数据库 + } + } + public void setTxtColorId(int id){ // 设置选中文本的颜色 + if (id != mTxtColorId) { + mTxtColorId = id; + } + } + public void setCheckListMode(int mode) { // 设置便签的检查清单模式 + if (mMode != mode) { // 检查 + if (mNoteSettingStatusListener != null) { + mNoteSettingStatusListener.onCheckListModeChanged(mMode, mode); // 通知 + } + mMode = mode; + mNote.setTextData(TextNote.MODE, String.valueOf(mMode)); // 更新数据库 + } + } + + public void setWidgetType(int type) { // 设置组件类型 + if (type != mWidgetType) { + mWidgetType = type; + mNote.setNoteValue(NoteColumns.WIDGET_TYPE, String.valueOf(mWidgetType)); // 更新数据库 + } + } + + public void setWidgetId(int id) { // 设置组件id + if (id != mWidgetId) { + mWidgetId = id; + mNote.setNoteValue(NoteColumns.WIDGET_ID, String.valueOf(mWidgetId)); // 更新数据库 + } + } + + public void setWorkingText(String text) { // 设置文本 + if (!TextUtils.equals(mContent, text)) { + mContent = text; + mNote.setTextData(DataColumns.CONTENT, mContent); // 更新 + } + } + + public void convertToCallNote(String phoneNumber, long callDate) { // 转换为呼叫类型便签 + mNote.setCallData(CallNote.CALL_DATE, String.valueOf(callDate)); + mNote.setCallData(CallNote.PHONE_NUMBER, phoneNumber); + mNote.setNoteValue(NoteColumns.PARENT_ID, String.valueOf(Notes.ID_CALL_RECORD_FOLDER)); // 修改父文件夹id为呼叫记录id + } + + public boolean hasClockAlert() { + return (mAlertDate > 0 ? true : false); + } // 是否设置提醒数据 + + public String getContent() { + return mContent; + } // 获取内容 + + public long getAlertDate() { + return mAlertDate; + } // 获取提醒时间 + + public long getModifiedDate() { + return mModifiedDate; + } // 获取最后修改时间 + + public int getBgColorResId() { + return NoteBgResources.getNoteBgResource(mBgColorId); + } // 获取背景资源id + public int getmTxtColorId() { + return mTxtColorId; + } + public int getBgColorId() { + return mBgColorId; + } // 获取背景颜色id + public int getTitleBgResId() { + return NoteBgResources.getNoteTitleBgResource(mBgColorId); + } // 获取标题栏背景颜色资源id + + public int getCheckListMode() { + return mMode; + } // 获取检查清单模式 + + public long getNoteId() { + return mNoteId; + } // 获取便签id + + public long getFolderId() { + return mFolderId; + } // 获取父文件夹id + + public int getWidgetId() { + return mWidgetId; + } // 获取组件id + + public int getWidgetType() { + return mWidgetType; + } // 获取组件类型 + + public interface NoteSettingChangedListener { // 接口 + /** + * Called when the background color of current note has just changed + */ + void onBackgroundColorChanged(); // 便签背景颜色变化时启动 + + /** + * Called when user set clock + */ + void onClockAlertChanged(long date, boolean set); // 设置提醒时间时启动 + + /** + * Call when user create note from widget + */ + void onWidgetChanged(); // 创建组件时启动 + + /** + * Call when switch between check list mode and normal mode + * + * @param oldMode is previous mode before change + * @param newMode is new mode + */ + void onCheckListModeChanged(int oldMode, int newMode); // 清单模式转为笔记模式时启动 + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/BackupUtils.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/BackupUtils.java new file mode 100644 index 0000000..93ae8c8 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/BackupUtils.java @@ -0,0 +1,344 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.tool; + +import android.content.Context; +import android.database.Cursor; +import android.os.Environment; +import android.text.TextUtils; +import android.text.format.DateFormat; +import android.util.Log; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.DataColumns; +import net.micode.notes.data.Notes.DataConstants; +import net.micode.notes.data.Notes.NoteColumns; + +import java.io.File; +import java.io.FileNotFoundException; +import java.io.FileOutputStream; +import java.io.IOException; +import java.io.PrintStream;////// +//添加包。类。对象等 + +public class BackupUtils { + private static final String TAG = "BackupUtils"; + // Singleton stuff + private static BackupUtils sInstance; + + public static synchronized BackupUtils getInstance(Context context) { + if (sInstance == null) {//如果实例为空则创建新实例 + sInstance = new BackupUtils(context); + }//返回实例 + return sInstance; + } + + /** + * Following states are signs to represents backup or restore + * status + */ + // Currently, the sdcard is not mounted + public static final int STATE_SD_CARD_UNMOUONTED = 0; + // The backup file not exist + public static final int STATE_BACKUP_FILE_NOT_EXIST = 1; + // The data is not well formated, may be changed by other programs + public static final int STATE_DATA_DESTROIED = 2; + // Some run-time exception which causes restore or backup fails + public static final int STATE_SYSTEM_ERROR = 3; + // Backup or restore success + public static final int STATE_SUCCESS = 4; + + private TextExport mTextExport; + + private BackupUtils(Context context) { + mTextExport = new TextExport(context); + } + + private static boolean externalStorageAvailable() { + return Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()); + } +//将笔记·导出文本,返回导出时的状态码 + public int exportToText() { + return mTextExport.exportToText(); + } +//获取导出文本文件名 + public String getExportedTextFileName() { + return mTextExport.mFileName; + } +//获得到处文本文件目录 + public String getExportedTextFileDir() { + return mTextExport.mFileDirectory; + } +//负责将笔记导出为文本 + private static class TextExport { + private static final String[] NOTE_PROJECTION = { + NoteColumns.ID, + NoteColumns.MODIFIED_DATE, + NoteColumns.SNIPPET, + NoteColumns.TYPE + }; + + private static final int NOTE_COLUMN_ID = 0;//查询结果中笔记id所在列的索引 + + private static final int NOTE_COLUMN_MODIFIED_DATE = 1;//查询结果中笔记上次修改时间所在的索引 + + private static final int NOTE_COLUMN_SNIPPET = 2;//查询摘要所在索引 + + private static final String[] DATA_PROJECTION = { + DataColumns.CONTENT, + DataColumns.MIME_TYPE, + DataColumns.DATA1, + DataColumns.DATA2, + DataColumns.DATA3, + DataColumns.DATA4, + };//定义静态不可变数据列 + + private static final int DATA_COLUMN_CONTENT = 0; + + private static final int DATA_COLUMN_MIME_TYPE = 1; + + private static final int DATA_COLUMN_CALL_DATE = 2; + + private static final int DATA_COLUMN_PHONE_NUMBER = 4;//定义以上数据列MIME类,呼叫日期,号码的索引初始值 + + private final String [] TEXT_FORMAT;//定义带有3个元素字符串数组TEXT_FORMAT + private static final int FORMAT_FOLDER_NAME = 0;//格式化后目录名称FORMAT_FOLDER_NAME= 0 + private static final int FORMAT_NOTE_DATE = 1; + private static final int FORMAT_NOTE_CONTENT = 2;//格式化后的笔记内容索引为2 + + private Context mContext;//声名Context类型和字符串类型 + private String mFileName;//文件名称 + private String mFileDirectory;//文件目录路径 + + public TextExport(Context context) { + TEXT_FORMAT = context.getResources().getStringArray(R.array.format_for_exported_note);//初始化文件名称变量为控字符串 + mContext = context; + mFileName = ""; + mFileDirectory = ""; + }//初始化文件路径mFileDirectory = ""为空 +//创建TextExport对象 + private String getFormat(int id) { + return TEXT_FORMAT[id]; + } + + /** + * Export the folder identified by folder id to text + */ + private void exportFolderToText(String folderId, PrintStream ps) { + // Query notes belong to this folder + Cursor notesCursor = mContext.getContentResolver().query(Notes.CONTENT_NOTE_URI, + NOTE_PROJECTION, NoteColumns.PARENT_ID + "=?", new String[] { + folderId + }, null); + + if (notesCursor != null) { + if (notesCursor.moveToFirst()) { + do { + // Print note's last modified date + ps.println(String.format(getFormat(FORMAT_NOTE_DATE), DateFormat.format( + mContext.getString(R.string.format_datetime_mdhm), + notesCursor.getLong(NOTE_COLUMN_MODIFIED_DATE)))); + // Query data belong to this note + String noteId = notesCursor.getString(NOTE_COLUMN_ID); + exportNoteToText(noteId, ps); + } while (notesCursor.moveToNext()); + } + notesCursor.close(); + } + } + + /** + * Export note identified by id to a print stream + */ + private void exportNoteToText(String noteId, PrintStream ps) { + Cursor dataCursor = mContext.getContentResolver().query(Notes.CONTENT_DATA_URI,//查询CONTENT_DATA_URI对应的数据表 + DATA_PROJECTION, DataColumns.NOTE_ID + "=?", new String[] { + noteId + }, null); +//使用DataColumns.NOTE_ID是否为?限制查询条件,并查询noted对应的数据行 + if (dataCursor != null) {//若查询不为空,则执行以下代码: + if (dataCursor.moveToFirst()) {//移动游标为第一条记录并循环记录 + do { + String mimeType = dataCursor.getString(DATA_COLUMN_MIME_TYPE);//获取MIME_TYPE的值 + if (DataConstants.CALL_NOTE.equals(mimeType)) { + // Print phone number + String phoneNumber = dataCursor.getString(DATA_COLUMN_PHONE_NUMBER); + long callDate = dataCursor.getLong(DATA_COLUMN_CALL_DATE); + String location = dataCursor.getString(DATA_COLUMN_CONTENT);//从记录中获取phonenumber和calldate的值并输出号码 + + if (!TextUtils.isEmpty(phoneNumber)) {//若电话号码不为空 + ps.println(String.format(getFormat(FORMAT_NOTE_CONTENT), + phoneNumber));//输出电话号码输出到PrintStream实例PS中 + } + // Print call date + ps.println(String.format(getFormat(FORMAT_NOTE_CONTENT), DateFormat + .format(mContext.getString(R.string.format_datetime_mdhm), + callDate)));//输出通话日期信息到PrintStream中 + // Print call attachment location + if (!TextUtils.isEmpty(location)) {//若位置信息不为空 + ps.println(String.format(getFormat(FORMAT_NOTE_CONTENT), + location)); + }//输出位置信息到PrintStream实例PS中 + } else if (DataConstants.NOTE.equals(mimeType)) {//若数据类型为Note,则执行以下语句 + String content = dataCursor.getString(DATA_COLUMN_CONTENT);//从Cursor中获取信息 + if (!TextUtils.isEmpty(content)) { + ps.println(String.format(getFormat(FORMAT_NOTE_CONTENT), + content));//将内容信息格式化输出rintStream实例PS中 + } + } + } while (dataCursor.moveToNext()); + } + dataCursor.close(); + } + // print a line separator between note + try { + ps.write(new byte[] { + Character.LINE_SEPARATOR, Character.LETTER_NUMBER + }); + } catch (IOException e) {//若出现IO异常,则廖永Log类的e()方法将异常信息输出日志中 + Log.e(TAG, e.toString()); + } + } +//使用rintStream实例PS的write()方法写入字节数组到输出流中,包括换行和字母数字 + /** + * Note will be exported as text which is user readable + */ + public int exportToText() {//定义exportToText(),返回值类型为整型 + if (!externalStorageAvailable()) { + Log.d(TAG, "Media was not mounted"); + return STATE_SD_CARD_UNMOUONTED; + } +//若外部存储不可用,输出日记信息,返回表示Media was not mounted + PrintStream ps = getExportToTextPrintStream();//获取打印输出 + if (ps == null) { + Log.e(TAG, "get print stream error"); + return STATE_SYSTEM_ERROR; + }//若获取不到打印输出,输出get print stream error",并返回错误 + // First export folder and its notes + Cursor folderCursor = mContext.getContentResolver().query(//声名Cursor类的变量folder,存储调查结果 + Notes.CONTENT_NOTE_URI, + NOTE_PROJECTION,//调用getContentResolver(),查询目标为Note表中数据和NOTE_PROJECTION指定列 + "(" + NoteColumns.TYPE + "=" + Notes.TYPE_FOLDER + " AND " + + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER + ") OR " + + NoteColumns.ID + "=" + Notes.ID_CALL_RECORD_FOLDER, null, null); +//限定查询条件为文件夹且父类文件夹不是回收站 + if (folderCursor != null) {//判断folder是否为空 + if (folderCursor.moveToFirst()) { + do { + // Print folder's name + String folderName = "";//遍历查询文件夹中所有文件夹记录 + if(folderCursor.getLong(NOTE_COLUMN_ID) == Notes.ID_CALL_RECORD_FOLDER) { + folderName = mContext.getString(R.string.call_record_folder_name);//若记录对应通话记录文件夹,给folder赋值Notes.ID_CALL_RECORD_FOLDER + } else {//否则folder赋值为记录的摘要字段值 + folderName = folderCursor.getString(NOTE_COLUMN_SNIPPET); + } + if (!TextUtils.isEmpty(folderName)) { + ps.println(String.format(getFormat(FORMAT_FOLDER_NAME), folderName)); + } + String folderId = folderCursor.getString(NOTE_COLUMN_ID);//获取当前记录对应文件夹id并赋值给folder + exportFolderToText(folderId, ps); + } while (folderCursor.moveToNext());//将当前记录文件夹导出为文本形式,结果写入PS中 + } + folderCursor.close(); + } + + // Export notes in root's folder + Cursor noteCursor = mContext.getContentResolver().query(//通过getContentResolver()获取resolver对象,并调用querty方法查询 + Notes.CONTENT_NOTE_URI,//查询URI + NOTE_PROJECTION,//查询列 + NoteColumns.TYPE + "=" + +Notes.TYPE_NOTE + " AND " + NoteColumns.PARENT_ID + + "=0", null, null);//限制查询类型为Notes.TYPE_NOTE,且父id为0的note记录 + + if (noteCursor != null) { + if (noteCursor.moveToFirst()) {//将游标移到查询结果的第一条记录 + do { + ps.println(String.format(getFormat(FORMAT_NOTE_DATE), DateFormat.format( + mContext.getString(R.string.format_datetime_mdhm), + noteCursor.getLong(NOTE_COLUMN_MODIFIED_DATE))));//根据时间格式化字符串的时间戳,将时间转换成字符串格式 + // Query data belong to this note + String noteId = noteCursor.getString(NOTE_COLUMN_ID); + exportNoteToText(noteId, ps); + } while (noteCursor.moveToNext()); + }//或i去当前Note记录的id,吧id对应数据写入输出流中 + noteCursor.close(); + } + ps.close();//关闭游标 + + return STATE_SUCCESS; + } + + /** + * Get a print stream pointed to the file {@generateExportedTextFile} + */ + private PrintStream getExportToTextPrintStream() { + File file = generateFileMountedOnSDcard(mContext, R.string.file_path,//使用getExportToTextPrintStream()再sd卡上生成指定名称和路径的文本文件 + R.string.file_name_txt_format); + if (file == null) { + Log.e(TAG, "create file to exported failed"); + return null;//若生成文件失败,返回null,再logcat输出错误信息 + } + mFileName = file.getName(); + mFileDirectory = mContext.getString(R.string.file_path);//将成功创建文件保存为FoleNAMe,路径柏村委mFileDiectory + PrintStream ps = null; + try { + FileOutputStream fos = new FileOutputStream(file); + ps = new PrintStream(fos);//创建对象fos,用于写入文件 + } catch (FileNotFoundException e) {//使用fos创建PrintStream对象PS,一边向文件夹写入数据 + e.printStackTrace(); + return null;//若无法找到写入目标文件,再logcat输出错误信息,并返回null + } catch (NullPointerException e) { + e.printStackTrace(); + return null; + } + return ps; + } + } + + /** + * Generate the text file to store imported data + */ + private static File generateFileMountedOnSDcard(Context context, int filePathResId, int fileNameFormatResId) { + StringBuilder sb = new StringBuilder(); + sb.append(Environment.getExternalStorageDirectory());//再strtingbuilder中添加SD卡根目录路径 + sb.append(context.getString(filePathResId)); + File filedir = new File(sb.toString());//添加文件路径字符串资源id,并返回file对象表示该目录 + sb.append(context.getString( + fileNameFormatResId, + DateFormat.format(context.getString(R.string.format_date_ymd), + System.currentTimeMillis())));//再StringBuilder添加文件名格式字符串资源id,并使用dateFormat替换为当前日期格式化字符串 + File file = new File(sb.toString()); +//返回表示最终创建的文件夹对象 + try { + if (!filedir.exists()) { + filedir.mkdir(); + }//判断指定目录是否存在,若不存在创建 + if (!file.exists()) { + file.createNewFile(); + }//判断指定目录是否存在,若不存在创建 + return file;//返回创建对象 + } catch (SecurityException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + }//如果不能在指定目录下创建新的文件,则抛出IOException异常 + + return null; + } +} + + diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/DataUtils.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/DataUtils.java new file mode 100644 index 0000000..665e0a2 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/DataUtils.java @@ -0,0 +1,300 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.tool; + +import android.content.ContentProviderOperation; +import android.content.ContentProviderResult; +import android.content.ContentResolver; +import android.content.ContentUris; +import android.content.ContentValues; +import android.content.OperationApplicationException; +import android.database.Cursor; +import android.os.RemoteException; +import android.util.Log; +//导入android 包content、database等 +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.CallNote; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.ui.NotesListAdapter.AppWidgetAttribute; +//导入net-micode包下数据 +import java.util.ArrayList; +import java.util.HashSet; +//导入JAVA ArrayList和HashSet类 + +public class DataUtils {//对DataUtils类进行定义 + public static final String TAG = "DataUtils";//定义静态不可变字TAG符串常量"DataUtils" + public static boolean batchDeleteNotes(ContentResolver resolver, HashSet ids) { + if (ids == null) { + Log.d(TAG, "the ids is null"); + return true; + } + if (ids.size() == 0) { + Log.d(TAG, "no id is in the hashset"); + return true; + } + //定义批量删除笔记。若ids参数为null,输出"the ids is null"并返回true;若ids参数为0,输出"no id is in the hashset"并返回true + ArrayList operationList = new ArrayList(); + //定义操作列表,存储ContentProviderOperation对象 + for (long id : ids) {//遍历id列表 + if(id == Notes.ID_ROOT_FOLDER) { + Log.e(TAG, "Don't delete system folder root"); + continue; + }//如果id为系统根目录,打印"不要删除系统根目录"并进行下一次循环 + ContentProviderOperation.Builder builder = ContentProviderOperation + .newDelete(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, id)); + operationList.add(builder.build());//创造builder对象,删除指定id的ContentProviderOperation + } + try {//调用applybatch + ContentProviderResult[] results = resolver.applyBatch(Notes.AUTHORITY, operationList); + if (results == null || results.length == 0 || results[0] == null) { + Log.d(TAG, "delete notes failed, ids:" + ids.toString()); + return false; + } + return true;//若返回为空或第一个结果为null,输出删除失败返回false,否则返回true + } catch (RemoteException e) { + Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + } catch (OperationApplicationException e) { + Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + }//若remoteexeption或operationapplicationexception异常,返回false + return false; + } + + public static void moveNoteToFoler(ContentResolver resolver, long id, long srcFolderId, long desFolderId) { + ContentValues values = new ContentValues();//创建contentValues对象 + values.put(NoteColumns.PARENT_ID, desFolderId);//移动笔记至目标文件夹 + values.put(NoteColumns.ORIGIN_PARENT_ID, srcFolderId);//更新笔记的原始父类文件夹id + values.put(NoteColumns.LOCAL_MODIFIED, 1); + resolver.update(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, id), values, null, null); + //更新笔记 + } + + public static boolean batchMoveToFolder(ContentResolver resolver, HashSet ids, + long folderId) {//若ids为空,打印log并返回true + if (ids == null) { + Log.d(TAG, "the ids is null"); + return true; + } + + ArrayList operationList = new ArrayList(); + for (long id : ids) {//遍历笔记id集合 + ContentProviderOperation.Builder builder = ContentProviderOperation + .newUpdate(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, id)); + builder.withValue(NoteColumns.PARENT_ID, folderId);//移动笔记至目标文件夹 + builder.withValue(NoteColumns.LOCAL_MODIFIED, 1);//添加键值对,表示本地有效 + operationList.add(builder.build());//添加操作至操作列表 + } + + try { + ContentProviderResult[] results = resolver.applyBatch(Notes.AUTHORITY, operationList);//应用操作列表 + if (results == null || results.length == 0 || results[0] == null) {//如果结果为空或者第一个结果为空,打印log并返回false + Log.d(TAG, "delete notes failed, ids:" + ids.toString()); + return false; + } + return true;//true表示操作成功 + } catch (RemoteException e) {//捕获远程异常 + Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + } catch (OperationApplicationException e) {//捕获操作异常 + Log.e(TAG, String.format("%s: %s", e.toString(), e.getMessage())); + } + return false;//false表示操作失败 + } + + /** + * Get the all folder count except system folders {@link Notes#TYPE_SYSTEM}} + */ + public static int getUserFolderCount(ContentResolver resolver) { + Cursor cursor =resolver.query(Notes.CONTENT_NOTE_URI, + new String[] { "COUNT(*)" }, + NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>?", + new String[] { String.valueOf(Notes.TYPE_FOLDER), String.valueOf(Notes.ID_TRASH_FOLER)}, + null); + + int count = 0; + if(cursor != null) { + if(cursor.moveToFirst()) { + try { + count = cursor.getInt(0); + } catch (IndexOutOfBoundsException e) { + Log.e(TAG, "get folder count failed:" + e.toString()); + } finally { + cursor.close(); + } + } + } + return count; + }//检查笔记是否在数据库中可见,若不可见输出"get folder count failed:" + + public static boolean visibleInNoteDatabase(ContentResolver resolver, long noteId, int type) { + Cursor cursor = resolver.query(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), + null, + NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER, + new String [] {String.valueOf(type)}, + null); + + boolean exist = false; + if (cursor != null) { + if (cursor.getCount() > 0) { + exist = true; + } + cursor.close(); + } + return exist; + } +//检查数据是否在数据库中存在 + public static boolean existInNoteDatabase(ContentResolver resolver, long noteId) { + Cursor cursor = resolver.query(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), + null, null, null, null); + + boolean exist = false; + if (cursor != null) { + if (cursor.getCount() > 0) { + exist = true; + } + cursor.close(); + } + return exist; + } +//检查文件名称是否可见 + public static boolean existInDataDatabase(ContentResolver resolver, long dataId) { + Cursor cursor = resolver.query(ContentUris.withAppendedId(Notes.CONTENT_DATA_URI, dataId), + null, null, null, null); + + boolean exist = false; + if (cursor != null) { + if (cursor.getCount() > 0) { + exist = true; + } + cursor.close(); + } + return exist; + } + + public static boolean checkVisibleFolderName(ContentResolver resolver, String name) { + Cursor cursor = resolver.query(Notes.CONTENT_NOTE_URI, null, + NoteColumns.TYPE + "=" + Notes.TYPE_FOLDER + + " AND " + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER + + " AND " + NoteColumns.SNIPPET + "=?", + new String[] { name }, null); + boolean exist = false; + if(cursor != null) { + if(cursor.getCount() > 0) { + exist = true; + } + cursor.close(); + } + return exist; + } + + public static HashSet getFolderNoteWidget(ContentResolver resolver, long folderId) { + //查询文件夹中所有小部件id和类型 + Cursor c = resolver.query(Notes.CONTENT_NOTE_URI, + new String[] { NoteColumns.WIDGET_ID, NoteColumns.WIDGET_TYPE }, + NoteColumns.PARENT_ID + "=?", + new String[] { String.valueOf(folderId) }, + null); + + HashSet set = null; + if (c != null) { + if (c.moveToFirst()) { + set = new HashSet(); + //遍历查询结果,将小部件id和类型存入hashSET中 + do { + try { + AppWidgetAttribute widget = new AppWidgetAttribute(); + widget.widgetId = c.getInt(0); + widget.widgetType = c.getInt(1); + set.add(widget); + } catch (IndexOutOfBoundsException e) { + Log.e(TAG, e.toString()); + } + } while (c.moveToNext()); + } + c.close(); + }//返回文件夹中所有小部件HashSet集合 + return set; + } + + public static String getCallNumberByNoteId(ContentResolver resolver, long noteId) {//获取一段笔记的getCallNumberByNoteId + Cursor cursor = resolver.query(Notes.CONTENT_DATA_URI, + new String [] { CallNote.PHONE_NUMBER }, + CallNote.NOTE_ID + "=? AND " + CallNote.MIME_TYPE + "=?", + new String [] { String.valueOf(noteId), CallNote.CONTENT_ITEM_TYPE }, + null); + + if (cursor != null && cursor.moveToFirst()) { + try { + return cursor.getString(0); + } catch (IndexOutOfBoundsException e) {//如果查询结果不为空且有数据,则返回该行的电话号码 + Log.e(TAG, "Get call number fails " + e.toString());//如果获取电话号码失败,则打印错误日志 + } finally { + cursor.close(); + } //关闭游标,释放资源 + } + return "";//如果没有查询结果,则返回空串 + } + + public static long getNoteIdByPhoneNumberAndCallDate(ContentResolver resolver, String phoneNumber, long callDate) { + //使用ContentResover对象来查询数据,并返回Cursor对象 + Cursor cursor = resolver.query(Notes.CONTENT_DATA_URI,//查询Note id字段 + new String [] { CallNote.NOTE_ID },//通过童话日期,电话号码扽给查询 + CallNote.CALL_DATE + "=? AND " + CallNote.MIME_TYPE + "=? AND PHONE_NUMBERS_EQUAL(" + + CallNote.PHONE_NUMBER + ",?)",//传入查询参数 + new String [] { String.valueOf(callDate), CallNote.CONTENT_ITEM_TYPE, phoneNumber }, + null); + + if (cursor != null) { + if (cursor.moveToFirst()) { + try { + return cursor.getLong(0); + } catch (IndexOutOfBoundsException e) { + Log.e(TAG, "Get call note id fails " + e.toString()); + } + } + cursor.close(); + } + return 0; + } + + public static String getSnippetById(ContentResolver resolver, long noteId) {//使用ContentResovler对象查询数据,返回Cursor对象 + Cursor cursor = resolver.query(Notes.CONTENT_NOTE_URI,//查询snippet字段 + new String [] { NoteColumns.SNIPPET }, + NoteColumns.ID + "=?", + new String [] { String.valueOf(noteId)}, + null); + + if (cursor != null) { + String snippet = ""; + if (cursor.moveToFirst()) {//获取查询结果中第0列的值,即snippet字段值 + snippet = cursor.getString(0); + } + cursor.close(); + return snippet; + } + throw new IllegalArgumentException("Note is not found with id: " + noteId); + }//通过noteld获取信息,返回字符串 + + public static String getFormattedSnippet(String snippet) { + if (snippet != null) { + snippet = snippet.trim(); + int index = snippet.indexOf('\n'); + if (index != -1) { + snippet = snippet.substring(0, index); + } + } + return snippet; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/FontColorParser.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/FontColorParser.java new file mode 100644 index 0000000..9954a99 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/FontColorParser.java @@ -0,0 +1,41 @@ +package net.micode.notes.tool; + +import android.content.Context; +import android.preference.PreferenceManager; + +import net.micode.notes.R; +import net.micode.notes.ui.NotesPreferenceActivity; + +//字体颜色列举 +public class FontColorParser { + public static final int Default = 0; + public static final int Bright_blue = 1; + public static final int red = 2; + public static final int green =3; + public static final int Font_color_default = Default; + + public static class TextAppearanceResources { + private final static int[] TEXTAPPEARANCE_RESOURCES = new int[]{ + R.style.TextColorDefault, + R.style.TextColorBrightBlue, + R.style.TextColorRed, + R.style.TextColorGreen + + }; + //返回默认字体颜色id + public static int getTexAppearanceResource(int id) { + if (id >= TEXTAPPEARANCE_RESOURCES.length) { + return Font_color_default; + } + return TEXTAPPEARANCE_RESOURCES[id]; + } + //获取所需id + public static int getResourceSize() + { + return TEXTAPPEARANCE_RESOURCES.length; + } + } + public static int getDefaultTxtId(Context context) { + return Font_color_default; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/GTaskStringUtils.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/GTaskStringUtils.java new file mode 100644 index 0000000..d5dabb0 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/GTaskStringUtils.java @@ -0,0 +1,113 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.tool; + +public class GTaskStringUtils { + + public final static String GTASK_JSON_ACTION_ID = "action_id";//定义字符串常量,在类的外部直接访问,表示"action_id"的字符串键名 + + public final static String GTASK_JSON_ACTION_LIST = "action_list";//定义字符串常量,在类的外部直接访问,表示"action_list的字符串键名 + + public final static String GTASK_JSON_ACTION_TYPE = "action_type";//定义字符串常量,在类的外部直接访问,表示action_type的字符串键名 + + public final static String GTASK_JSON_ACTION_TYPE_CREATE = "create";//定义字符串常量,在类的外部直接访问,表示create的字符串键名 + + public final static String GTASK_JSON_ACTION_TYPE_GETALL = "get_all";//定义字符串常量,在类的外部直接访问,表示get_all的字符串键名 + + public final static String GTASK_JSON_ACTION_TYPE_MOVE = "move";//定义字符串常量,在类的外部直接访问,表示"move的字符串键名 + + public final static String GTASK_JSON_ACTION_TYPE_UPDATE = "update";//定义字符串常量,在类的外部直接访问,表示update的字符串键名 + + public final static String GTASK_JSON_CREATOR_ID = "creator_id";//定义字符串常量,在类的外部直接访问,表示creator_id的字符串键名 + + public final static String GTASK_JSON_CHILD_ENTITY = "child_entity";//定义字符串常量,在类的外部直接访问,表示child_entity的字符串键名 + + public final static String GTASK_JSON_CLIENT_VERSION = "client_version";//定义字符串常量,在类的外部直接访问,表示client_version的字符串键名 + + public final static String GTASK_JSON_COMPLETED = "completed";//定义字符串常量,在类的外部直接访问,表示completed的字符串键名 + + public final static String GTASK_JSON_CURRENT_LIST_ID = "current_list_id"; + //定义字符串常量,在类的外部直接访问,表示current_list_id的字符串键名 + public final static String GTASK_JSON_DEFAULT_LIST_ID = "default_list_id";//定义字符串常量,在类的外部直接访问,表示default_list_id的字符串键名 + + public final static String GTASK_JSON_DELETED = "deleted";//定义字符串常量,在类的外部直接访问,表示deleted的字符串键名 + + public final static String GTASK_JSON_DEST_LIST = "dest_list";//定义字符串常量,在类的外部直接访问,表示dest_list的字符串键名 + + public final static String GTASK_JSON_DEST_PARENT = "dest_parent";//定义字符串常量,在类的外部直接访问,表示dest_parent的字符串键名 + + public final static String GTASK_JSON_DEST_PARENT_TYPE = "dest_parent_type";//定义字符串常量,在类的外部直接访问,表示dest_parent_type的字符串键名 + + public final static String GTASK_JSON_ENTITY_DELTA = "entity_delta";//定义字符串常量,在类的外部直接访问,表示entity_delta的字符串键名 + + public final static String GTASK_JSON_ENTITY_TYPE = "entity_type";//定义字符串常量,在类的外部直接访问,表示entity_type的字符串键名 + + public final static String GTASK_JSON_GET_DELETED = "get_deleted"; + //定义字符串常量,在类的外部直接访问,表示get_deleted的字符串键名 + public final static String GTASK_JSON_ID = "id";//定义字符串常量,在类的外部直接访问,表示id的字符串键名 + + public final static String GTASK_JSON_INDEX = "index";//定义字符串常量,在类的外部直接访问,表示index的字符串键名 + + public final static String GTASK_JSON_LAST_MODIFIED = "last_modified";//定义字符串常量,在类的外部直接访问,表示last_modified的字符串键名 + + public final static String GTASK_JSON_LATEST_SYNC_POINT = "latest_sync_point";//定义字符串常量,在类的外部直接访问,表示latest_sync_point的字符串键名 + + public final static String GTASK_JSON_LIST_ID = "list_id";//定义字符串常量,在类的外部直接访问,表示list_id的字符串键名 + + public final static String GTASK_JSON_LISTS = "lists";//定义字符串常量,在类的外部直接访问,表示lists的字符串键名 + + public final static String GTASK_JSON_NAME = "name";//定义字符串常量,在类的外部直接访问,表示name的字符串键名 + + public final static String GTASK_JSON_NEW_ID = "new_id"; + //定义字符串常量,在类的外部直接访问,表示new_id的字符串键名 + public final static String GTASK_JSON_NOTES = "notes";//定义字符串常量,在类的外部直接访问,表示notes的字符串键名 + + public final static String GTASK_JSON_PARENT_ID = "parent_id";//定义字符串常量,在类的外部直接访问,表示parent_id的字符串键名 + + public final static String GTASK_JSON_PRIOR_SIBLING_ID = "prior_sibling_id";//定义字符串常量,在类的外部直接访问,表示prior_sibling_id的字符串键名 + + public final static String GTASK_JSON_RESULTS = "results";//定义字符串常量,在类的外部直接访问,表示results的字符串键名 + + public final static String GTASK_JSON_SOURCE_LIST = "source_list"; + + public final static String GTASK_JSON_TASKS = "tasks";//定义字符串常量,在类的外部直接访问,表示tasks的字符串键名 + + public final static String GTASK_JSON_TYPE = "type";//定义字符串常量,在类的外部直接访问,表示type的字符串键名 + + public final static String GTASK_JSON_TYPE_GROUP = "GROUP";//定义字符串常量,在类的外部直接访问,表示GROUP的字符串键名 + + public final static String GTASK_JSON_TYPE_TASK = "TASK";//定义字符串常量,在类的外部直接访问,表示TASK的字符串键名 + + public final static String GTASK_JSON_USER = "user";//定义字符串常量,在类的外部直接访问,表示user的字符串键名 + + public final static String MIUI_FOLDER_PREFFIX = "[MIUI_Notes]";//定义字符串常量,在类的外部直接访问,表示MIUI_Notes的字符串键名 + + public final static String FOLDER_DEFAULT = "Default";//定义字符串常量,在类的外部直接访问,表示Default的字符串键名 + + public final static String FOLDER_CALL_NOTE = "Call_Note";//定义字符串常量,在类的外部直接访问,表示Call_Note的字符串键名 + + public final static String FOLDER_META = "METADATA";//定义字符串常量,在类的外部直接访问,表示METADATA的字符串键名 + + public final static String META_HEAD_GTASK_ID = "meta_gid";//定义字符串常量,在类的外部直接访问,表示meta_gid的字符串键名 + + public final static String META_HEAD_NOTE = "meta_note";//定义字符串常量,在类的外部直接访问,表示meta_note的字符串键名 + + public final static String META_HEAD_DATA = "meta_data";//定义字符串常量,在类的外部直接访问,表示meta_data的字符串键名 + + public final static String META_NOTE_NAME = "[META INFO] DON'T UPDATE AND DELETE";//定义字符串常量,在类的外部直接访问,表示[META INFO] DON'T UPDATE AND DELETE的字符串键名 + +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/ResourceParser.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/ResourceParser.java new file mode 100644 index 0000000..86fab8f --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/tool/ResourceParser.java @@ -0,0 +1,178 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.tool; + +import android.content.Context; +import android.preference.PreferenceManager; + +import net.micode.notes.R; +import net.micode.notes.ui.NotesPreferenceActivity; + +public class ResourceParser { +//定义常量,用于表示颜色和字体大小 + public static final int YELLOW = 0;//黄色 + public static final int BLUE = 1;//蓝 + public static final int WHITE = 2;//bai + public static final int GREEN = 3; + public static final int RED = 4; + + public static final int BG_DEFAULT_COLOR = YELLOW;//默认背景颜色为黄色 + + public static final int TEXT_SMALL = 0;//字体小号 + public static final int TEXT_MEDIUM = 1;//中 + public static final int TEXT_LARGE = 2;//da + public static final int TEXT_SUPER = 3;//chaoda + + public static final int BG_DEFAULT_FONT_SIZE = TEXT_MEDIUM;//默认大小为中 + + public static class NoteBgResources { + private final static int [] BG_EDIT_RESOURCES = new int [] { + R.drawable.edit_yellow, + R.drawable.edit_blue, + R.drawable.edit_white, + R.drawable.edit_green, + R.drawable.edit_red + };//定义私有静态常量G_EDIT_RESOURCES ,用于储存图片资源id + + private final static int [] BG_EDIT_TITLE_RESOURCES = new int [] { + R.drawable.edit_title_yellow, + R.drawable.edit_title_blue, + R.drawable.edit_title_white, + R.drawable.edit_title_green, + R.drawable.edit_title_red + };//定义另一个私有静态常量,用于储存笔记编辑页面标题背景资源id + + public static int getNoteBgResource(int id) { + return BG_EDIT_RESOURCES[id]; + } + + public static int getNoteTitleBgResource(int id) { + return BG_EDIT_TITLE_RESOURCES[id]; + } + }//初始化编辑页面标题背景资源id + + public static int getDefaultBgId(Context context) {//获取应用配置信息,判断用户是否自定义背景颜色 + if (PreferenceManager.getDefaultSharedPreferences(context).getBoolean( + NotesPreferenceActivity.PREFERENCE_SET_BG_COLOR_KEY, false)) { + return (int) (Math.random() * NoteBgResources.BG_EDIT_RESOURCES.length); + } else { + return BG_DEFAULT_COLOR;//若没有定义,返回默认颜色白色 + } + } + + public static class NoteItemBgResources { + private final static int [] BG_FIRST_RESOURCES = new int [] {//定义final整型数组 BG_FIRST_RESOURCES + R.drawable.list_yellow_up,//黄色背景上边框图案id + R.drawable.list_blue_up,//蓝色背景上边框图案id + R.drawable.list_white_up,//白色背景边框图案id + R.drawable.list_green_up,//绿色背景边框图案id + R.drawable.list_red_up//红色背景边框图案id + }; + + private final static int [] BG_NORMAL_RESOURCES = new int [] { + R.drawable.list_yellow_middle,//黄色背景中间边框图案id + R.drawable.list_blue_middle,//蓝色背景中间边框图案id + R.drawable.list_white_middle,//白色背景中间边框图案id + R.drawable.list_green_middle,//绿色背景中间边框图案id + R.drawable.list_red_middle//红色背景中间边框图案id + }; + + private final static int [] BG_LAST_RESOURCES = new int [] { + R.drawable.list_yellow_down,//黄色背景中下间边框图案id + R.drawable.list_blue_down,//蓝色背景中下间边框图案id + R.drawable.list_white_down,//白色背景中下间边框图案id + R.drawable.list_green_down,//绿色背景中下间边框图案id + R.drawable.list_red_down,//红色背景中下间边框图案id + }; + + private final static int [] BG_SINGLE_RESOURCES = new int [] { + R.drawable.list_yellow_single, + R.drawable.list_blue_single, + R.drawable.list_white_single, + R.drawable.list_green_single, + R.drawable.list_red_single + }; + + public static int getNoteBgFirstRes(int id) { + return BG_FIRST_RESOURCES[id]; + } +//定义getNoteBgFirstRes方法,用于返回G_FIRST_RESOURCES[id] + public static int getNoteBgLastRes(int id) { + return BG_LAST_RESOURCES[id]; + } +//定义getNoteBgLastRes方法,用于返回 BG_LAST_RESOURCES[id] + public static int getNoteBgSingleRes(int id) { + return BG_SINGLE_RESOURCES[id]; + } + //定义getNoteBgSingleRes方法,用于返回BG_SINGLE_RESOURCES[id] + public static int getNoteBgNormalRes(int id) { + return BG_NORMAL_RESOURCES[id]; + } + //定义etNoteBgNormalRes方法,用于返回BG_NORMAL_RESOURCES[id] + public static int getFolderBgRes() {return R.drawable.list_folder;}//定义getFolderBgRes方法,用于返回 R.drawable.list_folder + } + + public static class WidgetBgResources {//定义静态内部类WidgetBgResources + private final static int [] BG_2X_RESOURCES = new int [] { + R.drawable.widget_2x_yellow, + R.drawable.widget_2x_blue, + R.drawable.widget_2x_white, + R.drawable.widget_2x_green, + R.drawable.widget_2x_red, + };// 管理小部件2x2格式不同颜色资源图片 + public static int getWidget2xBgResource(int id) { + return BG_2X_RESOURCES[id]; + } + + private final static int [] BG_4X_RESOURCES = new int [] { + R.drawable.widget_4x_yellow, + R.drawable.widget_4x_blue, + R.drawable.widget_4x_white, + R.drawable.widget_4x_green, + R.drawable.widget_4x_red + };// 管理小部件4x4格式不同颜色资源图片 + + public static int getWidget4xBgResource(int id) { + return BG_4X_RESOURCES[id]; + } + } + + public static class TextAppearanceResources {//定义TextAppearanceResources 静态内部类 + private final static int [] TEXTAPPEARANCE_RESOURCES = new int [] { + R.style.TextAppearanceNormal, + R.style.TextAppearanceMedium, + R.style.TextAppearanceLarge, + R.style.TextAppearanceSuper + };//分别对应中等,大号,超大的文本外观样式 + + public static int getTexAppearanceResource(int id) { + /** + * HACKME: Fix bug of store the resource id in shared preference. + * The id may larger than the length of resources, in this case, + * return the {@link ResourceParser#BG_DEFAULT_FONT_SIZE} + */ + if (id >= TEXTAPPEARANCE_RESOURCES.length) { + return BG_DEFAULT_FONT_SIZE; + } + return TEXTAPPEARANCE_RESOURCES[id]; + } + + public static int getResourcesSize() { + return TEXTAPPEARANCE_RESOURCES.length; + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java new file mode 100644 index 0000000..75de484 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java @@ -0,0 +1,201 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.app.Activity; +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.DialogInterface.OnClickListener; +import android.content.DialogInterface.OnDismissListener; +import android.content.Intent; +import android.media.AudioManager; +import android.media.MediaPlayer; +import android.media.RingtoneManager; +import android.net.Uri; +import android.os.Bundle; +import android.os.PowerManager; +import android.provider.Settings; +import android.view.Window; +import android.view.WindowManager; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.tool.DataUtils; + +import java.io.IOException; + + +public class AlarmAlertActivity extends Activity implements OnClickListener, OnDismissListener { + private long mNoteId; //用于存储笔记Id + private String mSnippet; //用于存储笔记内容摘要 + private static final int SNIPPET_PREW_MAX_LEN = 60;//限制笔记长度 + MediaPlayer mPlayer; + + + //onCreate() 函数在 Activity 初始化时调用,用于初始化 + //savedInstanceState 该参数用于恢复 Activity 状态。 + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + + //界面显示:无标题 + requestWindowFeature(Window.FEATURE_NO_TITLE); + + //获取 Window 对象,添加 FLAG_SHOW_WHEN_LOCKED 标记 + final Window win = getWindow(); + win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); + + //如果屏幕没亮,添加一系列 屏幕唤醒标记 + if (!isScreenOn()) { + win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON //保持窗口常亮 + | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON //点亮窗口 + | WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON //允许在窗口点亮时锁屏 + | WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR); + } + + //获取Intent对象 + Intent intent = getIntent(); + + //从Intent对象中获取笔记的 Id 和内容 + try { + mNoteId = Long.valueOf(intent.getData().getPathSegments().get(1)); + + //根据便签Id从数据库中获取便签内容 + //getContentResolver() 实现数据共享,实例存储 + mSnippet = DataUtils.getSnippetById(this.getContentResolver(), mNoteId); + mSnippet = mSnippet.length() > SNIPPET_PREW_MAX_LEN ? mSnippet.substring(0, + SNIPPET_PREW_MAX_LEN) + getResources().getString(R.string.notelist_string_info) + : mSnippet; + } catch (IllegalArgumentException e) { + e.printStackTrace(); + return; + } + + //创建 MediaPlayer 对象,根据笔记是否存在数据库中来展示操作对话框或者直接退出 + mPlayer = new MediaPlayer(); + if (DataUtils.visibleInNoteDatabase(getContentResolver(), mNoteId, Notes.TYPE_NOTE)) { + showActionDialog(); + playAlarmSound(); + } else { + finish(); + } + } + + //用于判断屏幕是否被唤醒(亮着) + private boolean isScreenOn() { + PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); + return pm.isScreenOn(); + } + + //用于实现报警铃声的播放 + private void playAlarmSound() { + //获取系统默认的铃声 + Uri url = RingtoneManager.getActualDefaultRingtoneUri(this, RingtoneManager.TYPE_ALARM); + + //获取静音模式下允许响铃的类型 + int silentModeStreams = Settings.System.getInt(getContentResolver(), + Settings.System.MODE_RINGER_STREAMS_AFFECTED, 0); + + //判断闹钟铃声是否被静音模式影响 + //若被影响则设置播放音频类型为允许响铃的类型 + //若违背影响则设置音频为默认类型 + if ((silentModeStreams & (1 << AudioManager.STREAM_ALARM)) != 0) { + mPlayer.setAudioStreamType(silentModeStreams); + } else { + mPlayer.setAudioStreamType(AudioManager.STREAM_ALARM); + } + try { + mPlayer.setDataSource(this, url); //设置报警铃声 + mPlayer.prepare(); //准备同步 + mPlayer.setLooping(true); //设置循环播放 + mPlayer.start(); //开始播放 + } catch (IllegalArgumentException e) { + // TODO Auto-generated catch block + + //以下的 e.printStackTrace() 函数功能是抛出异常,还将显示出更深的调用信息 + e.printStackTrace(); + } catch (SecurityException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IllegalStateException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + + //创建一个对话框,标题为app的名字,内容为mSnippet,确定按钮为notealert_ok, + // 当屏幕开启时,取消按钮为notealert_enter,点击弹出框外部可以隐藏弹出框 + private void showActionDialog() { + AlertDialog.Builder dialog = new AlertDialog.Builder(this); + //为对话框设置标题 + dialog.setTitle(R.string.app_name); + //为对话框设置内容 + dialog.setMessage(mSnippet); + //给对话框添加“OK”按钮 + dialog.setPositiveButton(R.string.notealert_ok, this); + + if (isScreenOn()) { + //给对话框添加“CANCEL”按钮 + dialog.setNegativeButton(R.string.notealert_enter, this); + } + //给对话框设置监听器 + dialog.show().setOnDismissListener(this); + } + + //当对话框界面内某个按钮被点击时调用以下方法 + // 接收 对话框界面 和 点击的按钮位置which 为参数 + public void onClick(DialogInterface dialog, int which) { + //switch语句,根据按钮位置的不同,执行不同的操作 + switch (which) { + //当点击点击的是返回按键 + case DialogInterface.BUTTON_NEGATIVE: + //将编辑的便签内容传输到特定类中 + Intent intent = new Intent(this, NoteEditActivity.class); + //设置操作属性 + intent.setAction(Intent.ACTION_VIEW); + //创建一个特定的Note Id传输给便签 + intent.putExtra(Intent.EXTRA_UID, mNoteId); + //开始操作 + startActivity(intent); + break; + //如果是其他按钮被点击则不执行任何操作 + default: + break; + } + } + + public void onDismiss(DialogInterface dialog) { + //终止报警声音 + stopAlarmSound(); + //完成动作 + finish(); + } + + private void stopAlarmSound() { + if (mPlayer != null) { + mPlayer.stop(); + mPlayer.release(); + //释放 MediaPlayer(媒体播放器)对象 + mPlayer = null; + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java new file mode 100644 index 0000000..edd2b85 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java @@ -0,0 +1,74 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.app.AlarmManager; +import android.app.PendingIntent; +import android.content.BroadcastReceiver; +import android.content.ContentUris; +import android.content.Context; +import android.content.Intent; +import android.database.Cursor; + +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; + + +//定时向用户推送闹钟提醒 +public class AlarmInitReceiver extends BroadcastReceiver { + + //对数据库的操作,调用笔记Id和时钟时间 + private static final String [] PROJECTION = new String [] { + NoteColumns.ID, + NoteColumns.ALERTED_DATE + }; + + private static final int COLUMN_ID = 0; + private static final int COLUMN_ALERTED_DATE = 1; + + //重写 BroadcastReceiver 的 onReceive 方法 + @Override + public void onReceive(Context context, Intent intent) { + + //获取当前系统时间 + long currentDate = System.currentTimeMillis(); + + //查询数据库,找出大于当前系统时间、类型相等的笔记的记录 + Cursor c = context.getContentResolver().query(Notes.CONTENT_NOTE_URI, + PROJECTION, + NoteColumns.ALERTED_DATE + ">? AND " + NoteColumns.TYPE + "=" + Notes.TYPE_NOTE, + new String[] { String.valueOf(currentDate) }, + null); + + //当查询结果不为空时 + if (c != null) { + // 如果有符合要求的记录,就遍历每一条记录 + if (c.moveToFirst()) { + do { + long alertDate = c.getLong(COLUMN_ALERTED_DATE); + Intent sender = new Intent(context, AlarmReceiver.class); + sender.setData(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, c.getLong(COLUMN_ID))); + PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, sender, 0); + AlarmManager alermManager = (AlarmManager) context + .getSystemService(Context.ALARM_SERVICE); + alermManager.set(AlarmManager.RTC_WAKEUP, alertDate, pendingIntent); + } while (c.moveToNext()); + } + c.close(); + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java new file mode 100644 index 0000000..1b4d096 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.BroadcastReceiver; +import android.content.Context; +import android.content.Intent; + +public class AlarmReceiver extends BroadcastReceiver { + @Override + public void onReceive(Context context, Intent intent) { + intent.setClass(context, AlarmAlertActivity.class); + + //为intent对象添加一个标志,表示它将启动一个新的任务栈 + intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); + context.startActivity(intent); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DateTimePicker.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DateTimePicker.java new file mode 100644 index 0000000..ab88e69 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DateTimePicker.java @@ -0,0 +1,538 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import java.text.DateFormatSymbols; +import java.util.Calendar; + +import net.micode.notes.R; + + +import android.content.Context; +import android.text.format.DateFormat; +import android.view.View; +import android.widget.FrameLayout; +import android.widget.NumberPicker; + +public class DateTimePicker extends FrameLayout { + + //初始化控件 + private static final boolean DEFAULT_ENABLE_STATE = true; + + private static final int HOURS_IN_HALF_DAY = 12; + private static final int HOURS_IN_ALL_DAY = 24; + private static final int DAYS_IN_ALL_WEEK = 7; + private static final int DATE_SPINNER_MIN_VAL = 0; + private static final int DATE_SPINNER_MAX_VAL = DAYS_IN_ALL_WEEK - 1; + private static final int HOUR_SPINNER_MIN_VAL_24_HOUR_VIEW = 0; + private static final int HOUR_SPINNER_MAX_VAL_24_HOUR_VIEW = 23; + private static final int HOUR_SPINNER_MIN_VAL_12_HOUR_VIEW = 1; + private static final int HOUR_SPINNER_MAX_VAL_12_HOUR_VIEW = 12; + private static final int MINUT_SPINNER_MIN_VAL = 0; + private static final int MINUT_SPINNER_MAX_VAL = 59; + private static final int AMPM_SPINNER_MIN_VAL = 0; + private static final int AMPM_SPINNER_MAX_VAL = 1; + + //设置闹钟的变量 + private final NumberPicker mDateSpinner; + private final NumberPicker mHourSpinner; + private final NumberPicker mMinuteSpinner; + private final NumberPicker mAmPmSpinner; + private Calendar mDate; //用于操作时间 + + private String[] mDateDisplayValues = new String[DAYS_IN_ALL_WEEK]; + + private boolean mIsAm; + + private boolean mIs24HourView; + + private boolean mIsEnabled = DEFAULT_ENABLE_STATE; + + private boolean mInitialising; + + private OnDateTimeChangedListener mOnDateTimeChangedListener; + + /* + 设置时间选择器的监听器, + 包括了日期选择器的监听器 mOnDateChangedListener, + 小时选择器的监听器 mOnHourChangedListener, + 分钟选择器的监听器mOnMinuteChangedListener, + 上午和下午选择器的监听器 mOnAmPmChangedListener + + */ + + + //日期选择器的监听器 + private NumberPicker.OnValueChangeListener mOnDateChangedListener = new NumberPicker.OnValueChangeListener() { + + //将目前的日期传给 mDate,updateDateControl是同步操作 + @Override + public void onValueChange(NumberPicker picker, int oldVal, int newVal) { + mDate.add(Calendar.DAY_OF_YEAR, newVal - oldVal); + updateDateControl(); + onDateTimeChanged(); + } + }; + + //选择器的监听器 + private NumberPicker.OnValueChangeListener mOnHourChangedListener = new NumberPicker.OnValueChangeListener() { + + @Override + public void onValueChange(NumberPicker picker, int oldVal, int newVal) { + boolean isDateChanged = false; + Calendar cal = Calendar.getInstance(); + if (!mIs24HourView) { + + //这里是对于12小时制时,晚上11点和12点交替时对日期的更改 + if (!mIsAm && oldVal == HOURS_IN_HALF_DAY - 1 && newVal == HOURS_IN_HALF_DAY) { + cal.setTimeInMillis(mDate.getTimeInMillis()); + cal.add(Calendar.DAY_OF_YEAR, 1); + isDateChanged = true; + } + + //这里是对于12小时制时,凌晨11点和12点交替时对日期的更改 + else if (mIsAm && oldVal == HOURS_IN_HALF_DAY && newVal == HOURS_IN_HALF_DAY - 1) { + cal.setTimeInMillis(mDate.getTimeInMillis()); + cal.add(Calendar.DAY_OF_YEAR, -1); + isDateChanged = true; + } + + //这里是对于12小时制时,中午11点和12点交替时对AM和PM的更改 + if (oldVal == HOURS_IN_HALF_DAY - 1 && newVal == HOURS_IN_HALF_DAY || + oldVal == HOURS_IN_HALF_DAY && newVal == HOURS_IN_HALF_DAY - 1) { + mIsAm = !mIsAm; + updateAmPmControl(); + } + } else { + + //这里是对于24小时制时,晚上11点和12点交替时对日期的更改 + if (oldVal == HOURS_IN_ALL_DAY - 1 && newVal == 0) { + cal.setTimeInMillis(mDate.getTimeInMillis()); + cal.add(Calendar.DAY_OF_YEAR, 1); + isDateChanged = true; + } + + //这里是对于24小时制时,凌晨11点和12点交替时对日期的更改 + else if (oldVal == 0 && newVal == HOURS_IN_ALL_DAY - 1) { + cal.setTimeInMillis(mDate.getTimeInMillis()); + cal.add(Calendar.DAY_OF_YEAR, -1); + isDateChanged = true; + } + } + + //用数字选择器给 newHour 赋值 + int newHour = mHourSpinner.getValue() % HOURS_IN_HALF_DAY + (mIsAm ? 0 : HOURS_IN_HALF_DAY); + + //将新的Hour值传给mDate + mDate.set(Calendar.HOUR_OF_DAY, newHour); + + onDateTimeChanged(); + if (isDateChanged) { + setCurrentYear(cal.get(Calendar.YEAR)); + setCurrentMonth(cal.get(Calendar.MONTH)); + setCurrentDay(cal.get(Calendar.DAY_OF_MONTH)); + } + } + }; + + //分钟选择器的监听器 + private NumberPicker.OnValueChangeListener mOnMinuteChangedListener = new NumberPicker.OnValueChangeListener() { + @Override + public void onValueChange(NumberPicker picker, int oldVal, int newVal) { + int minValue = mMinuteSpinner.getMinValue(); + int maxValue = mMinuteSpinner.getMaxValue(); + int offset = 0; //设置一个小时改变的记录数据 + if (oldVal == maxValue && newVal == minValue) { + offset += 1; + } else if (oldVal == minValue && newVal == maxValue) { + offset -= 1; + } + if (offset != 0) { + mDate.add(Calendar.HOUR_OF_DAY, offset); + mHourSpinner.setValue(getCurrentHour()); + updateDateControl(); + int newHour = getCurrentHourOfDay(); + if (newHour >= HOURS_IN_HALF_DAY) { + mIsAm = false; + updateAmPmControl(); + } else { + mIsAm = true; + updateAmPmControl(); + } + } + mDate.set(Calendar.MINUTE, newVal); + onDateTimeChanged(); + } + }; + + // 上午和下午选择器的监听器 + private NumberPicker.OnValueChangeListener mOnAmPmChangedListener = new NumberPicker.OnValueChangeListener() { + @Override + public void onValueChange(NumberPicker picker, int oldVal, int newVal) { + mIsAm = !mIsAm; + if (mIsAm) { + mDate.add(Calendar.HOUR_OF_DAY, -HOURS_IN_HALF_DAY); + } else { + mDate.add(Calendar.HOUR_OF_DAY, HOURS_IN_HALF_DAY); + } + updateAmPmControl(); + onDateTimeChanged(); + } + }; + + public interface OnDateTimeChangedListener { + void onDateTimeChanged(DateTimePicker view, int year, int month, + int dayOfMonth, int hourOfDay, int minute); + } + + // 通过对数据库的访问,获取当前系统时间 + public DateTimePicker(Context context) { + this(context, System.currentTimeMillis()); + } + + // 获得一个天文数字(1970年至今的秒数),需要DateFormat将其变得有意义 + public DateTimePicker(Context context, long date) { + this(context, date, DateFormat.is24HourFormat(context)); + } + + public DateTimePicker(Context context, long date, boolean is24HourView) { + super(context);//获取系统时间 + mDate = Calendar.getInstance(); + mInitialising = true; + mIsAm = getCurrentHourOfDay() >= HOURS_IN_HALF_DAY; + + //在控件中填充R.layout.datetime_picker布局 + inflate(context, R.layout.datetime_picker, this); + + //获取年月日Spinner,设置最小值和最大值,设置值改变监听 + mDateSpinner = (NumberPicker) findViewById(R.id.date); + mDateSpinner.setMinValue(DATE_SPINNER_MIN_VAL); + mDateSpinner.setMaxValue(DATE_SPINNER_MAX_VAL); + mDateSpinner.setOnValueChangedListener(mOnDateChangedListener); + + // 获取时Spinner,设置值改变监听 + mHourSpinner = (NumberPicker) findViewById(R.id.hour); + mHourSpinner.setOnValueChangedListener(mOnHourChangedListener); + + // 获取分Spinner,设置最小值、最大值、长按更新间隔和值改变监听 + mMinuteSpinner = (NumberPicker) findViewById(R.id.minute); + mMinuteSpinner.setMinValue(MINUT_SPINNER_MIN_VAL); + mMinuteSpinner.setMaxValue(MINUT_SPINNER_MAX_VAL); + mMinuteSpinner.setOnLongPressUpdateInterval(100); + mMinuteSpinner.setOnValueChangedListener(mOnMinuteChangedListener); + + // 获取上午/下午Spinner,设置最小值、最大值、显示值和值改变监听 + String[] stringsForAmPm = new DateFormatSymbols().getAmPmStrings(); + mAmPmSpinner = (NumberPicker) findViewById(R.id.amPm); + mAmPmSpinner.setMinValue(AMPM_SPINNER_MIN_VAL); + mAmPmSpinner.setMaxValue(AMPM_SPINNER_MAX_VAL); + mAmPmSpinner.setDisplayedValues(stringsForAmPm); + mAmPmSpinner.setOnValueChangedListener(mOnAmPmChangedListener); + + // update controls to initial state + updateDateControl(); + updateHourControl(); + updateAmPmControl(); + + set24HourView(is24HourView); + + // set to current time + setCurrentDate(date); + + setEnabled(isEnabled()); + + // set the content descriptions + mInitialising = false; + } + + // 设置控件及其子控件的可用状态 + @Override + public void setEnabled(boolean enabled) { + + // 如果mIsEnabled变量与传入的enabled相同,则不进行操作, + // 否则将控件及其子控件的可用状态更新为enabled并更新mIsEnabled变量。 + if (mIsEnabled == enabled) { + return; + } + super.setEnabled(enabled); + mDateSpinner.setEnabled(enabled); + mMinuteSpinner.setEnabled(enabled); + mHourSpinner.setEnabled(enabled); + mAmPmSpinner.setEnabled(enabled); + mIsEnabled = enabled; + } + + @Override + public boolean isEnabled() { + return mIsEnabled; + } + + /** + * Get the current date in millis + * + * @return the current date in millis + */ + public long getCurrentDateInTimeMillis() { + return mDate.getTimeInMillis(); + } + + /** + * Set the current date + * + * @param date The current date in millis + */ + public void setCurrentDate(long date) { + Calendar cal = Calendar.getInstance(); + cal.setTimeInMillis(date); + setCurrentDate(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), + cal.get(Calendar.HOUR_OF_DAY), cal.get(Calendar.MINUTE)); + } + + /** + * Set the current date + * + * @param year The current year + * @param month The current month + * @param dayOfMonth The current dayOfMonth + * @param hourOfDay The current hourOfDay + * @param minute The current minute + */ + public void setCurrentDate(int year, int month, + int dayOfMonth, int hourOfDay, int minute) { + setCurrentYear(year); + setCurrentMonth(month); + setCurrentDay(dayOfMonth); + setCurrentHour(hourOfDay); + setCurrentMinute(minute); + } + + /** + * Get current year + * + * @return The current year + */ + public int getCurrentYear() { + return mDate.get(Calendar.YEAR); + } + + /** + * Set current year + * + * @param year The current year + */ + public void setCurrentYear(int year) { + if (!mInitialising && year == getCurrentYear()) { + return; + } + mDate.set(Calendar.YEAR, year); + updateDateControl(); + onDateTimeChanged(); + } + + /** + * Get current month in the year + * + * @return The current month in the year + */ + public int getCurrentMonth() { + return mDate.get(Calendar.MONTH); + } + + /** + * Set current month in the year + * + * @param month The month in the year + */ + public void setCurrentMonth(int month) { + if (!mInitialising && month == getCurrentMonth()) { + return; + } + mDate.set(Calendar.MONTH, month); + updateDateControl(); + onDateTimeChanged(); + } + + /** + * Get current day of the month + * + * @return The day of the month + */ + public int getCurrentDay() { + return mDate.get(Calendar.DAY_OF_MONTH); + } + + /** + * Set current day of the month + * + * @param dayOfMonth The day of the month + */ + public void setCurrentDay(int dayOfMonth) { + if (!mInitialising && dayOfMonth == getCurrentDay()) { + return; + } + mDate.set(Calendar.DAY_OF_MONTH, dayOfMonth); + updateDateControl(); + onDateTimeChanged(); + } + + /** + * Get current hour in 24 hour mode, in the range (0~23) + * @return The current hour in 24 hour mode + */ + public int getCurrentHourOfDay() { + return mDate.get(Calendar.HOUR_OF_DAY); + } + + private int getCurrentHour() { + if (mIs24HourView){ + return getCurrentHourOfDay(); + } else { + int hour = getCurrentHourOfDay(); + if (hour > HOURS_IN_HALF_DAY) { + return hour - HOURS_IN_HALF_DAY; + } else { + return hour == 0 ? HOURS_IN_HALF_DAY : hour; + } + } + } + + /** + * Set current hour in 24 hour mode, in the range (0~23) + * + * @param hourOfDay + */ + public void setCurrentHour(int hourOfDay) { + if (!mInitialising && hourOfDay == getCurrentHourOfDay()) { + return; + } + mDate.set(Calendar.HOUR_OF_DAY, hourOfDay); + if (!mIs24HourView) { + if (hourOfDay >= HOURS_IN_HALF_DAY) { + mIsAm = false; + if (hourOfDay > HOURS_IN_HALF_DAY) { + hourOfDay -= HOURS_IN_HALF_DAY; + } + } else { + mIsAm = true; + if (hourOfDay == 0) { + hourOfDay = HOURS_IN_HALF_DAY; + } + } + updateAmPmControl(); + } + mHourSpinner.setValue(hourOfDay); + onDateTimeChanged(); + } + + /** + * Get currentMinute + * + * @return The Current Minute + */ + public int getCurrentMinute() { + return mDate.get(Calendar.MINUTE); + } + + /** + * Set current minute + */ + public void setCurrentMinute(int minute) { + if (!mInitialising && minute == getCurrentMinute()) { + return; + } + mMinuteSpinner.setValue(minute); + mDate.set(Calendar.MINUTE, minute); + onDateTimeChanged(); + } + + /** + * @return true if this is in 24 hour view else false. + */ + public boolean is24HourView () { + return mIs24HourView; + } + + /** + * Set whether in 24 hour or AM/PM mode. + * + * @param is24HourView True for 24 hour mode. False for AM/PM mode. + */ + public void set24HourView(boolean is24HourView) { + if (mIs24HourView == is24HourView) { + return; + } + mIs24HourView = is24HourView; + mAmPmSpinner.setVisibility(is24HourView ? View.GONE : View.VISIBLE); + int hour = getCurrentHourOfDay(); + updateHourControl(); + setCurrentHour(hour); + updateAmPmControl(); + } + + // 更新日期控件,根据当前日期更新展示的日期列表 + private void updateDateControl() { + Calendar cal = Calendar.getInstance(); + cal.setTimeInMillis(mDate.getTimeInMillis()); + cal.add(Calendar.DAY_OF_YEAR, -DAYS_IN_ALL_WEEK / 2 - 1); + mDateSpinner.setDisplayedValues(null); + for (int i = 0; i < DAYS_IN_ALL_WEEK; ++i) { + cal.add(Calendar.DAY_OF_YEAR, 1); + mDateDisplayValues[i] = (String) DateFormat.format("MM.dd EEEE", cal); + } + mDateSpinner.setDisplayedValues(mDateDisplayValues); + mDateSpinner.setValue(DAYS_IN_ALL_WEEK / 2); + mDateSpinner.invalidate(); + } + + // 更新上午/下午控件,如果是24小时制,则隐藏此控件; + // 否则根据当前选择的时间更新展示的上午/下午选项 + private void updateAmPmControl() { + if (mIs24HourView) { + mAmPmSpinner.setVisibility(View.GONE); + } else { + int index = mIsAm ? Calendar.AM : Calendar.PM; + mAmPmSpinner.setValue(index); + mAmPmSpinner.setVisibility(View.VISIBLE); + } + } + + // 更新小时控件,根据当前选择的时间更新展示的小时选项 + private void updateHourControl() { + if (mIs24HourView) { + mHourSpinner.setMinValue(HOUR_SPINNER_MIN_VAL_24_HOUR_VIEW); + mHourSpinner.setMaxValue(HOUR_SPINNER_MAX_VAL_24_HOUR_VIEW); + } else { + mHourSpinner.setMinValue(HOUR_SPINNER_MIN_VAL_12_HOUR_VIEW); + mHourSpinner.setMaxValue(HOUR_SPINNER_MAX_VAL_12_HOUR_VIEW); + } + } + + /** + * Set the callback that indicates the 'Set' button has been pressed. + * @param callback the callback, if null will do nothing + */ + public void setOnDateTimeChangedListener(OnDateTimeChangedListener callback) { + mOnDateTimeChangedListener = callback; + } + + private void onDateTimeChanged() { + if (mOnDateTimeChangedListener != null) { + mOnDateTimeChangedListener.onDateTimeChanged(this, getCurrentYear(), + getCurrentMonth(), getCurrentDay(), getCurrentHourOfDay(), getCurrentMinute()); + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java new file mode 100644 index 0000000..be8d4ae --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java @@ -0,0 +1,114 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import java.util.Calendar; + +import net.micode.notes.R; +import net.micode.notes.ui.DateTimePicker; +import net.micode.notes.ui.DateTimePicker.OnDateTimeChangedListener; + +import android.app.AlertDialog; +import android.content.Context; +import android.content.DialogInterface; +import android.content.DialogInterface.OnClickListener; +import android.text.format.DateFormat; +import android.text.format.DateUtils; + +public class DateTimePickerDialog extends AlertDialog implements OnClickListener { + + private Calendar mDate = Calendar.getInstance();//便于时间操作 + private boolean mIs24HourView; + private OnDateTimeSetListener mOnDateTimeSetListener;//时间日期滚动控件 + private DateTimePicker mDateTimePicker;//用于设置或获取日期和时间 + + public interface OnDateTimeSetListener { + + //在选择日期后返回结果 + void OnDateTimeSet(AlertDialog dialog, long date); + } + + public DateTimePickerDialog(Context context, long date) { + super(context); + mDateTimePicker = new DateTimePicker(context); + setView(mDateTimePicker); //设置一个子视图 + + //设置一个监听器 + mDateTimePicker.setOnDateTimeChangedListener(new OnDateTimeChangedListener() { + public void onDateTimeChanged(DateTimePicker view, int year, int month, + int dayOfMonth, int hourOfDay, int minute) { + + //设置日期时间为用户选择的日期和时间 + mDate.set(Calendar.YEAR, year); + mDate.set(Calendar.MONTH, month); + mDate.set(Calendar.DAY_OF_MONTH, dayOfMonth); + mDate.set(Calendar.HOUR_OF_DAY, hourOfDay); + mDate.set(Calendar.MINUTE, minute); + + // 更新标题为选择的日期和时间 + updateTitle(mDate.getTimeInMillis()); + } + }); + + mDate.setTimeInMillis(date);// 初始化mDate对象 + mDate.set(Calendar.SECOND, 0);// 将秒数设为0 + mDateTimePicker.setCurrentDate(mDate.getTimeInMillis()); + + // 为对话框设置一个确定按钮 + setButton(context.getString(R.string.datetime_dialog_ok), this); + + // 为对话框设置一个取消按钮,传入null为点击事件处理器 + setButton2(context.getString(R.string.datetime_dialog_cancel), (OnClickListener)null); + + //根据当前的时间的时间格式设置是否使用24小时制显示时间 + set24HourView(DateFormat.is24HourFormat(this.getContext())); + updateTitle(mDate.getTimeInMillis());// 更新对话框的标题为初始日期和时间 + } + + public void set24HourView(boolean is24HourView) { + mIs24HourView = is24HourView; + } + + public void setOnDateTimeSetListener(OnDateTimeSetListener callBack) { + mOnDateTimeSetListener = callBack; + } + + private void updateTitle(long date) { + + // 定义一个标识变量,用于根据给定的日期时间更新标题栏的显示 + int flag = + DateUtils.FORMAT_SHOW_YEAR | + DateUtils.FORMAT_SHOW_DATE | + DateUtils.FORMAT_SHOW_TIME; + + // 根据用户选择的,决定是否使用24小时制 + flag |= mIs24HourView ? DateUtils.FORMAT_24HOUR : DateUtils.FORMAT_24HOUR; + + // 将日期转化为字符串,并设置标题 + setTitle(DateUtils.formatDateTime(this.getContext(), date, flag)); + } + + // 用于处理对话框的点击事件 + public void onClick(DialogInterface arg0, int arg1) { + + // 如果有日期时间设置监听器,则传递当前日期时间 + if (mOnDateTimeSetListener != null) { + mOnDateTimeSetListener.OnDateTimeSet(this, mDate.getTimeInMillis()); + } + } + +} \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DropdownMenu.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DropdownMenu.java new file mode 100644 index 0000000..0cdbfbc --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/DropdownMenu.java @@ -0,0 +1,72 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.Context; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.view.View.OnClickListener; +import android.widget.Button; +import android.widget.PopupMenu; +import android.widget.PopupMenu.OnMenuItemClickListener; + +import net.micode.notes.R; + +public class DropdownMenu { + // 定义一个按钮,用于显示和触发下拉菜单 + private Button mButton; + // 定义一个弹出菜单,用于显示菜单项 + private PopupMenu mPopupMenu; + // 定义一个菜单类,用于存储菜单项 + private Menu mMenu; + + public DropdownMenu(Context context, Button button, int menuId) { + mButton = button; + // 设置背景为下拉图标 + mButton.setBackgroundResource(R.drawable.dropdown_icon); + // 初始化弹出菜单,并绑定按钮对象 + mPopupMenu = new PopupMenu(context, mButton); + // 获取菜单对象,加载菜单资源 + mMenu = mPopupMenu.getMenu(); + mPopupMenu.getMenuInflater().inflate(menuId, mMenu); + // 设置点击监听器,点击时弹出菜单 + mButton.setOnClickListener(new OnClickListener() { + public void onClick(View v) { + mPopupMenu.show(); + } + }); + } + + // 用于设置下拉菜单点击监听器 + public void setOnDropdownMenuItemClickListener(OnMenuItemClickListener listener) { + // 如果弹出菜单不为空则为其设置监听器 + if (mPopupMenu != null) { + mPopupMenu.setOnMenuItemClickListener(listener); + } + } + + // 可根据id查找菜单项 + public MenuItem findItem(int id) { + return mMenu.findItem(id); + } + + // 用于设置按钮标题 + public void setTitle(CharSequence title) { + mButton.setText(title); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java new file mode 100644 index 0000000..930f65d --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java @@ -0,0 +1,94 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.Context; +import android.database.Cursor; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CursorAdapter; +import android.widget.LinearLayout; +import android.widget.TextView; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; + + +// 指定每个列表项的布局模板,指定Cursor中的每个字段应该绑定到那些视图上 +// 以文件夹的形式展现给用户 +public class FoldersListAdapter extends CursorAdapter { + // 指定查询时返回的列,NoteColumns是一个接口 + public static final String [] PROJECTION = { + NoteColumns.ID, + NoteColumns.SNIPPET + }; + + // 定义查询文件夹表是返回的列的索引 + public static final int ID_COLUMN = 0; + public static final int NAME_COLUMN = 1; + + // 在列表视图中显示文件夹数据 + public FoldersListAdapter(Context context, Cursor c) { + super(context, c); + // TODO Auto-generated constructor stub + } + + // 创建一个新视图,并初始化子标签 + @Override + public View newView(Context context, Cursor cursor, ViewGroup parent) { + return new FolderListItem(context); + } + + // 用于绑定视图和数据 + @Override + public void bindView(View view, Context context, Cursor cursor) { + // 判断视图对象是否为 FolderListItem 的实例 + if (view instanceof FolderListItem) { + String folderName = (cursor.getLong(ID_COLUMN) == Notes.ID_ROOT_FOLDER) ? context + .getString(R.string.menu_move_parent_folder) : cursor.getString(NAME_COLUMN); + ((FolderListItem) view).bind(folderName); + } + } + + // 获取对应文件夹名称 + public String getFolderName(Context context, int position) { + Cursor cursor = (Cursor) getItem(position); + // 根据文件夹id获取文件夹的名称 + return (cursor.getLong(ID_COLUMN) == Notes.ID_ROOT_FOLDER) ? context + .getString(R.string.menu_move_parent_folder) : cursor.getString(NAME_COLUMN); + } + + // 用于显示文件夹名称 + private class FolderListItem extends LinearLayout { + private TextView mName; + + public FolderListItem(Context context) { + super(context); + // 将布局文件加载到当前视图 + inflate(context, R.layout.folder_list_item, this); + // 将获取到的TextView对象赋值给mName + mName = (TextView) findViewById(R.id.tv_folder_name); + } + + // 将给定的名称设置到mName中 + public void bind(String name) { + mName.setText(name); + } + } + +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java new file mode 100644 index 0000000..a3ba7d4 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java @@ -0,0 +1,1200 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.app.Activity; +import android.app.AlarmManager; +import android.app.AlertDialog; +import android.app.PendingIntent; +import android.app.SearchManager; +import android.appwidget.AppWidgetManager; +import android.content.ContentResolver; +import android.content.ContentUris; +import android.content.ContentValues; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.database.Cursor; +import android.graphics.Bitmap; +import android.graphics.BitmapFactory; +import android.graphics.Paint; +import android.net.Uri; +import android.nfc.Tag; +import android.os.Build; +import android.os.Bundle; +import android.provider.DocumentsContract; +import android.preference.PreferenceManager; +import android.provider.MediaStore; +import android.text.Editable; +import android.text.Spannable; +import android.text.SpannableString; +import android.text.TextUtils; +import android.text.format.DateUtils; +import android.text.style.BackgroundColorSpan; +import android.text.style.ImageSpan; +import android.util.Log; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.MotionEvent; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.WindowManager; +import android.widget.CheckBox; +import android.widget.CompoundButton; +import android.widget.CompoundButton.OnCheckedChangeListener; +import android.widget.EditText; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; +import android.widget.Toast; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.TextNote; +import net.micode.notes.model.WorkingNote; +import net.micode.notes.model.WorkingNote.NoteSettingChangedListener; +import net.micode.notes.tool.DataUtils; +import net.micode.notes.tool.FontColorParser; +import net.micode.notes.tool.ResourceParser; +import net.micode.notes.tool.ResourceParser.TextAppearanceResources; +import net.micode.notes.ui.DateTimePickerDialog.OnDateTimeSetListener; +import net.micode.notes.ui.NoteEditText.OnTextViewChangeListener; +import net.micode.notes.widget.NoteWidgetProvider_2x; +import net.micode.notes.widget.NoteWidgetProvider_4x; + +import org.w3c.dom.Document; + +import java.io.File; +import java.io.FileNotFoundException; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.regex.Matcher; +import java.util.regex.Pattern; + + +public class NoteEditActivity extends Activity implements OnClickListener, + NoteSettingChangedListener, OnTextViewChangeListener { + // 头部视图空间 + private class HeadViewHolder { + // 文本视图,显示修改的日期 + public TextView tvModified; + // 图像视图,显示警告图标 + public ImageView ivAlertIcon; + // 文本视图,显示警告日期 + public TextView tvAlertDate; + // 图像按钮,用于设置背景颜色 + public ImageView ibSetBgColor; + } + + // 用于存储不同背景选择按钮的id和对应颜色 + private static final Map sBgSelectorBtnsMap = new HashMap(); + static { + sBgSelectorBtnsMap.put(R.id.iv_bg_yellow, ResourceParser.YELLOW); + sBgSelectorBtnsMap.put(R.id.iv_bg_red, ResourceParser.RED); + sBgSelectorBtnsMap.put(R.id.iv_bg_blue, ResourceParser.BLUE); + sBgSelectorBtnsMap.put(R.id.iv_bg_green, ResourceParser.GREEN); + sBgSelectorBtnsMap.put(R.id.iv_bg_white, ResourceParser.WHITE); + } + + // 用于存储不同颜色值和对应的背景选择器的id + private static final Map sBgSelectorSelectionMap = new HashMap(); + static { + sBgSelectorSelectionMap.put(ResourceParser.YELLOW, R.id.iv_bg_yellow_select); + sBgSelectorSelectionMap.put(ResourceParser.RED, R.id.iv_bg_red_select); + sBgSelectorSelectionMap.put(ResourceParser.BLUE, R.id.iv_bg_blue_select); + sBgSelectorSelectionMap.put(ResourceParser.GREEN, R.id.iv_bg_green_select); + sBgSelectorSelectionMap.put(ResourceParser.WHITE, R.id.iv_bg_white_select); + } + + // 用于存储不同字体大小按钮id和对应的字体大小 + private static final Map sFontSizeBtnsMap = new HashMap(); + static { + sFontSizeBtnsMap.put(R.id.ll_font_large, ResourceParser.TEXT_LARGE); + sFontSizeBtnsMap.put(R.id.ll_font_small, ResourceParser.TEXT_SMALL); + sFontSizeBtnsMap.put(R.id.ll_font_normal, ResourceParser.TEXT_MEDIUM); + sFontSizeBtnsMap.put(R.id.ll_font_super, ResourceParser.TEXT_SUPER); + } + + // 用于存储不同字体大小和对应的字体选择器的id + private static final Map sFontSelectorSelectionMap = new HashMap(); + static { + sFontSelectorSelectionMap.put(ResourceParser.TEXT_LARGE, R.id.iv_large_select); + sFontSelectorSelectionMap.put(ResourceParser.TEXT_SMALL, R.id.iv_small_select); + sFontSelectorSelectionMap.put(ResourceParser.TEXT_MEDIUM, R.id.iv_medium_select); + sFontSelectorSelectionMap.put(ResourceParser.TEXT_SUPER, R.id.iv_super_select); + } + // 用于存储不同文本颜色的按钮id和对应文本颜色 + private static final Map sTxtColorBtnsMaps = new HashMap(); + static { + sTxtColorBtnsMaps.put(R.id.ll_font_default, FontColorParser.Default); + sTxtColorBtnsMaps.put(R.id.ll_font_green, FontColorParser.green); + sTxtColorBtnsMaps.put(R.id.ll_font_red, FontColorParser.red); + sTxtColorBtnsMaps.put(R.id.ll_font_Bright_blue, FontColorParser.Bright_blue); + } + // 用于存储不同文本颜色和其对应选择器id + private static final Map sTxtColorSelectorSelectionMap = new HashMap(); + static { + sTxtColorSelectorSelectionMap.put(FontColorParser.Default ,R.id.iv_default_select); + sTxtColorSelectorSelectionMap.put(FontColorParser.red ,R.id.iv_red_select); + sTxtColorSelectorSelectionMap.put(FontColorParser.Bright_blue ,R.id.iv_Bright_blue_select); + sTxtColorSelectorSelectionMap.put(FontColorParser.green ,R.id.iv_green_select); + } + private static final String TAG = "NoteEditActivity"; + // 存储笔记的头部视图 + private HeadViewHolder mNoteHeaderHolder; + // 存储头部视图图面板 + private View mHeadViewPanel; + + private View mNoteBgColorSelector; + private View mTxtColorSelector; + private View mFontSizeSelector; + // 用于存储笔记编辑器 + private EditText mNoteEditor; + // 用于存储笔记编辑面板 + private View mNoteEditorPanel; + // 用于存储正在编辑的笔记 + private WorkingNote mWorkingNote; + // 用于存储用户的偏好设置 + private SharedPreferences mSharedPrefs; + private int mTxtColorId; + private int mFontSizeId; + // 用于表示字体大小偏好设置键 + private static final String PREFERENCE_TXT_COLOR = "pref_font_color"; + private static final String PREFERENCE_FONT_SIZE = "pref_font_size"; + // 用于限制快捷方式图标标题的最大长度 + private static final int SHORTCUT_ICON_TITLE_MAX_LEN = 10; + // 表示已被选中的标签符号 + public static final String TAG_CHECKED = String.valueOf('\u221A'); + // 表示未被选中的标签符号 + public static final String TAG_UNCHECKED = String.valueOf('\u25A1'); + // 用于唤出相册操作 + public final int OPEN_GALLERY = 1; + // 用于存储文本编辑列表 + private LinearLayout mEditTextList; + + // 用于存储用户的输入内容 + private String mUserQuery; + + private Pattern mPattern; + + // 在活动创建时进行一些初始化操作 + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + this.setContentView(R.layout.note_edit); + + // 如果传入的参数为空,且调用initActivityState方法传入getIntent方法返回的Intent对象返回false, + // 表示活动状态初始化失败,结束活动 + if (savedInstanceState == null && !initActivityState(getIntent())) { + finish(); + return; + } + // 初始化一些资源 + initResources(); + } + + /** + * Current activity may be killed when the memory is low. Once it is killed, for another time + * user load this activity, we should restore the former state + */ + // 为防止内存不足时程序的终止,在这里有一个保存现场的函数 + // 用于在活动恢复时执行一些操作 + @Override + protected void onRestoreInstanceState(Bundle savedInstanceState) { + super.onRestoreInstanceState(savedInstanceState); + if (savedInstanceState != null && savedInstanceState.containsKey(Intent.EXTRA_UID)) { + // 创建一个新的Intent对象,设置其动作为Intent.ACTION_VIEW + Intent intent = new Intent(Intent.ACTION_VIEW); + // 将Intent.EXTRA_UID作为额外数据放入intent对象中 + intent.putExtra(Intent.EXTRA_UID, savedInstanceState.getLong(Intent.EXTRA_UID)); + // 如果初始化活动失败则结束活动 + if (!initActivityState(intent)) { + finish(); + return; + } + // 打印一条调试信息,表示从被杀死的活动中恢复 + Log.d(TAG, "Restoring from killed activity"); + } + } + + // 用于返回活动初始化状态 + private boolean initActivityState(Intent intent) { + /** + * If the user specified the {@link Intent#ACTION_VIEW} but not provided with id, + * then jump to the NotesListActivity + */ + mWorkingNote = null; + if (TextUtils.equals(Intent.ACTION_VIEW, intent.getAction())) { + long noteId = intent.getLongExtra(Intent.EXTRA_UID, 0); + mUserQuery = ""; + + /** + * Starting from the searched result + */ + // 根据键值查找ID + if (intent.hasExtra(SearchManager.EXTRA_DATA_KEY)) { + noteId = Long.parseLong(intent.getStringExtra(SearchManager.EXTRA_DATA_KEY)); + mUserQuery = intent.getStringExtra(SearchManager.USER_QUERY); + } + // 如果在内容提供者中,noteId对应的笔记不可见或者不是笔记类型 + if (!DataUtils.visibleInNoteDatabase(getContentResolver(), noteId, Notes.TYPE_NOTE)) { + Intent jump = new Intent(this, NotesListActivity.class); + //程序将跳转到上面声明的intent——jump + startActivity(jump); + showToast(R.string.error_note_not_exist); + finish(); + return false; + } else { + // 否则向 load函数 传入当前活动和noteId作为参数,返回一个WorkingNote对象 + mWorkingNote = WorkingNote.load(this, noteId); + // 如果正在编辑的笔记为空 + if (mWorkingNote == null) { + Log.e(TAG, "load note failed with note id" + noteId); + finish(); + return false; + } + } + // 获取当前活动的窗口对象,设置软输入状态为隐藏状态并调整大小 + getWindow().setSoftInputMode( + WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN + | WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE); + } else if(TextUtils.equals(Intent.ACTION_INSERT_OR_EDIT, intent.getAction())) { + // New note + long folderId = intent.getLongExtra(Notes.INTENT_EXTRA_FOLDER_ID, 0); + int widgetId = intent.getIntExtra(Notes.INTENT_EXTRA_WIDGET_ID, + AppWidgetManager.INVALID_APPWIDGET_ID); + int widgetType = intent.getIntExtra(Notes.INTENT_EXTRA_WIDGET_TYPE, + Notes.TYPE_WIDGET_INVALIDE); + int bgResId = intent.getIntExtra(Notes.INTENT_EXTRA_BACKGROUND_ID, + ResourceParser.getDefaultBgId(this)); + + // Parse call-record note + String phoneNumber = intent.getStringExtra(Intent.EXTRA_PHONE_NUMBER); + long callDate = intent.getLongExtra(Notes.INTENT_EXTRA_CALL_DATE, 0); + if (callDate != 0 && phoneNumber != null) { + if (TextUtils.isEmpty(phoneNumber)) { + Log.w(TAG, "The call record number is null"); + } + long noteId = 0; + if ((noteId = DataUtils.getNoteIdByPhoneNumberAndCallDate(getContentResolver(), + phoneNumber, callDate)) > 0) { + mWorkingNote = WorkingNote.load(this, noteId); + if (mWorkingNote == null) { + Log.e(TAG, "load call note failed with note id" + noteId); + finish(); + return false; + } + } else { + mWorkingNote = WorkingNote.createEmptyNote(this, folderId, widgetId, + widgetType, bgResId); + // 将空笔记转换为通话笔记 + mWorkingNote.convertToCallNote(phoneNumber, callDate); + } + } else { + mWorkingNote = WorkingNote.createEmptyNote(this, folderId, widgetId, widgetType, + bgResId); + } + + getWindow().setSoftInputMode( + WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE + | WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE); + } else { + Log.e(TAG, "Intent not specified action, should not support"); + finish(); + return false; + } + // 设置其设置状态为改变监听器 + mWorkingNote.setOnSettingStatusChangedListener(this); + return true; + } + + @Override + protected void onResume() { + super.onResume(); + initNoteScreen(); + } + + // 用于初始化笔记的界面和功能 + private void initNoteScreen() { + // 设置笔记编辑器的文字外观,根据字体大小的id选择合适的资源 + mNoteEditor.setTextAppearance(this, TextAppearanceResources + .getTexAppearanceResource(mFontSizeId)); + // 设置外观 + if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { + switchToListMode(mWorkingNote.getContent()); + } else { + mNoteEditor.setText(getHighlightQueryResult(mWorkingNote.getContent(), mUserQuery)); + mNoteEditor.setSelection(mNoteEditor.getText().length()); + } + for (Integer id : sBgSelectorSelectionMap.keySet()) { + findViewById(sBgSelectorSelectionMap.get(id)).setVisibility(View.GONE); + } + mHeadViewPanel.setBackgroundResource(mWorkingNote.getTitleBgResId()); + mNoteEditorPanel.setBackgroundResource(mWorkingNote.getBgColorResId()); + + mNoteHeaderHolder.tvModified.setText(DateUtils.formatDateTime(this, + mWorkingNote.getModifiedDate(), DateUtils.FORMAT_SHOW_DATE + | DateUtils.FORMAT_NUMERIC_DATE | DateUtils.FORMAT_SHOW_TIME + | DateUtils.FORMAT_SHOW_YEAR)); + + /** + * TODO: Add the menu for setting alert. Currently disable it because the DateTimePicker + * is not ready + */ + showAlertHeader(); + convertToImg(); + } + + // 设置闹钟显示 + private void showAlertHeader() { + // 判断当前笔记是否有闹钟提醒 + if (mWorkingNote.hasClockAlert()) { + long time = System.currentTimeMillis(); + // 如果系统时间大于闹钟设置的时间,则闹钟时间设置为在系统时间的基础上加一个时间跨度 + if (time > mWorkingNote.getAlertDate()) { + mNoteHeaderHolder.tvAlertDate.setText(R.string.note_alert_expired); + } else { + mNoteHeaderHolder.tvAlertDate.setText(DateUtils.getRelativeTimeSpanString( + mWorkingNote.getAlertDate(), time, DateUtils.MINUTE_IN_MILLIS)); + } + // 显示闹钟的开始图标 + mNoteHeaderHolder.tvAlertDate.setVisibility(View.VISIBLE); + mNoteHeaderHolder.ivAlertIcon.setVisibility(View.VISIBLE); + } else { + // 如果当前的笔记没有闹钟提醒,就将警告日期文本和警告图标设置为不可见 + mNoteHeaderHolder.tvAlertDate.setVisibility(View.GONE); + mNoteHeaderHolder.ivAlertIcon.setVisibility(View.GONE); + }; + } + + @Override + protected void onNewIntent(Intent intent) { + super.onNewIntent(intent); + initActivityState(intent); + } + + @Override + protected void onSaveInstanceState(Bundle outState) { + super.onSaveInstanceState(outState); + /** + * For new note without note id, we should firstly save it to + * generate a id. If the editing note is not worth saving, there + * is no id which is equivalent to create new note + */ + //在创建一个新的标签时,先在数据库中匹配 + //如果不存在,那么先在数据库中存储 + if (!mWorkingNote.existInDatabase()) { + saveNote(); + } + outState.putLong(Intent.EXTRA_UID, mWorkingNote.getNoteId()); + Log.d(TAG, "Save working note id: " + mWorkingNote.getNoteId() + " onSaveInstanceState"); + } + + //用于分发触摸事件到合适的视图中 + @Override + public boolean dispatchTouchEvent(MotionEvent ev) { + // 判断当前笔记的颜色选择器在屏幕上是否可见,且在可触控范围内 + if (mNoteBgColorSelector.getVisibility() == View.VISIBLE + && !inRangeOfView(mNoteBgColorSelector, ev)) { + mNoteBgColorSelector.setVisibility(View.GONE); + return true; + } + // 判断当前笔记的字体大小选择器是否可见,且在触控范围内 + if (mFontSizeSelector.getVisibility() == View.VISIBLE + && !inRangeOfView(mFontSizeSelector, ev)) { + mFontSizeSelector.setVisibility(View.GONE); + return true; + } + // 如果两个选择器在屏幕都不可见,则重新分配触发事件 + return super.dispatchTouchEvent(ev); + } + + // 对屏幕触控的坐标进行操作 + private boolean inRangeOfView(View view, MotionEvent ev) { + int []location = new int[2]; + view.getLocationOnScreen(location); + int x = location[0]; + int y = location[1]; + // 如果触控的位置超出了给定的范围 + if (ev.getX() < x + || ev.getX() > (x + view.getWidth()) + || ev.getY() < y + || ev.getY() > (y + view.getHeight())) { + return false; + } + return true; + } + + //对标签各项属性内容的初始化 + private void initResources() { + mHeadViewPanel = findViewById(R.id.note_title); + mNoteHeaderHolder = new HeadViewHolder(); + mNoteHeaderHolder.tvModified = (TextView) findViewById(R.id.tv_modified_date); + mNoteHeaderHolder.ivAlertIcon = (ImageView) findViewById(R.id.iv_alert_icon); + mNoteHeaderHolder.tvAlertDate = (TextView) findViewById(R.id.tv_alert_date); + mNoteHeaderHolder.ibSetBgColor = (ImageView) findViewById(R.id.btn_set_bg_color); + mNoteHeaderHolder.ibSetBgColor.setOnClickListener(this); + mNoteEditor = (EditText) findViewById(R.id.note_edit_view); + mNoteEditorPanel = findViewById(R.id.sv_note_edit); + mNoteBgColorSelector = findViewById(R.id.note_bg_color_selector); + for (int id : sBgSelectorBtnsMap.keySet()) { + ImageView iv = (ImageView) findViewById(id); + iv.setOnClickListener(this); + } + + //对字体大小的选择 + mFontSizeSelector = findViewById(R.id.font_size_selector); + for (int id : sFontSizeBtnsMap.keySet()) { + View view = findViewById(id); + view.setOnClickListener(this); + } + + mTxtColorSelector = findViewById(R.id.ll_font_color_selector); + for (int id : sTxtColorBtnsMaps.keySet()) { + View view = findViewById(id); + view.setOnClickListener(this); + } + + mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); + mFontSizeId = mSharedPrefs.getInt(PREFERENCE_FONT_SIZE, ResourceParser.BG_DEFAULT_FONT_SIZE); + mTxtColorId = mSharedPrefs.getInt(PREFERENCE_TXT_COLOR, FontColorParser.Font_color_default); + /** + * HACKME: Fix bug of store the resource id in shared preference. + * The id may larger than the length of resources, in this case, + * return the {@link ResourceParser#BG_DEFAULT_FONT_SIZE} + */ + if(mFontSizeId >= TextAppearanceResources.getResourcesSize()) { + mFontSizeId = ResourceParser.BG_DEFAULT_FONT_SIZE; + } + if(mTxtColorId >= FontColorParser.TextAppearanceResources.getResourceSize()) { + mTxtColorId = FontColorParser.Font_color_default; + } + mEditTextList = (LinearLayout) findViewById(R.id.note_edit_list); + } + + @Override + protected void onPause() { + super.onPause(); + // 尝试保存当前笔记数据,并判断是否保持成功 + if(saveNote()) { + Log.d(TAG, "Note data was saved with length:" + mWorkingNote.getContent().length()); + } + // 清除一些设置状态 + clearSettingState(); + } + + // 与桌面小部件的内容和外观同步 + private void updateWidget() { + Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE); + if (mWorkingNote.getWidgetType() == Notes.TYPE_WIDGET_2X) { + intent.setClass(this, NoteWidgetProvider_2x.class); + } else if (mWorkingNote.getWidgetType() == Notes.TYPE_WIDGET_4X) { + intent.setClass(this, NoteWidgetProvider_4x.class); + } else { + Log.e(TAG, "Unspported widget type"); + return; + } + + intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, new int[] { + mWorkingNote.getWidgetId() + }); + + sendBroadcast(intent); + setResult(RESULT_OK, intent); + } + + // 在一个视图被点击时调用 + public void onClick(View v) { + // 获取被点击的视图的id + int id = v.getId(); + // 如果是背景颜色的按钮,则将背景颜色选择器和当前笔记背景颜色对应的视图设为可见 + if (id == R.id.btn_set_bg_color) { + mNoteBgColorSelector.setVisibility(View.VISIBLE); + findViewById(sBgSelectorSelectionMap.get(mWorkingNote.getBgColorId())).setVisibility( + View.VISIBLE); + } else if (sBgSelectorBtnsMap.containsKey(id)) { + findViewById(sBgSelectorSelectionMap.get(mWorkingNote.getBgColorId())).setVisibility( + View.GONE); + mWorkingNote.setBgColorId(sBgSelectorBtnsMap.get(id)); + mNoteBgColorSelector.setVisibility(View.GONE); + } else if (sFontSizeBtnsMap.containsKey(id)) { + findViewById(sFontSelectorSelectionMap.get(mFontSizeId)).setVisibility(View.GONE); + mFontSizeId = sFontSizeBtnsMap.get(id); + mSharedPrefs.edit().putInt(PREFERENCE_FONT_SIZE, mFontSizeId).commit(); + findViewById(sFontSelectorSelectionMap.get(mFontSizeId)).setVisibility(View.VISIBLE); + if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { + getWorkingText(); + switchToListMode(mWorkingNote.getContent()); + } else { + mNoteEditor.setTextAppearance(this, + TextAppearanceResources.getTexAppearanceResource(mFontSizeId)); + } + mFontSizeSelector.setVisibility(View.GONE); + } else if (sTxtColorBtnsMaps.containsKey(id)) { + findViewById(sTxtColorSelectorSelectionMap.get(mTxtColorId)).setVisibility(View.GONE); + mTxtColorId = sTxtColorBtnsMaps.get(id); + mSharedPrefs.edit().putInt(PREFERENCE_TXT_COLOR, mTxtColorId).commit(); + findViewById(sTxtColorSelectorSelectionMap.get(mTxtColorId)).setVisibility(View.VISIBLE); + if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { + getWorkingText(); + switchToListMode(mWorkingNote.getContent()); + } else { + mNoteEditor.setTextAppearance(this, + FontColorParser.TextAppearanceResources.getTexAppearanceResource(mTxtColorId)); + } + mTxtColorSelector.setVisibility(View.GONE); + } else if (id == R.id.menu_insert_img) { + openGallery(); + } + } + + // 当按下返回键时执行操作 + @Override + public void onBackPressed() { + if(clearSettingState()) { + return; + } + + saveNote(); + super.onBackPressed(); + } + + // 用于清除一些设置状态 + private boolean clearSettingState() { + if (mNoteBgColorSelector.getVisibility() == View.VISIBLE) { + mNoteBgColorSelector.setVisibility(View.GONE); + return true; + } else if (mFontSizeSelector.getVisibility() == View.VISIBLE) { + mFontSizeSelector.setVisibility(View.GONE); + return true; + } + return false; + } + + // 在改变背景颜色时执行的操作 + public void onBackgroundColorChanged() { + findViewById(sBgSelectorSelectionMap.get(mWorkingNote.getBgColorId())).setVisibility( + View.VISIBLE); + mNoteEditorPanel.setBackgroundResource(mWorkingNote.getBgColorResId()); + mHeadViewPanel.setBackgroundResource(mWorkingNote.getTitleBgResId()); + } + + // 在准备选择菜单执行的操作 + @Override + public boolean onPrepareOptionsMenu(Menu menu) { + // 判断Activity是否正在结束 + if (isFinishing()) { + return true; + } + clearSettingState(); + // 清空菜单所有项目 + menu.clear(); + // 判断当前笔记的文件夹id是否是通话记录文件夹的id + if (mWorkingNote.getFolderId() == Notes.ID_CALL_RECORD_FOLDER) { + // 加载通话记录编辑菜单的资源 + getMenuInflater().inflate(R.menu.call_note_edit, menu); + } else { + // 加载普通笔记编辑菜单的资源 + getMenuInflater().inflate(R.menu.note_edit, menu); + } + // 笔记是否处于清单模式 + if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { + // 将菜单中的列表模式项目的标题设置为普通模式 + menu.findItem(R.id.menu_list_mode).setTitle(R.string.menu_normal_mode); + } else { + // 将菜单中的列表模式项目的标题设置为列表模式 + menu.findItem(R.id.menu_list_mode).setTitle(R.string.menu_list_mode); + } + // 判断当前笔记是否有闹钟提醒 + if (mWorkingNote.hasClockAlert()) { + // 将菜单中的提醒项目设置为不可见 + menu.findItem(R.id.menu_alert).setVisible(false); + } else { + // 将菜单中的删除提醒项目设置为不可见 + menu.findItem(R.id.menu_delete_remind).setVisible(false); + } + return true; + } + + // 当选择菜单中的某个项目被点击调用时的操作 + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // 根据被点击项目的id,进行不同的处理 + switch (item.getItemId()) { + case R.id.menu_insert_img: + openGallery(); + break; + case R.id.menu_new_note: + createNewNote(); + break; + case R.id.menu_delete: + // 创建对话框,询问用户是否删除 + AlertDialog.Builder builder = new AlertDialog.Builder(this); + builder.setTitle(getString(R.string.alert_title_delete)); + builder.setIcon(android.R.drawable.ic_dialog_alert); + builder.setMessage(getString(R.string.alert_message_delete_note)); + builder.setPositiveButton(android.R.string.ok, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + deleteCurrentNote(); + finish(); + } + }); + builder.setNegativeButton(android.R.string.cancel, null); + builder.show(); + break; + case R.id.menu_font_size: + // 将字体大小选择器和当前字体大小对应的视图设置为可见 + mFontSizeSelector.setVisibility(View.VISIBLE); + findViewById(sFontSelectorSelectionMap.get(mFontSizeId)).setVisibility(View.VISIBLE); + break; + case R.id.menu_change_font_color: + mTxtColorSelector.setVisibility(View.VISIBLE); + findViewById(sTxtColorSelectorSelectionMap.get(mTxtColorId)).setVisibility(View.VISIBLE); + break; + case R.id.menu_list_mode: + // 根据当前笔记是否是清单模式,切换到相反的模式,并更新笔记的清单模式属性 + mWorkingNote.setCheckListMode(mWorkingNote.getCheckListMode() == 0 ? + TextNote.MODE_CHECK_LIST : 0); + break; + case R.id.menu_share: + getWorkingText(); + // 将文本发送给其他应用 + sendTo(this, mWorkingNote.getContent()); + break; + case R.id.menu_send_to_desktop: + // 将当前笔记作为一个快捷方式发送到桌面 + sendToDesktop(); + break; + case R.id.menu_alert: + // 设置一个闹钟提醒 + setReminder(); + break; + case R.id.menu_delete_remind: + // 将当前笔记的提醒日期设置为0,并更新数据库 + mWorkingNote.setAlertDate(0, false); + break; + default: + break; + } + return true; + } + + // 设置闹钟提醒 + private void setReminder() { + // 用于显示日期时间选择器对话框 + DateTimePickerDialog d = new DateTimePickerDialog(this, System.currentTimeMillis()); + d.setOnDateTimeSetListener(new OnDateTimeSetListener() { + // 根据用户选择的日期时间,设置当前笔记的提醒日期,并更新数据库 + public void OnDateTimeSet(AlertDialog dialog, long date) { + mWorkingNote.setAlertDate(date , true); + } + }); + // 显示对话框,让用户选择一个日期时间 + d.show(); + } + + /** + * Share note to apps that support {@link Intent#ACTION_SEND} action + * and {@text/plain} type + */ + // 与其他应用共享文本信息 + private void sendTo(Context context, String info) { + Intent intent = new Intent(Intent.ACTION_SEND); + // 将要共享的文本信息作为额外数据放入意图中 + intent.putExtra(Intent.EXTRA_TEXT, info); + intent.setType("text/plain"); + // 启动一个活动,让用户选择一个可以接收这个意图的应用 + context.startActivity(intent); + } + + // 创建一个新便签 + private void createNewNote() { + // Firstly, save current editing notes + saveNote(); + + // For safety, start a new NoteEditActivity + finish(); + Intent intent = new Intent(this, NoteEditActivity.class); + intent.setAction(Intent.ACTION_INSERT_OR_EDIT); + intent.putExtra(Notes.INTENT_EXTRA_FOLDER_ID, mWorkingNote.getFolderId()); + startActivity(intent); + } + + // 删除当前便签 + private void deleteCurrentNote() { + // 如果正在编辑的笔记存有数据 + if (mWorkingNote.existInDatabase()) { + HashSet ids = new HashSet(); + long id = mWorkingNote.getNoteId(); + // 判断是否为根文件夹id + if (id != Notes.ID_ROOT_FOLDER) { + ids.add(id); + } else { + Log.d(TAG, "Wrong note id, should not happen"); + } + // 判断当前是否是同步模式 + if (!isSyncMode()) { + if (!DataUtils.batchDeleteNotes(getContentResolver(), ids)) { + Log.e(TAG, "Delete Note error"); + } + } else { + if (!DataUtils.batchMoveToFolder(getContentResolver(), ids, Notes.ID_TRASH_FOLER)) { + Log.e(TAG, "Move notes to trash folder error, should not happens"); + } + } + } + mWorkingNote.markDeleted(true); + } + + // 判断是否是同步模式 + private boolean isSyncMode() { + return NotesPreferenceActivity.getSyncAccountName(this).trim().length() > 0; + } + + // 笔记闹钟提醒发生变化时调用, set 是是否设置提醒的标志 + public void onClockAlertChanged(long date, boolean set) { + /** + * User could set clock to an unsaved note, so before setting the + * alert clock, we should save the note first + */ + if (!mWorkingNote.existInDatabase()) { + saveNote(); + } + // 大于0,即保存到了数据库中,否则就是未保存到数据库 + if (mWorkingNote.getNoteId() > 0) { + // 用于发送一个闹钟接收的广播,将当前笔记的uri作为数据放入意图中 + Intent intent = new Intent(this, AlarmReceiver.class); + intent.setData(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, mWorkingNote.getNoteId())); + // 用于包装上面的意图对象,以便在闹钟触发时发送广播 + PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0); + // 获取一个闹钟管理器对象,用于设置或取消闹钟 + AlarmManager alarmManager = ((AlarmManager) getSystemService(ALARM_SERVICE)); + showAlertHeader(); + // 判断是否设置提醒 + if(!set) { + // 取消之前设置的闹钟 + alarmManager.cancel(pendingIntent); + } else { + // 设置一个在指定日期时间触发的闹钟,并发送待定意图 + alarmManager.set(AlarmManager.RTC_WAKEUP, date, pendingIntent); + } + } else { + /** + * There is the condition that user has input nothing (the note is + * not worthy saving), we have no note id, remind the user that he + * should input something + */ + Log.e(TAG, "Clock alert setting error"); + showToast(R.string.error_note_empty_for_clock); + } + } + + public void onWidgetChanged() { + updateWidget(); + } + + // 在用户删除某个文本编辑器时,将被删除的文本内容追加到前面或者后面的文本编辑器中,并更新列表的索引值 + public void onEditTextDelete(int index, String text) { + int childCount = mEditTextList.getChildCount(); + if (childCount == 1) { + return; + } + + for (int i = index + 1; i < childCount; i++) { + ((NoteEditText) mEditTextList.getChildAt(i).findViewById(R.id.et_edit_text)) + .setIndex(i - 1); + } + + mEditTextList.removeViewAt(index); + NoteEditText edit = null; + if(index == 0) { + edit = (NoteEditText) mEditTextList.getChildAt(0).findViewById( + R.id.et_edit_text); + } else { + edit = (NoteEditText) mEditTextList.getChildAt(index - 1).findViewById( + R.id.et_edit_text); + } + int length = edit.length(); + edit.append(text); + edit.requestFocus(); + edit.setSelection(length); + } + + /* 在用户在某个文本编辑器中按下回车键时,创建一个新的文本编辑器, + * 并将当前的文本内容分割到两个文本编辑器中。 + * 实现在笔记应用中输入多行文本。 + */ + public void onEditTextEnter(int index, String text) { + /** + * Should not happen, check for debug + */ + if(index > mEditTextList.getChildCount()) { + Log.e(TAG, "Index out of mEditTextList boundrary, should not happen"); + } + + View view = getListItem(text, index); + mEditTextList.addView(view, index); + NoteEditText edit = (NoteEditText) view.findViewById(R.id.et_edit_text); + edit.requestFocus(); + edit.setSelection(0); + for (int i = index + 1; i < mEditTextList.getChildCount(); i++) { + ((NoteEditText) mEditTextList.getChildAt(i).findViewById(R.id.et_edit_text)) + .setIndex(i); + } + } + + // 将用户输入的文本转换成多个文本编辑器,以便用户在列表模式下编辑多行文本。 + private void switchToListMode(String text) { + mEditTextList.removeAllViews(); + String[] items = text.split("\n"); + int index = 0; + for (String item : items) { + if(!TextUtils.isEmpty(item)) { + mEditTextList.addView(getListItem(item, index)); + index++; + } + } + mEditTextList.addView(getListItem("", index)); + mEditTextList.getChildAt(index).findViewById(R.id.et_edit_text).requestFocus(); + + mNoteEditor.setVisibility(View.GONE); + mEditTextList.setVisibility(View.VISIBLE); + } + + // 将用户输入的搜索关键词在完整文本中高亮显示,以便用户快速定位到相关内容 + private Spannable getHighlightQueryResult(String fullText, String userQuery) { + SpannableString spannable = new SpannableString(fullText == null ? "" : fullText); + if (!TextUtils.isEmpty(userQuery)) { + mPattern = Pattern.compile(userQuery); + Matcher m = mPattern.matcher(fullText); + int start = 0; + while (m.find(start)) { + spannable.setSpan( + new BackgroundColorSpan(this.getResources().getColor( + R.color.user_query_highlight)), m.start(), m.end(), + Spannable.SPAN_INCLUSIVE_EXCLUSIVE); + start = m.end(); + } + } + return spannable; + } + + // 根据用户输入的文本内容和搜索关键词创建一个带有复选框和高亮效果的文本编辑器视图 + private View getListItem(String item, int index) { + View view = LayoutInflater.from(this).inflate(R.layout.note_edit_list_item, null); + final NoteEditText edit = (NoteEditText) view.findViewById(R.id.et_edit_text); + edit.setTextAppearance(this, TextAppearanceResources.getTexAppearanceResource(mFontSizeId)); + CheckBox cb = ((CheckBox) view.findViewById(R.id.cb_edit_item)); + cb.setOnCheckedChangeListener(new OnCheckedChangeListener() { + public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { + if (isChecked) { + edit.setPaintFlags(edit.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); + } else { + edit.setPaintFlags(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG); + } + } + }); + + if (item.startsWith(TAG_CHECKED)) { + cb.setChecked(true); + edit.setPaintFlags(edit.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG); + item = item.substring(TAG_CHECKED.length(), item.length()).trim(); + } else if (item.startsWith(TAG_UNCHECKED)) { + cb.setChecked(false); + edit.setPaintFlags(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG); + item = item.substring(TAG_UNCHECKED.length(), item.length()).trim(); + } + + edit.setOnTextViewChangeListener(this); + edit.setIndex(index); + edit.setText(getHighlightQueryResult(item, mUserQuery)); + return view; + } + + // 根据用户在文本编辑器中输入或删除文本时,动态显示或隐藏复选框。 + public void onTextChange(int index, boolean hasText) { + if (index >= mEditTextList.getChildCount()) { + Log.e(TAG, "Wrong index, should not happen"); + return; + } + if(hasText) { + mEditTextList.getChildAt(index).findViewById(R.id.cb_edit_item).setVisibility(View.VISIBLE); + } else { + mEditTextList.getChildAt(index).findViewById(R.id.cb_edit_item).setVisibility(View.GONE); + } + } + + // 根据用户选择的模式,将文本编辑器从普通模式切换到列表模式,或者从列表模式切换到普通模式。 + public void onCheckListModeChanged(int oldMode, int newMode) { + if (newMode == TextNote.MODE_CHECK_LIST) { + switchToListMode(mNoteEditor.getText().toString()); + } else { + if (!getWorkingText()) { + mWorkingNote.setWorkingText(mWorkingNote.getContent().replace(TAG_UNCHECKED + " ", + "")); + } + mNoteEditor.setText(getHighlightQueryResult(mWorkingNote.getContent(), mUserQuery)); + mEditTextList.setVisibility(View.GONE); + mNoteEditor.setVisibility(View.VISIBLE); + convertToImg(); + } + } + + // 根据笔记的模式,从文本编辑器或者文本编辑器列表中获取文本内容 + private boolean getWorkingText() { + boolean hasChecked = false; + if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { + StringBuilder sb = new StringBuilder(); + for (int i = 0; i < mEditTextList.getChildCount(); i++) { + View view = mEditTextList.getChildAt(i); + NoteEditText edit = (NoteEditText) view.findViewById(R.id.et_edit_text); + if (!TextUtils.isEmpty(edit.getText())) { + if (((CheckBox) view.findViewById(R.id.cb_edit_item)).isChecked()) { + sb.append(TAG_CHECKED).append(" ").append(edit.getText()).append("\n"); + hasChecked = true; + } else { + sb.append(TAG_UNCHECKED).append(" ").append(edit.getText()).append("\n"); + } + } + } + mWorkingNote.setWorkingText(sb.toString()); + } else { + mWorkingNote.setWorkingText(mNoteEditor.getText().toString()); + } + return hasChecked; + } + + // 用于保存一个笔记应用的文本内容 + private boolean saveNote() { + getWorkingText(); + boolean saved = mWorkingNote.saveNote(); + if (saved) { + /** + * There are two modes from List view to edit view, open one note, + * create/edit a node. Opening node requires to the original + * position in the list when back from edit view, while creating a + * new node requires to the top of the list. This code + * {@link #RESULT_OK} is used to identify the create/edit state + */ + setResult(RESULT_OK); + } + return saved; + } + + // 将笔记内容发送到桌面 + private void sendToDesktop() { + /** + * Before send message to home, we should make sure that current + * editing note is exists in databases. So, for new note, firstly + * save it + */ + if (!mWorkingNote.existInDatabase()) { + saveNote(); + } + + if (mWorkingNote.getNoteId() > 0) { + Intent sender = new Intent(); + Intent shortcutIntent = new Intent(this, NoteEditActivity.class); + shortcutIntent.setAction(Intent.ACTION_VIEW); + shortcutIntent.putExtra(Intent.EXTRA_UID, mWorkingNote.getNoteId()); + sender.putExtra(Intent.EXTRA_SHORTCUT_INTENT, shortcutIntent); + sender.putExtra(Intent.EXTRA_SHORTCUT_NAME, + makeShortcutIconTitle(mWorkingNote.getContent())); + sender.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, + Intent.ShortcutIconResource.fromContext(this, R.drawable.icon_app)); + sender.putExtra("duplicate", true); + sender.setAction("com.android.launcher.action.INSTALL_SHORTCUT"); + showToast(R.string.info_note_enter_desktop); + sendBroadcast(sender); + } else { + /** + * There is the condition that user has input nothing (the note is + * not worthy saving), we have no note id, remind the user that he + * should input something + */ + Log.e(TAG, "Send to desktop error"); + showToast(R.string.error_note_empty_for_send_to_desktop); + } + } + + // 用于编辑小图标的标题 + private String makeShortcutIconTitle(String content) { + content = content.replace(TAG_CHECKED, ""); + content = content.replace(TAG_UNCHECKED, ""); + return content.length() > SHORTCUT_ICON_TITLE_MAX_LEN ? content.substring(0, + SHORTCUT_ICON_TITLE_MAX_LEN) : content; + } + + // 显示提示的视图 + private void showToast(int resId) { + showToast(resId, Toast.LENGTH_SHORT); + } + + // 持续显示提示视图 + private void showToast(int resId, int duration) { + Toast.makeText(this, resId, duration).show(); + } + //-----------------------------------------------------------------------------------------// + //-----------------------------------施-----工-----区---------------------------------------// + //-----------------------------------------------------------------------------------------// + //--------------------------------注-----意-----安-----全-----------------------------------// + //-----------------------------------------------------------------------------------------// + //--------------------------更改请遵循636softwareDevGroup开发共识-----------------------------// + //-----------------------------------------------------------------------------------------// + //----------------------------Last---Change---2023---04---27-------------------------------// + //-----------------------------------------------------------------------------------------// + //----------------------------------By-K4sumizawaMiyU--------------------------------------// + //-----------------------------------------------------------------------------------------// + //--------------------------Miyu--Wa--SeiKai--1st--Kawaii!---------------------------------// + // 数据流获取 + public String getDataColumn(Context context, Uri uri, String selection, String[] selectionArgs) { + Cursor cursor = null; + final String column = "_data"; + final String[] projection = {column}; + try{ + cursor = context.getContentResolver().query(uri, projection, selection, + selectionArgs, null); + if (cursor != null && cursor.moveToFirst()) { + final int column_index = cursor.getColumnIndexOrThrow(column); + return cursor.getString(column_index); + } + } finally { + if (cursor != null) + cursor.close(); + } + return null; + } + // 用于开启多媒体相册 + public void openGallery() { + Intent loadImg = new Intent(Intent.ACTION_GET_CONTENT); + loadImg.addCategory(Intent.CATEGORY_OPENABLE); + loadImg.setType("image/*"); + startActivityForResult(loadImg, OPEN_GALLERY); + } + // 用于取得图片路径 + public String getPath(final Context context, final Uri uri) { + final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; + if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) { + if (isMediaDocument(uri)) { + final String docId = DocumentsContract.getDocumentId(uri); + final String[] split = docId.split(":"); + final String type = split[0]; + + Uri contentUri = null; + if ("image".equals(type)) { + contentUri = MediaStore.Images.Media.EXTERNAL_CONTENT_URI; + } + final String selection = "_id=?"; + final String[] selectionArgs = new String[]{split[1]}; + + return getDataColumn(context, contentUri, selection, selectionArgs); + } + } else if ("content".equalsIgnoreCase(uri.getScheme())) { + return getDataColumn(context, uri, null, null); + } else if ("file".equalsIgnoreCase(uri.getScheme())) { + return uri.getPath(); + } + return null; + } + // 路径地址转换为图片 + private void convertToImg() { + NoteEditText noteEditText = (NoteEditText) findViewById(R.id.note_edit_view); + Editable editable = noteEditText.getText(); + String noteTxt= editable.toString(); + int length = editable.length(); + for(int i = 0;i < length;i ++) { + for(int j = i;j < length;j ++) { + String img_frag = noteTxt.substring(i, j+1); + if(img_frag.length() > 15 && img_frag.endsWith("[/local]")&& img_frag.startsWith("[local]")) { + int lim = 7; + int len = img_frag.length() - 15; + String path = img_frag.substring(lim, lim + len); + Bitmap bitmap = null; + Log.d(TAG,"img from:"+path); + try { + bitmap = BitmapFactory.decodeFile(path); + } catch (Exception err) { + err.printStackTrace(); + } if(bitmap != null) { + Log.d(TAG,"img not null"); + ImageSpan imageSpan = new ImageSpan(NoteEditActivity.this, bitmap); + String ss = "[local]" + path + "[/local]"; + SpannableString spannableString = new SpannableString(ss); + spannableString.setSpan(imageSpan, 0, ss.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); + Log.d(TAG,"success!"); + Editable edit_txt = noteEditText.getEditableText(); + edit_txt.delete(i, i + len + 15); + edit_txt.insert(i, spannableString); + } + } + } + } + } + // 重写onActivityResult处理返回的数据 + protected void onActivityResult(int requestCode, int resultCode, Intent intent) { + super.onActivityResult(requestCode, resultCode, intent); + ContentResolver resolver = getContentResolver(); + switch (requestCode) { + case OPEN_GALLERY: + Uri originUri = intent.getData(); + Bitmap bitmap = null; + try { + bitmap = BitmapFactory.decodeStream(resolver.openInputStream(originUri)); + } catch (FileNotFoundException err) { + Log.d(TAG,"get file_exception"); + err.printStackTrace(); + } if(bitmap != null) { + Log.d(TAG,"Bitmap is not null"); + ImageSpan imageSpan = new ImageSpan(NoteEditActivity.this, bitmap); + String path = getPath(this, originUri); + String img_frag= "[local]" + path + "[/local]"; + // 创建一个SpannableString对象,以便插入用ImageSpan对象封装的图像 + SpannableString spannableString = new SpannableString(img_frag); + spannableString.setSpan(imageSpan, 0, img_frag.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE); + // 将图片插入光标所在位置 + NoteEditText img = (NoteEditText) findViewById(R.id.note_edit_view); + int index = img.getSelectionStart(); + Log.d(TAG,"Index is:" + index); + Editable edit_txt = img.getEditableText(); + edit_txt.insert(index, spannableString); + mWorkingNote.mContent = img.getText().toString(); + // 将改动提交至数据库 + ContentResolver contentResolver = getContentResolver(); + ContentValues contentValues = new ContentValues(); + final long id = mWorkingNote.getNoteId(); + contentValues.put("snippet",mWorkingNote.mContent); + contentResolver.update(Uri.parse("content://micode_notes/note"), contentValues,"_id=?",new String[]{""+id}); + ContentValues contentValues1 = new ContentValues(); + contentValues1.put("content",mWorkingNote.mContent); + contentResolver.update(Uri.parse("content://micode_notes/data"), contentValues1,"mime_type=? and note_id=?", new String[]{"vnd.android.cursor.item/text_note",""+id}); + } else { + Toast.makeText(NoteEditActivity.this, "获取图片失败", Toast.LENGTH_SHORT).show(); + } + break; + default: + break; + } + } + // 判断所选文档是否为多媒体文件 + public boolean isMediaDocument(Uri uri) { + return "com.android.providers.media.documents".equals(uri.getAuthority()); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteEditText.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteEditText.java new file mode 100644 index 0000000..1f7235e --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteEditText.java @@ -0,0 +1,232 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.Context; +import android.graphics.Rect; +import android.text.Layout; +import android.text.Selection; +import android.text.Spanned; +import android.text.TextUtils; +import android.text.style.URLSpan; +import android.util.AttributeSet; +import android.util.Log; +import android.view.ContextMenu; +import android.view.KeyEvent; +import android.view.MenuItem; +import android.view.MenuItem.OnMenuItemClickListener; +import android.view.MotionEvent; +import android.widget.EditText; + +import net.micode.notes.R; + +import java.util.HashMap; +import java.util.Map; + +// 继承EditText,设置标签设置文本框 +public class NoteEditText extends EditText { + private static final String TAG = "NoteEditText"; + private int mIndex; + private int mSelectionStartBeforeDelete; + + private static final String SCHEME_TEL = "tel:" ; + private static final String SCHEME_HTTP = "http:" ; + private static final String SCHEME_EMAIL = "mailto:" ; + + // 建立一个字符和整数的hash表,用于链接电话,网站,还有邮箱 + private static final Map sSchemaActionResMap = new HashMap(); + static { + sSchemaActionResMap.put(SCHEME_TEL, R.string.note_link_tel); + sSchemaActionResMap.put(SCHEME_HTTP, R.string.note_link_web); + sSchemaActionResMap.put(SCHEME_EMAIL, R.string.note_link_email); + } + + /** + * Call by the {@link NoteEditActivity} to delete or add edit text + */ + //在NoteEditActivity中删除或添加文本的操作,可以看做是一个文本是否被变的标记 + public interface OnTextViewChangeListener { + /** + * Delete current edit text when {@link KeyEvent#KEYCODE_DEL} happens + * and the text is null + */ + void onEditTextDelete(int index, String text); + + /** + * Add edit text after current edit text when {@link KeyEvent#KEYCODE_ENTER} + * happen + */ + void onEditTextEnter(int index, String text); + + /** + * Hide or show item option when text change + */ + void onTextChange(int index, boolean hasText); + } + + private OnTextViewChangeListener mOnTextViewChangeListener; + + // 根据context设置文本 + public NoteEditText(Context context) { + super(context, null); + mIndex = 0; + } + // 设置当前光标 + public void setIndex(int index) { + mIndex = index; + } + + // 初始化文本修改标记 + public void setOnTextViewChangeListener(OnTextViewChangeListener listener) { + mOnTextViewChangeListener = listener; + } + + // 初始化便签 + public NoteEditText(Context context, AttributeSet attrs) { + super(context, attrs, android.R.attr.editTextStyle); + } + + public NoteEditText(Context context, AttributeSet attrs, int defStyle) { + super(context, attrs, defStyle); + // TODO Auto-generated constructor stub + } + + // 根据用户触摸的位置,获取对应的文本偏移量,并设置为选择状态。 + @Override + public boolean onTouchEvent(MotionEvent event) { + switch (event.getAction()) { + case MotionEvent.ACTION_DOWN: + + int x = (int) event.getX(); + int y = (int) event.getY(); + x -= getTotalPaddingLeft(); + y -= getTotalPaddingTop(); + x += getScrollX(); + y += getScrollY(); + + Layout layout = getLayout(); + int line = layout.getLineForVertical(y); + int off = layout.getOffsetForHorizontal(line, x); + Selection.setSelection(getText(), off); + break; + } + + return super.onTouchEvent(event); + } + + // 处理用户按下一个键盘按键时会触发 的事件 + @Override + public boolean onKeyDown(int keyCode, KeyEvent event) { + switch (keyCode) { + case KeyEvent.KEYCODE_ENTER: + if (mOnTextViewChangeListener != null) { + return false; + } + break; + case KeyEvent.KEYCODE_DEL: + mSelectionStartBeforeDelete = getSelectionStart(); + break; + default: + break; + } + return super.onKeyDown(keyCode, event); + } + + // 处理用户松开一个键盘按键时会触发 的事件 + @Override + public boolean onKeyUp(int keyCode, KeyEvent event) { + switch(keyCode) { + case KeyEvent.KEYCODE_DEL: + // 如果被修改过 + if (mOnTextViewChangeListener != null) { + // 如果被修改过且文档不为空 + if (0 == mSelectionStartBeforeDelete && mIndex != 0) { + mOnTextViewChangeListener.onEditTextDelete(mIndex, getText().toString()); + return true; + } + } else { + Log.d(TAG, "OnTextViewChangeListener was not seted"); + } + break; + case KeyEvent.KEYCODE_ENTER: + if (mOnTextViewChangeListener != null) { + int selectionStart = getSelectionStart(); + String text = getText().subSequence(selectionStart, length()).toString(); + setText(getText().subSequence(0, selectionStart)); + mOnTextViewChangeListener.onEditTextEnter(mIndex + 1, text); + } else { + Log.d(TAG, "OnTextViewChangeListener was not seted"); + } + break; + default: + break; + } + return super.onKeyUp(keyCode, event); + } + + // 当焦点发生变化时,会自动调用该方法来处理焦点改变的事件 + @Override + protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect) { + if (mOnTextViewChangeListener != null) { + // 获取到焦点并且文本不为空 + if (!focused && TextUtils.isEmpty(getText())) { + mOnTextViewChangeListener.onTextChange(mIndex, false); + } else { + mOnTextViewChangeListener.onTextChange(mIndex, true); + } + } + super.onFocusChanged(focused, direction, previouslyFocusedRect); + } + + // 生成上下文菜单 + @Override + protected void onCreateContextMenu(ContextMenu menu) { + // 如果有文本存在 + if (getText() instanceof Spanned) { + int selStart = getSelectionStart(); + int selEnd = getSelectionEnd(); + + int min = Math.min(selStart, selEnd); + int max = Math.max(selStart, selEnd); + + final URLSpan[] urls = ((Spanned) getText()).getSpans(min, max, URLSpan.class); + if (urls.length == 1) { + int defaultResId = 0; + for(String schema: sSchemaActionResMap.keySet()) { + if(urls[0].getURL().indexOf(schema) >= 0) { + defaultResId = sSchemaActionResMap.get(schema); + break; + } + } + + if (defaultResId == 0) { + defaultResId = R.string.note_link_other; + } + // 建立菜单 + menu.add(0, 0, 0, defaultResId).setOnMenuItemClickListener( + new OnMenuItemClickListener() { + public boolean onMenuItemClick(MenuItem item) { + // goto a new intent + urls[0].onClick(NoteEditText.this); + return true; + } + }); + } + } + super.onCreateContextMenu(menu); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteItemData.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteItemData.java new file mode 100644 index 0000000..fe94192 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NoteItemData.java @@ -0,0 +1,230 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.Context; +import android.database.Cursor; +import android.text.TextUtils; + +import net.micode.notes.data.Contact; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.tool.DataUtils; + + +/*用于存储和操作一个笔记的id、标题、内容、创建时间、 +修改时间、背景颜色、字体大小、模式、文件夹id等信息。 + */ +public class NoteItemData { + static final String [] PROJECTION = new String [] { + NoteColumns.ID, + NoteColumns.ALERTED_DATE, + NoteColumns.BG_COLOR_ID, + NoteColumns.CREATED_DATE, + NoteColumns.HAS_ATTACHMENT, + NoteColumns.MODIFIED_DATE, + NoteColumns.NOTES_COUNT, + NoteColumns.PARENT_ID, + NoteColumns.SNIPPET, + NoteColumns.TYPE, + NoteColumns.WIDGET_ID, + NoteColumns.WIDGET_TYPE, + }; + + private static final int ID_COLUMN = 0; + private static final int ALERTED_DATE_COLUMN = 1; + private static final int BG_COLOR_ID_COLUMN = 2; + private static final int CREATED_DATE_COLUMN = 3; + private static final int HAS_ATTACHMENT_COLUMN = 4; + private static final int MODIFIED_DATE_COLUMN = 5; + private static final int NOTES_COUNT_COLUMN = 6; + private static final int PARENT_ID_COLUMN = 7; + private static final int SNIPPET_COLUMN = 8; + private static final int TYPE_COLUMN = 9; + private static final int WIDGET_ID_COLUMN = 10; + private static final int WIDGET_TYPE_COLUMN = 11; + + private long mId; + private long mAlertDate; + private int mBgColorId; + private long mCreatedDate; + private boolean mHasAttachment; + private long mModifiedDate; + private int mNotesCount; + private long mParentId; + private String mSnippet; + private int mType; + private int mWidgetId; + private int mWidgetType; + private String mName; + private String mPhoneNumber; + + private boolean mIsLastItem; + private boolean mIsFirstItem; + private boolean mIsOnlyOneItem; + private boolean mIsOneNoteFollowingFolder; + private boolean mIsMultiNotesFollowingFolder; + + // 初始化NoteItemData,主要利用光标cursor获取的东西 + public NoteItemData(Context context, Cursor cursor) { + mId = cursor.getLong(ID_COLUMN); + mAlertDate = cursor.getLong(ALERTED_DATE_COLUMN); + mBgColorId = cursor.getInt(BG_COLOR_ID_COLUMN); + mCreatedDate = cursor.getLong(CREATED_DATE_COLUMN); + mHasAttachment = (cursor.getInt(HAS_ATTACHMENT_COLUMN) > 0) ? true : false; + mModifiedDate = cursor.getLong(MODIFIED_DATE_COLUMN); + mNotesCount = cursor.getInt(NOTES_COUNT_COLUMN); + mParentId = cursor.getLong(PARENT_ID_COLUMN); + mSnippet = cursor.getString(SNIPPET_COLUMN); + mSnippet = mSnippet.replace(NoteEditActivity.TAG_CHECKED, "").replace( + NoteEditActivity.TAG_UNCHECKED, ""); + mType = cursor.getInt(TYPE_COLUMN); + mWidgetId = cursor.getInt(WIDGET_ID_COLUMN); + mWidgetType = cursor.getInt(WIDGET_TYPE_COLUMN); + + mPhoneNumber = ""; + if (mParentId == Notes.ID_CALL_RECORD_FOLDER) { + mPhoneNumber = DataUtils.getCallNumberByNoteId(context.getContentResolver(), mId); + if (!TextUtils.isEmpty(mPhoneNumber)) { + mName = Contact.getContact(context, mPhoneNumber); + if (mName == null) { + mName = mPhoneNumber; + } + } + } + + if (mName == null) { + mName = ""; + } + checkPostion(cursor); + } + + // 根据鼠标的位置设置标记和位置 + private void checkPostion(Cursor cursor) { + mIsLastItem = cursor.isLast() ? true : false; + mIsFirstItem = cursor.isFirst() ? true : false; + mIsOnlyOneItem = (cursor.getCount() == 1); + mIsMultiNotesFollowingFolder = false; + mIsOneNoteFollowingFolder = false; + + if (mType == Notes.TYPE_NOTE && !mIsFirstItem) { + int position = cursor.getPosition(); + if (cursor.moveToPrevious()) { + if (cursor.getInt(TYPE_COLUMN) == Notes.TYPE_FOLDER + || cursor.getInt(TYPE_COLUMN) == Notes.TYPE_SYSTEM) { + if (cursor.getCount() > (position + 1)) { + mIsMultiNotesFollowingFolder = true; + } else { + mIsOneNoteFollowingFolder = true; + } + } + if (!cursor.moveToNext()) { + throw new IllegalStateException("cursor move to previous but can't move back"); + } + } + } + } + + public boolean isOneFollowingFolder() { + return mIsOneNoteFollowingFolder; + } + + public boolean isMultiFollowingFolder() { + return mIsMultiNotesFollowingFolder; + } + + public boolean isLast() { + return mIsLastItem; + } + + public String getCallName() { + return mName; + } + + public boolean isFirst() { + return mIsFirstItem; + } + + public boolean isSingle() { + return mIsOnlyOneItem; + } + + public long getId() { + return mId; + } + + public long getAlertDate() { + return mAlertDate; + } + + public long getCreatedDate() { + return mCreatedDate; + } + + public boolean hasAttachment() { + return mHasAttachment; + } + + public long getModifiedDate() { + return mModifiedDate; + } + + public int getBgColorId() { + return mBgColorId; + } + + public long getParentId() { + return mParentId; + } + + public int getNotesCount() { + return mNotesCount; + } + + public long getFolderId () { + return mParentId; + } + + public int getType() { + return mType; + } + + public int getWidgetType() { + return mWidgetType; + } + + public int getWidgetId() { + return mWidgetId; + } + + public String getSnippet() { + return mSnippet; + } + + public boolean hasAlert() { + return (mAlertDate > 0); + } + + // 判断一个笔记是否是一个通话记录 + public boolean isCallRecord() { + return (mParentId == Notes.ID_CALL_RECORD_FOLDER && !TextUtils.isEmpty(mPhoneNumber)); + } + + public static int getNoteType(Cursor cursor) { + return cursor.getInt(TYPE_COLUMN); + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListActivity.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListActivity.java new file mode 100644 index 0000000..1529222 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListActivity.java @@ -0,0 +1,1477 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.app.Activity; +import android.app.AlertDialog; +import android.app.Dialog; +import android.app.KeyguardManager; +import android.appwidget.AppWidgetManager; +import android.content.AsyncQueryHandler; +import android.content.ContentResolver; +import android.content.ContentValues; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.SharedPreferences; +import android.database.Cursor; +import android.os.AsyncTask; +import android.os.Build; +import android.os.Bundle; +import android.preference.PreferenceManager; +import android.text.Editable; +import android.text.TextUtils; +import android.text.TextWatcher; +import android.util.Log; +import android.view.ActionMode; +import android.view.ContextMenu; +import android.view.ContextMenu.ContextMenuInfo; +import android.view.Display; +import android.view.HapticFeedbackConstants; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.MenuItem.OnMenuItemClickListener; +import android.view.MotionEvent; +import android.view.View; +import android.view.View.OnClickListener; +import android.view.View.OnCreateContextMenuListener; +import android.view.View.OnTouchListener; +import android.view.inputmethod.InputMethodManager; +import android.widget.AdapterView; +import android.widget.AdapterView.OnItemClickListener; +import android.widget.AdapterView.OnItemLongClickListener; +import android.widget.Button; +import android.widget.EditText; +import android.widget.ListView; +import android.widget.PopupMenu; +import android.widget.TextView; +import android.widget.Toast; + +import androidx.annotation.RequiresApi; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.gtask.remote.GTaskSyncService; +import net.micode.notes.model.WorkingNote; +import net.micode.notes.tool.BackupUtils; +import net.micode.notes.tool.DataUtils; +import net.micode.notes.tool.ResourceParser; +import net.micode.notes.ui.NotesListAdapter.AppWidgetAttribute; +import net.micode.notes.widget.NoteWidgetProvider_2x; +import net.micode.notes.widget.NoteWidgetProvider_4x; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.util.HashSet; + +public class NotesListActivity extends Activity implements OnClickListener, OnItemLongClickListener { + private static final int FOLDER_NOTE_LIST_QUERY_TOKEN = 0; + + private static final int FOLDER_LIST_QUERY_TOKEN = 1; + + private static final int MENU_FOLDER_DELETE = 0; + + private static final int MENU_FOLDER_VIEW = 1; + + private static final int MENU_FOLDER_CHANGE_NAME = 2; + + private static final String PREFERENCE_ADD_INTRODUCTION = "net.micode.notes.introduction"; + + private enum ListEditState { + NOTE_LIST, SUB_FOLDER, CALL_RECORD_FOLDER, PRIVATE_FOLDER + } + + private ListEditState mState; + + private BackgroundQueryHandler mBackgroundQueryHandler; + + private NotesListAdapter mNotesListAdapter; + + private ListView mNotesListView; + + private Button mAddNewNote; + + private boolean mDispatch; + + private int mOriginY; + + private int mDispatchY; + + private TextView mTitleBar; + + private long mCurrentFolderId; + + private ContentResolver mContentResolver; + + private ModeCallback mModeCallBack; + + private static final String TAG = "NotesListActivity"; + + public static final int NOTES_LISTVIEW_SCROLL_RATE = 30; + + private NoteItemData mFocusNoteDataItem; + + private static final String NORMAL_SELECTION = NoteColumns.PARENT_ID + "=?"; + + private static final String ROOT_FOLDER_SELECTION = "(" + NoteColumns.TYPE + "<>" + + Notes.TYPE_SYSTEM + " AND " + NoteColumns.PARENT_ID + "=?)" + " OR (" + + NoteColumns.ID + "=" + Notes.ID_CALL_RECORD_FOLDER + " AND " + + NoteColumns.NOTES_COUNT + ">0)"; + + private final static int REQUEST_CODE_OPEN_NODE = 102; + private final static int REQUEST_CODE_NEW_NODE = 103; + + // 在Activity创建时调用 + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + // 设置Activity的布局文件为note_list.xml + setContentView(R.layout.note_list); + initResources(); + + /** + * Insert an introduction when user firstly use this application + */ + setAppInfoFromRawRes(); + } + + // 在Activity接收到其他Activity返回的结果时调用 + @Override + protected void onActivityResult(int requestCode, int resultCode, Intent data) { + // 如果结果是成功的,并且请求码是打开或新建笔记,那么更新笔记列表的游标 + if (resultCode == RESULT_OK + && (requestCode == REQUEST_CODE_OPEN_NODE || requestCode == REQUEST_CODE_NEW_NODE)) { + mNotesListAdapter.changeCursor(null); + } else if (requestCode == 1101) { + if (resultCode == RESULT_OK) { + callPrivateFolder(); + } else { + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) { + showScreenLockPwd(); + } + } + } else { + // 否则,调用父类的方法处理结果 + super.onActivityResult(requestCode, resultCode, data); + } + + } + + // 从raw资源文件中读取应用的介绍信息,并保存为一个笔记 + private void setAppInfoFromRawRes() { + // 获取SharedPreferences对象,用于存储设置信息 + SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(this); + // 如果没有添加过介绍信息,那么执行以下操作 + if (!sp.getBoolean(PREFERENCE_ADD_INTRODUCTION, false)) { + // 用于拼接介绍信息的文本 + StringBuilder sb = new StringBuilder(); + InputStream in = null; + try { + // 从raw资源文件中打开介绍信息的输入流 + in = getResources().openRawResource(R.raw.introduction); + if (in != null) { + // 用于读取输入流 + InputStreamReader isr = new InputStreamReader(in); + // 用于缓冲输入流 + BufferedReader br = new BufferedReader(isr); + // 用于存储读取到的字符 + char[] buf = new char[1024]; + int len = 0; + // 循环读取输入流中的字符,直到结束 + while ((len = br.read(buf)) > 0) { + sb.append(buf, 0, len); + } + } else { + // 如果输入流为空,那么打印错误日志并返回 + Log.e(TAG, "Read introduction file error"); + return; + } + } catch (IOException e) { + e.printStackTrace(); + return; + } finally { + if (in != null) { + try { + // 关闭输入流 + in.close(); + } catch (IOException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + } + + // 创建一个空的工作笔记对象,设置其所属文件夹,小部件ID,类型和颜色为默认值 + WorkingNote note = WorkingNote.createEmptyNote(this, Notes.ID_ROOT_FOLDER, + AppWidgetManager.INVALID_APPWIDGET_ID, Notes.TYPE_WIDGET_INVALIDE, + ResourceParser.RED); + // 设置工作笔记的文本为StringBuilder对象中的内容 + note.setWorkingText(sb.toString()); + // 保存工作笔记到数据库中 + if (note.saveNote()) { + sp.edit().putBoolean(PREFERENCE_ADD_INTRODUCTION, true).commit(); + } else { + Log.e(TAG, "Save introduction note error"); + return; + } + } + } + + // 在Activity的生命周期中开始时调用 + @Override + protected void onStart() { + super.onStart(); + // 开始异步查询笔记列表 + startAsyncNotesListQuery(); + } + + // 用来初始化一些资源 + private void initResources() { + // 获取内容解析器,用来操作数据库 + mContentResolver = this.getContentResolver(); + // 创建一个后台查询处理器,用来异步查询数据 + mBackgroundQueryHandler = new BackgroundQueryHandler(this.getContentResolver()); + // 设置当前文件夹的ID为根文件夹的ID + mCurrentFolderId = Notes.ID_ROOT_FOLDER; + // 获取笔记列表视图,用来显示笔记 + mNotesListView = (ListView) findViewById(R.id.notes_list); + // 给笔记列表视图添加一个脚部视图,用来显示更多选项 + mNotesListView.addFooterView(LayoutInflater.from(this).inflate(R.layout.note_list_footer, null), + null, false); + // 给笔记列表视图设置一个点击监听器,用来响应点击事件 + mNotesListView.setOnItemClickListener(new OnListItemClickListener()); + // 给笔记列表视图设置一个长按监听器,用来响应长按事件 + mNotesListView.setOnItemLongClickListener(this); + // 创建一个笔记列表适配器,用来绑定数据和视图 + mNotesListAdapter = new NotesListAdapter(this); + // 给笔记列表视图设置适配器 + mNotesListView.setAdapter(mNotesListAdapter); + // 获取添加新笔记的按钮,用来创建新笔记 + mAddNewNote = (Button) findViewById(R.id.btn_new_note); + // 给添加新笔记的按钮设置一个点击监听器,用来响应点击事件 + mAddNewNote.setOnClickListener(this); + // 给添加新笔记的按钮设置一个触摸监听器,用来响应触摸事件 + mAddNewNote.setOnTouchListener(new NewNoteOnTouchListener()); + // 初始化一个标志位,用来判断是否需要分发触摸事件 + mDispatch = false; + // 用来记录分发触摸事件时的Y坐标 + mDispatchY = 0; + // 用来记录触摸事件开始时的Y坐标 + mOriginY = 0; + // 获取标题栏视图,用来显示标题 + mTitleBar = (TextView) findViewById(R.id.tv_title_bar); + // 设置当前的列表编辑状态为普通状态 + mState = ListEditState.NOTE_LIST; + // 创建一个模式回调对象,用来处理上下文菜单的操作 + mModeCallBack = new ModeCallback(); + } + + // 用户长按列表视图的某一项时,弹出一个上下文菜单,让用户可以对选中的笔记进行一些操作 + private class ModeCallback implements ListView.MultiChoiceModeListener, OnMenuItemClickListener { + private DropdownMenu mDropDownMenu; + private ActionMode mActionMode; + private MenuItem mMoveMenu; + private MenuItem mMoveToPrivate; + private MenuItem mMoveToRoot; + + // 用户长按一个笔记时触发的,用于创建一个操作模式(ActionMode), + // 在这个模式下,用户可以对笔记进行一些操作,比如删除或移动 + public boolean onCreateActionMode(ActionMode mode, Menu menu) { + //从资源文件中加载菜单项 + getMenuInflater().inflate(R.menu.note_list_options, menu); + menu.findItem(R.id.move_to_root).setOnMenuItemClickListener(this); + menu.findItem(R.id.move_to_private).setOnMenuItemClickListener(this); + //找到删除菜单项,并设置点击监听器 + menu.findItem(R.id.delete).setOnMenuItemClickListener(this); + //找到移动菜单项,并保存为一个成员变量 + mMoveToPrivate = menu.findItem(R.id.move_to_private); + mMoveToRoot = menu.findItem(R.id.move_to_root); + mMoveMenu = menu.findItem(R.id.move); + //判断当前笔记是否属于通话记录文件夹,或者用户没有创建任何自定义文件夹, + //如果是,则隐藏移动菜单项,否则显示移动菜单项,并设置点击监听器 + if (mFocusNoteDataItem.getParentId() == Notes.ID_CALL_RECORD_FOLDER + || DataUtils.getUserFolderCount(mContentResolver) == 0) { + mMoveMenu.setVisible(false); + } else { + mMoveMenu.setVisible(true); + mMoveMenu.setOnMenuItemClickListener(this); + } + if (mFocusNoteDataItem.getParentId() == Notes.ID_PRIVATE_FOLDER) { + mAddNewNote.setVisibility(View.GONE); + mMoveToPrivate.setVisible(false); + mMoveToRoot.setVisible(true); + mMoveToRoot.setOnMenuItemClickListener(this); + } else{ + mAddNewNote.setVisibility(View.VISIBLE); + mMoveToPrivate.setVisible(true); + mMoveToRoot.setVisible(false); + mMoveToPrivate.setOnMenuItemClickListener(this); + } + //保存操作模式为一个成员变量 + mActionMode = mode; + //设置笔记列表适配器的选择模式为true,表示可以多选笔记 + mNotesListAdapter.setChoiceMode(true); + //设置笔记列表视图的长按可点击属性为false,表示不再响应长按事件 + mNotesListView.setLongClickable(false); + //隐藏添加新笔记的按钮 + mAddNewNote.setVisibility(View.GONE); + + //从布局文件中加载一个自定义视图,用于显示一个下拉菜单按钮 + View customView = LayoutInflater.from(NotesListActivity.this).inflate( + R.layout.note_list_dropdown_menu, null); + //将自定义视图设置为操作模式的自定义视图 + mode.setCustomView(customView); + //创建一个下拉菜单对象,绑定到自定义视图中的按钮,并从资源文件中加载下拉菜单项 + mDropDownMenu = new DropdownMenu(NotesListActivity.this, + (Button) customView.findViewById(R.id.selection_menu), + R.menu.note_list_dropdown); + //设置下拉菜单的点击监听器,当用户点击下拉菜单项时, + // 根据当前的选择状态,全选或取消全选所有笔记,并更新菜单项的状态 + mDropDownMenu.setOnDropdownMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() { + public boolean onMenuItemClick(MenuItem item) { + mNotesListAdapter.selectAll(!mNotesListAdapter.isAllSelected()); + updateMenu(); + return true; + } + + }); + //返回true表示创建操作模式成功 + return true; + } + + // 用于更新菜单项的状态和标题,根据当前选择的笔记的数量和是否全选 + private void updateMenu() { + //获取当前选择的笔记的数量 + int selectedCount = mNotesListAdapter.getSelectedCount(); + // Update dropdown menu + String format = getResources().getString(R.string.menu_select_title, selectedCount); + mDropDownMenu.setTitle(format); + //找到下拉菜单中的全选菜单项 + MenuItem item = mDropDownMenu.findItem(R.id.action_select_all); + //如果当前已经全选了所有笔记,则设置全选菜单项为选中状态,并修改标题为取消全选 + if (item != null) { + if (mNotesListAdapter.isAllSelected()) { + item.setChecked(true); + item.setTitle(R.string.menu_deselect_all); + } else { + //否则,设置全选菜单项为未选中状态,并修改标题为全选 + item.setChecked(false); + item.setTitle(R.string.menu_select_all); + } + } + } + + // 在操作模式准备显示之前调用,用于修改菜单项的状态或可见性, + // 返回true表示修改了菜单项,返回false表示没有修改 + public boolean onPrepareActionMode(ActionMode mode, Menu menu) { + // TODO Auto-generated method stub + return false; + } + + // 在用户点击操作模式中的菜单项时调用,用于处理相应的逻辑, + // 返回true表示处理了点击事件,返回false表示没有处理 + public boolean onActionItemClicked(ActionMode mode, MenuItem item) { + // TODO Auto-generated method stub + return false; + } + + // 在操作模式结束时调用,用于恢复笔记列表的正常状态 + public void onDestroyActionMode(ActionMode mode) { + //设置笔记列表适配器的选择模式为false,表示不再可以多选笔记 + mNotesListAdapter.setChoiceMode(false); + //设置笔记列表视图的长按可点击属性为true,表示可以响应长按事件 + mNotesListView.setLongClickable(true); + //显示添加新笔记的按钮 + mAddNewNote.setVisibility(View.VISIBLE); + } + + // 用于结束操作模式,调用操作模式的finish方法 + public void finishActionMode() { + mActionMode.finish(); + } + + // 在用户改变某个笔记的选择状态时调用,用于更新笔记列表适配器和菜单项的状态 + public void onItemCheckedStateChanged(ActionMode mode, int position, long id, + boolean checked) { + //设置笔记列表适配器中指定位置的笔记的选择状态 + mNotesListAdapter.setCheckedItem(position, checked); + //更新菜单项的状态和标题 + updateMenu(); + } + + // 在用户点击操作模式中的菜单项时调用,用于处理相应的逻辑 + public boolean onMenuItemClick(MenuItem item) { + //如果当前没有选择任何笔记,则弹出一个提示信息,并返回true表示处理了点击事件 + if (mNotesListAdapter.getSelectedCount() == 0) { + Toast.makeText(NotesListActivity.this, getString(R.string.menu_select_none), + Toast.LENGTH_SHORT).show(); + return true; + } + + //根据菜单项的id,执行不同的操作 + switch (item.getItemId()) { + case R.id.delete: + //创建一个对话框对象,用于提示用户是否确定删除所选笔记 + AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); + //设置对话框的标题、图标、消息和按钮 + builder.setTitle(getString(R.string.alert_title_delete)); + builder.setIcon(android.R.drawable.ic_dialog_alert); + builder.setMessage(getString(R.string.alert_message_delete_notes, + mNotesListAdapter.getSelectedCount())); + builder.setPositiveButton(android.R.string.ok, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, + int which) { + //如果用户点击确定按钮,则调用批量删除的方法 + batchDelete(); + } + }); + builder.setNegativeButton(android.R.string.cancel, null); + //显示对话框 + builder.show(); + break; + case R.id.move: + startQueryDestinationFolders(); + break; + case R.id.move_to_private: + movToPrivate(); + break; + case R.id.move_to_root: + movToRoot(); + + break; + default: + return false; + } + return true; + } + } + + // 用于处理添加新笔记按钮的触摸事件 + private class NewNoteOnTouchListener implements OnTouchListener { + // 用于处理触摸事件,参数v是被触摸的视图,参数event是触摸事件对象 + public boolean onTouch(View v, MotionEvent event) { + //根据触摸事件的类型,执行不同的操作 + switch (event.getAction()) { + case MotionEvent.ACTION_DOWN: { + //获取屏幕的显示对象 + Display display = getWindowManager().getDefaultDisplay(); + //获取屏幕的高度 + int screenHeight = display.getHeight(); + //获取添加新笔记按钮的高度 + int newNoteViewHeight = mAddNewNote.getHeight(); + //计算添加新笔记按钮的起始位置,即屏幕高度减去按钮高度 + int start = screenHeight - newNoteViewHeight; + //计算触摸事件的y坐标,即按钮起始位置加上触摸事件相对于按钮的y坐标 + int eventY = start + (int) event.getY(); + /** + * Minus TitleBar's height + */ + //如果当前是子文件夹模式,则需要减去标题栏的高度,因为标题栏会遮挡部分按钮 + if (mState == ListEditState.SUB_FOLDER) { + eventY -= mTitleBar.getHeight(); + start -= mTitleBar.getHeight(); + } + /** + * HACKME:When click the transparent part of "New Note" button, dispatch + * the event to the list view behind this button. The transparent part of + * "New Note" button could be expressed by formula y=-0.12x+94(Unit:pixel) + * and the line top of the button. The coordinate based on left of the "New + * Note" button. The 94 represents maximum height of the transparent part. + * Notice that, if the background of the button changes, the formula should + * also change. This is very bad, just for the UI designer's strong requirement. + */ + // 如果触摸事件发生在屏幕的左上角 + if (event.getY() < (event.getX() * (-0.12) + 94)) { + // 获取列表视图中最后一个可见的项目 + View view = mNotesListView.getChildAt(mNotesListView.getChildCount() - 1 + - mNotesListView.getFooterViewsCount()); + // 如果项目不为空,并且它的底部在起始位置下方,它的顶部在起始位置加上94的上方 + if (view != null && view.getBottom() > start + && (view.getTop() < (start + 94))) { + // 保存触摸事件的原始y坐标 + mOriginY = (int) event.getY(); + // 设置分发y坐标为当前y坐标 + mDispatchY = eventY; + // 设置触摸事件的位置为分发坐标 + event.setLocation(event.getX(), mDispatchY); + // 设置一个标志,表示触摸事件应该被分发给列表视图 + mDispatch = true; + // 将触摸事件分发给列表视图,并返回结果 + return mNotesListView.dispatchTouchEvent(event); + } + } + break; + } + // 如果触摸事件是一个移动动作 + case MotionEvent.ACTION_MOVE: { + // 如果标志设置为将触摸事件分发给列表视图 + if (mDispatch) { + // 更新分发y坐标,加上当前y坐标和原始y坐标的差值 + mDispatchY += (int) event.getY() - mOriginY; + // 设置触摸事件的位置为分发坐标 + event.setLocation(event.getX(), mDispatchY); + // 将触摸事件分发给列表视图,并返回结果 + return mNotesListView.dispatchTouchEvent(event); + } + break; + } + default: { + // 如果标志设置为将触摸事件分发给列表视图 + if (mDispatch) { + // 设置触摸事件的位置为分发坐标 + event.setLocation(event.getX(), mDispatchY); + // 重置标志为false + mDispatch = false; + // 将触摸事件分发给列表视图,并返回结果 + return mNotesListView.dispatchTouchEvent(event); + } + break; + } + } + // 如果没有满足以上任何条件,返回false + return false; + } + + } + + ; + + // 用来异步查询笔记列表 + private void startAsyncNotesListQuery() { + // 设置查询条件,如果当前文件夹的id是根文件夹的id,就用根文件夹的选择条件,否则用普通的选择条件 + String selection = (mCurrentFolderId == Notes.ID_ROOT_FOLDER) ? ROOT_FOLDER_SELECTION + : NORMAL_SELECTION; + mBackgroundQueryHandler.startQuery(FOLDER_NOTE_LIST_QUERY_TOKEN, null, + Notes.CONTENT_NOTE_URI, NoteItemData.PROJECTION, selection, new String[]{ + String.valueOf(mCurrentFolderId) + }, NoteColumns.TYPE + " DESC," + NoteColumns.MODIFIED_DATE + " DESC"); + } + + // 用来处理异步查询的结果 + private final class BackgroundQueryHandler extends AsyncQueryHandler { + public BackgroundQueryHandler(ContentResolver contentResolver) { + // 调用父类的构造方法,传入内容解析器 + super(contentResolver); + } + + // 当查询完成时,这个方法会被调用,传入查询标识符,对象和游标 + @Override + protected void onQueryComplete(int token, Object cookie, Cursor cursor) { + // 根据查询标识符进行不同的处理 + switch (token) { + // 如果是查询笔记列表的标识符 + case FOLDER_NOTE_LIST_QUERY_TOKEN: + // 改变笔记列表适配器的游标,更新数据 + mNotesListAdapter.changeCursor(cursor); + break; + // 如果是查询文件夹列表的标识符 + case FOLDER_LIST_QUERY_TOKEN: + // 如果游标不为空,并且有数据 + if (cursor != null && cursor.getCount() > 0) { + // 显示文件夹列表菜单,传入游标 + showFolderListMenu(cursor); + } else { + // 否则,打印错误日志,表示查询文件夹 + Log.e(TAG, "Query folder failed"); + } + break; + default: + return; + } + } + } + + // 用来显示文件夹列表菜单 + private void showFolderListMenu(Cursor cursor) { + // 创建一个对话框构建器,传入当前活动的上下文 + AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); + // 设置对话框的标题为选择文件夹 + builder.setTitle(R.string.menu_title_select_folder); + // 创建一个文件夹列表适配器,传入当前活动和游标 + final FoldersListAdapter adapter = new FoldersListAdapter(this, cursor); + // 设置对话框的适配器和点击监听器 + builder.setAdapter(adapter, new DialogInterface.OnClickListener() { + + // 当点击某个项目时,这个方法会被调用,传入对话框和项目的位置 + public void onClick(DialogInterface dialog, int which) { + // 调用数据工具类的方法,批量将选中的笔记移动到点击的文件夹中, + // 传入内容解析器,选中的笔记的id和点击的文件夹的id + DataUtils.batchMoveToFolder(mContentResolver, + mNotesListAdapter.getSelectedItemIds(), adapter.getItemId(which)); + Toast.makeText( + NotesListActivity.this, + getString(R.string.format_move_notes_to_folder, + mNotesListAdapter.getSelectedCount(), + adapter.getFolderName(NotesListActivity.this, which)), + // 显示一个短暂的提示信息,表示移动了多少个笔记到哪个文件夹 + Toast.LENGTH_SHORT).show(); + // 结束操作模式,取消选择 + mModeCallBack.finishActionMode(); + } + }); + // 显示对话框 + builder.show(); + } + + // 用来创建一个新的笔记 + private void createNewNote() { + // 创建一个意图,传入当前活动和笔记编辑活动的类对象 + Intent intent = new Intent(this, NoteEditActivity.class); + // 设置意图的动作为插入或编辑 + intent.setAction(Intent.ACTION_INSERT_OR_EDIT); + // 将当前文件夹的id作为额外数据放入意图中 + intent.putExtra(Notes.INTENT_EXTRA_FOLDER_ID, mCurrentFolderId); + // 启动一个新的活动,并期望返回结果,传入意图和请求码 + this.startActivityForResult(intent, REQUEST_CODE_NEW_NODE); + } + + // 用来批量删除笔记 + private void batchDelete() { + // 创建一个异步任务,传入空参数,空进度和小部件属性的集合 + new AsyncTask>() { + // 在后台线程执行的方法,传入空参数 + protected HashSet doInBackground(Void... unused) { + // 获取选中的小部件的属性集合 + HashSet widgets = mNotesListAdapter.getSelectedWidget(); + // 如果不是同步模式 + if (!isSyncMode()) { + // if not synced, delete notes directly + // 调用数据工具类的方法,直接删除选中的笔记,传入内容解析器和选中的笔记的id + if (DataUtils.batchDeleteNotes(mContentResolver, mNotesListAdapter + .getSelectedItemIds())) { + } else { + // 否则,打印错误日志,表示删除笔记出错,不应该发生 + Log.e(TAG, "Delete notes error, should not happens"); + } + } else { + // in sync mode, we'll move the deleted note into the trash + // folder + // 如果是同步模式,调用数据工具类的方法,将选中的笔记移动到回收站文件夹中, + // 传入内容解析器,选中的笔记的id和回收站文件夹的id + if (!DataUtils.batchMoveToFolder(mContentResolver, mNotesListAdapter + .getSelectedItemIds(), Notes.ID_TRASH_FOLER)) { + // 如果失败,打印错误日志,表示移动笔记到回收站文件夹出错,不应该发生 + Log.e(TAG, "Move notes to trash folder error, should not happens"); + } + } + // 返回小部件属性集合 + return widgets; + } + + // 在主线程执行的方法,传入小部件属性集合 + @Override + protected void onPostExecute(HashSet widgets) { + // 如果小部件属性集合不为空 + if (widgets != null) { + // 遍历每个小部件属性 + for (AppWidgetAttribute widget : widgets) { + // 如果小部件的id和类型都有效 + if (widget.widgetId != AppWidgetManager.INVALID_APPWIDGET_ID + && widget.widgetType != Notes.TYPE_WIDGET_INVALIDE) { + // 更新小部件,传入小部件的id和类型 + updateWidget(widget.widgetId, widget.widgetType); + } + } + } + // 结束操作模式,取消选择 + mModeCallBack.finishActionMode(); + } + }.execute(); // 执行异步任务 + } + + // 用于删除文件夹 + private void deleteFolder(long folderId) { + // 如果文件夹id是根文件夹的id,打印错误信息并返回 + if (folderId == Notes.ID_ROOT_FOLDER) { + Log.e(TAG, "Wrong folder id, should not happen " + folderId); + return; + } else if (folderId == Notes.ID_PRIVATE_FOLDER) { + Log.e(TAG, "Wrong folder id, should not happen " + folderId); + return; + } + + HashSet ids = new HashSet(); + ids.add(folderId); + // 获取文件夹中的笔记小部件 + HashSet widgets = DataUtils.getFolderNoteWidget(mContentResolver, + folderId); + if (!isSyncMode()) { + // if not synced, delete folder directly + DataUtils.batchDeleteNotes(mContentResolver, ids); + } else { + // in sync mode, we'll move the deleted folder into the trash folder + DataUtils.batchMoveToFolder(mContentResolver, ids, Notes.ID_TRASH_FOLER); + } + if (widgets != null) { + for (AppWidgetAttribute widget : widgets) { + // 如果小部件id和类型有效,更新小部件 + if (widget.widgetId != AppWidgetManager.INVALID_APPWIDGET_ID + && widget.widgetType != Notes.TYPE_WIDGET_INVALIDE) { + updateWidget(widget.widgetId, widget.widgetType); + } + } + } + } + + // 打开一个笔记 + private void openNode(NoteItemData data) { + Intent intent = new Intent(this, NoteEditActivity.class); + intent.setAction(Intent.ACTION_VIEW); + // 传递笔记的id作为额外参数 + intent.putExtra(Intent.EXTRA_UID, data.getId()); + // 启动笔记编辑活动,并期待返回结果 + this.startActivityForResult(intent, REQUEST_CODE_OPEN_NODE); + } + + // 打开一个文件夹,并显示其中的笔记列表 + private void openFolder(NoteItemData data) { + // 设置当前文件夹的id + mCurrentFolderId = data.getId(); + // 异步查询笔记列表 + startAsyncNotesListQuery(); + // 判断文件夹的类型,设置状态和视图 + if (data.getId() == Notes.ID_CALL_RECORD_FOLDER) { + // 如果是通话记录文件夹,设置状态为CALL_RECORD_FOLDER,并隐藏新建笔记按钮 + mState = ListEditState.CALL_RECORD_FOLDER; + mAddNewNote.setVisibility(View.GONE); + } else { + // 如果是其他文件夹,设置状态为SUB_FOLDER + mState = ListEditState.SUB_FOLDER; + } + // 设置标题栏的文本,如果是通话记录文件夹,显示固定的字符串,否则显示文件夹的名称 + if (data.getId() == Notes.ID_CALL_RECORD_FOLDER) { + mTitleBar.setText(R.string.call_record_folder_name); + } else { + mTitleBar.setText(data.getSnippet()); + } + // 显示标题栏 + mTitleBar.setVisibility(View.VISIBLE); + } + + // 处理点击事件 + public void onClick(View v) { + switch (v.getId()) { + // 如果点击的是新建笔记按钮,调用createNewNote方法 + case R.id.btn_new_note: + createNewNote(); + break; + default: + break; + } + } + + // 显示软键盘 + private void showSoftInput() { + // 获取输入法管理器对象 + InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); + if (inputMethodManager != null) { + // 强制显示软键盘 + inputMethodManager.toggleSoftInput(InputMethodManager.SHOW_FORCED, 0); + } + } + + // 隐藏软键盘 + private void hideSoftInput(View view) { + InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); + inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); + } + + //定义一个方法,根据参数create来显示创建或修改文件夹的对话框 + private void showCreateOrModifyFolderDialog(final boolean create) { + //创建一个AlertDialog.Builder对象,用于构建对话框 + final AlertDialog.Builder builder = new AlertDialog.Builder(this); + // 从布局文件中加载一个View对象,用于显示对话框的内容 + View view = LayoutInflater.from(this).inflate(R.layout.dialog_edit_text, null); + //从View对象中获取一个EditText对象,用于输入文件夹的名称 + final EditText etName = (EditText) view.findViewById(R.id.et_foler_name); + showSoftInput(); + //判断create参数是否为false,如果是,表示要修改文件夹的名称 + if (!create) { + //判断mFocusNoteDataItem是否不为空,如果是,表示有选中的文件夹 + if (mFocusNoteDataItem != null) { + //设置EditText对象的文本为选中文件夹的名称 + etName.setText(mFocusNoteDataItem.getSnippet()); + //设置对话框的标题为“修改文件夹名称” + builder.setTitle(getString(R.string.menu_folder_change_name)); + } else { + //否则,打印一条错误日志,并返回 + Log.e(TAG, "The long click data item is null"); + return; + } + } else { + //否则,表示要创建文件夹 + //设置EditText对象的文本为空 + etName.setText(""); + //设置对话框的标题为“新文件夹” + builder.setTitle(this.getString(R.string.menu_create_folder)); + } + + //设置对话框的确定按钮,点击后不做任何操作(需要在后面重写点击事件) + builder.setPositiveButton(android.R.string.ok, null); + //设置对话框的取消按钮,点击后调用一个方法,隐藏软键盘,并传入EditText对象作为参数 + builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + hideSoftInput(etName); + } + }); + + // 设置对话框的视图,并显示 + final Dialog dialog = builder.setView(view).show(); + // 根据ID找到正面按钮,然后将其转换为Button类型 + final Button positive = (Button) dialog.findViewById(android.R.id.button1); + // 设置positive按钮的点击事件 + positive.setOnClickListener(new OnClickListener() { + public void onClick(View v) { + // 隐藏软键盘 + hideSoftInput(etName); + // 获取输入框中的文件夹名 + String name = etName.getText().toString(); + // 检查文件夹名是否已存在 + if (DataUtils.checkVisibleFolderName(mContentResolver, name)) { + // 如果已存在,弹出提示信息 + Toast.makeText(NotesListActivity.this, getString(R.string.folder_exist, name), + Toast.LENGTH_LONG).show(); + // 选中输入框中的所有文本 + etName.setSelection(0, etName.length()); + // 返回,不执行后续操作 + return; + } + // 如果不是创建模式,而是修改模式 + if (!create) { + // 如果输入框中有内容 + if (!TextUtils.isEmpty(name)) { + // 创建一个ContentValues对象,用于存放更新的数据 + ContentValues values = new ContentValues(); + // 将文件夹名作为便签片段存入values + values.put(NoteColumns.SNIPPET, name); + // 将便签类型设为文件夹类型存入values + values.put(NoteColumns.TYPE, Notes.TYPE_FOLDER); + // 将本地修改标志设为1存入values + values.put(NoteColumns.LOCAL_MODIFIED, 1); + // 根据便签ID更新数据库中的数据 + mContentResolver.update(Notes.CONTENT_NOTE_URI, values, NoteColumns.ID + + "=?", new String[]{ + String.valueOf(mFocusNoteDataItem.getId()) + }); + } + } else if (!TextUtils.isEmpty(name)) { + // 如果是创建模式,并且输入框中有内容 + // 创建一个ContentValues对象,用于存放插入的数据 + ContentValues values = new ContentValues(); + // 将文件夹名作为便签片段存入values + values.put(NoteColumns.SNIPPET, name); + // 将便签类型设为文件夹类型存入values + values.put(NoteColumns.TYPE, Notes.TYPE_FOLDER); + // 插入一条新的数据到数据库中 + mContentResolver.insert(Notes.CONTENT_NOTE_URI, values); + } + // 关闭对话框 + dialog.dismiss(); + } + }); + + // 如果输入框中没有内容,禁用positive按钮 + if (TextUtils.isEmpty(etName.getText())) { + positive.setEnabled(false); + } + /** + * When the name edit text is null, disable the positive button + */ + // 为输入框添加文本变化的监听器 + etName.addTextChangedListener(new TextWatcher() { + // 在文本变化之前的回调方法 + public void beforeTextChanged(CharSequence s, int start, int count, int after) { + // TODO Auto-generated method stub + + } + + // 在文本变化之前的回调方法 + public void onTextChanged(CharSequence s, int start, int before, int count) { + // 如果输入框中没有内容,禁用positive按钮 + if (TextUtils.isEmpty(etName.getText())) { + positive.setEnabled(false); + } else { + positive.setEnabled(true); + } + } + + // 在文本变化之后的回调方法 + public void afterTextChanged(Editable s) { + // TODO Auto-generated method stub + + } + }); + } + + // 当用户按下返回键时执行 + @Override + public void onBackPressed() { + switch (mState) { + case PRIVATE_FOLDER: + mCurrentFolderId = Notes.ID_ROOT_FOLDER; + mState = ListEditState.NOTE_LIST; + //开始异步查询笔记列表 + startAsyncNotesListQuery(); + //隐藏标题栏 + mTitleBar.setVisibility(View.GONE); + mAddNewNote.setVisibility(View.VISIBLE); + break; + case SUB_FOLDER: + //如果当前状态是子文件夹,那么返回到根文件夹 + mCurrentFolderId = Notes.ID_ROOT_FOLDER; + mState = ListEditState.NOTE_LIST; + //开始异步查询笔记列表 + startAsyncNotesListQuery(); + //隐藏标题栏 + mTitleBar.setVisibility(View.GONE); + break; + case CALL_RECORD_FOLDER: + //如果当前状态是通话记录文件夹,那么返回到根文件夹 + mCurrentFolderId = Notes.ID_ROOT_FOLDER; + mState = ListEditState.NOTE_LIST; + //显示添加新笔记的按钮 + mAddNewNote.setVisibility(View.VISIBLE); + //隐藏标题栏 + mTitleBar.setVisibility(View.GONE); + //开始异步查询笔记列表 + startAsyncNotesListQuery(); + break; + case NOTE_LIST: + //如果当前状态是笔记列表,那么直接调用父类的方法 + super.onBackPressed(); + break; + default: + break; + } + } + + // 用来更新小部件 + private void updateWidget(int appWidgetId, int appWidgetType) { + //创建一个更新小部件的意图 + Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE); + if (appWidgetType == Notes.TYPE_WIDGET_2X) { + //如果小部件类型是2x,那么设置意图的类为NoteWidgetProvider_2x + intent.setClass(this, NoteWidgetProvider_2x.class); + } else if (appWidgetType == Notes.TYPE_WIDGET_4X) { + //如果小部件类型是4x,那么设置意图的类为NoteWidgetProvider_4x + intent.setClass(this, NoteWidgetProvider_4x.class); + } else { + //如果小部件类型不支持,那么打印错误日志并返回 + Log.e(TAG, "Unspported widget type"); + return; + } + + //将小部件的id放入意图中 + intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, new int[]{ + appWidgetId + }); + + //发送广播更新小部件 + sendBroadcast(intent); + //设置结果为成功,并将意图返回给调用者 + setResult(RESULT_OK, intent); + } + + // 定义一个私有的最终变量,用于创建上下文菜单的监听器 + private final OnCreateContextMenuListener mFolderOnCreateContextMenuListener = new OnCreateContextMenuListener() { + // 重写onCreateContextMenu方法,用于在长按文件夹时弹出菜单 + public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { + // 如果当前聚焦的笔记数据项不为空 + if (mFocusNoteDataItem != null) { + // 设置菜单的标题为笔记的摘要 + menu.setHeaderTitle(mFocusNoteDataItem.getSnippet()); + // 添加菜单项,分别为查看文件夹、删除文件夹和修改文件夹名称,指定id和顺序 + menu.add(0, MENU_FOLDER_VIEW, 0, R.string.menu_folder_view); + menu.add(0, MENU_FOLDER_DELETE, 0, R.string.menu_folder_delete); + menu.add(0, MENU_FOLDER_CHANGE_NAME, 0, R.string.menu_folder_change_name); + } + } + }; + + //当上下文菜单关闭时,执行以下操作 + @Override + public void onContextMenuClosed(Menu menu) { + //如果笔记列表视图不为空,就取消设置上下文菜单监听器 + if (mNotesListView != null) { + mNotesListView.setOnCreateContextMenuListener(null); + } + //调用父类的方法 + super.onContextMenuClosed(menu); + } + + //当上下文菜单中的某一项被选择时,执行以下操作 + @Override + public boolean onContextItemSelected(MenuItem item) { + //如果长按的数据项为空,就打印错误日志并返回false + if (mFocusNoteDataItem == null) { + Log.e(TAG, "The long click data item is null"); + return false; + } + //根据选择的菜单项的id,执行不同的操作 + switch (item.getItemId()) { + //如果选择了查看文件夹,就打开对应的文件夹 + case MENU_FOLDER_VIEW: + openFolder(mFocusNoteDataItem); + break; + //如果选择了删除文件夹,就弹出一个对话框,询问用户是否确定删除 + case MENU_FOLDER_DELETE: + AlertDialog.Builder builder = new AlertDialog.Builder(this); + //设置对话框的标题 + builder.setTitle(getString(R.string.alert_title_delete)); + //设置对话框的图标 + builder.setIcon(android.R.drawable.ic_dialog_alert); + //设置对话框的内容 + builder.setMessage(getString(R.string.alert_message_delete_folder)); + //设置对话框的确定按钮和点击事件 + builder.setPositiveButton(android.R.string.ok, + new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + //删除文件夹 + deleteFolder(mFocusNoteDataItem.getId()); + } + }); + //设置对话框的取消按钮和点击事件 + builder.setNegativeButton(android.R.string.cancel, null); + builder.show();//显示对话框 + break; + //如果选择了修改文件夹名称,就显示一个创建或修改文件夹的对话框 + case MENU_FOLDER_CHANGE_NAME: + showCreateOrModifyFolderDialog(false); + break; + default: + break; + } + + //返回true表示处理了上下文菜单事件 + return true; + } + + // 重写onPrepareOptionsMenu方法,用于在准备选项菜单时根据不同的状态显示不同的菜单 + @Override + public boolean onPrepareOptionsMenu(Menu menu) { + // 清空菜单 + menu.clear(); + // 如果当前状态是笔记列表 + if (mState == ListEditState.NOTE_LIST) { + // 从note_list.xml文件中加载菜单项 + getMenuInflater().inflate(R.menu.note_list, menu); + // set sync or sync_cancel + menu.findItem(R.id.menu_sync).setTitle( + GTaskSyncService.isSyncing() ? R.string.menu_sync_cancel : R.string.menu_sync); + } else if (mState == ListEditState.SUB_FOLDER) { + // 如果当前状态是子文件夹 + // 从sub_folder.xml文件中加载菜单项 + getMenuInflater().inflate(R.menu.sub_folder, menu); + } else if (mState == ListEditState.CALL_RECORD_FOLDER) { + // 如果当前状态是通话记录文件夹 + // 从call_record_folder.xml文件中加载菜单项 + getMenuInflater().inflate(R.menu.call_record_folder, menu); + } else if (mState == ListEditState.PRIVATE_FOLDER) { + getMenuInflater().inflate(R.menu.private_folder_menu, menu); + } else { + // 如果当前状态不属于以上任何一种 + // 打印错误日志,显示错误的状态 + Log.e(TAG, "Wrong state:" + mState); + } + // 返回true表示显示菜单 + return true; + } + + // 重写onOptionsItemSelected方法,用于处理选项菜单的点击事件 + @Override + public boolean onOptionsItemSelected(MenuItem item) { + // 根据菜单项的id进行分支判断 + switch (item.getItemId()) { + // 如果点击了新建文件夹菜单项 + case R.id.menu_new_folder: { + // 显示创建或修改文件夹的对话框,传入true表示是创建模式 + showCreateOrModifyFolderDialog(true); + break; + } + // 如果点击了导出文本菜单项 + case R.id.menu_export_text: { + // 调用导出笔记到文本的方法 + exportNoteToText(); + break; + } + // 如果点击了同步菜单项 + case R.id.menu_sync: { + // 如果当前是同步模式 + if (isSyncMode()) { + // 如果菜单项的标题是同步 + if (TextUtils.equals(item.getTitle(), getString(R.string.menu_sync))) { + // 调用GTaskSyncService的startSync方法,开始同步 + GTaskSyncService.startSync(this); + } else { + // 如果菜单项的标题是取消同步 + // 调用GTaskSyncService的cancelSync方法,取消同步 + GTaskSyncService.cancelSync(this); + } + } else { + // 如果当前不是同步模式 + // 调用启动偏好设置活动的方法 + startPreferenceActivity(); + } + break; + } + case R.id.menu_setting: { + // 如果点击了设置菜单项 + // 调用启动偏好设置活动的方法 + startPreferenceActivity(); + break; + } + case R.id.menu_new_note: { + // 如果点击了新建笔记菜单项 + // 调用创建新笔记的方法 + createNewNote(); + break; + } + case R.id.menu_search: + // 如果点击了搜索菜单项 + // 调用onSearchRequested方法,启动搜索界面 + onSearchRequested(); + break; + case R.id.private_folder: + showScreenLockPwd(); + break; + case R.id.backToRoot: + backToRoot(); + default: + break; + } + // 返回true表示处理了菜单项的点击事件 + return true; + } + + + // 用于启动搜索界面 + @Override + public boolean onSearchRequested() { + // 调用startSearch方法,传入null表示不指定搜索的初始值, + // false表示不显示搜索提示,null表示不传递额外的数据,false表示不使用全局搜索 + startSearch(null, false, null /* appData */, false); + // 返回true表示处理了搜索请求 + return true; + } + + // 用于到处笔记到文本文件 + private void exportNoteToText() { + // 获取一个BackupUtils的实例,传入当前活动的上下文 + final BackupUtils backup = BackupUtils.getInstance(NotesListActivity.this); + // 创建一个异步任务,用于在后台线程执行导出操作 + new AsyncTask() { + + // 重写doInBackground方法,用于执行导出操作,并返回一个整数表示导出的结果 + @Override + protected Integer doInBackground(Void... unused) { + return backup.exportToText(); + } + + // 重写onPostExecute方法,用于在主线程处理导出的结果 + @Override + protected void onPostExecute(Integer result) { + // 如果导出的结果是SD卡未挂载 + if (result == BackupUtils.STATE_SD_CARD_UNMOUONTED) { + // 创建一个对话框构造器,传入当前活动的上下文 + AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); + // 设置对话框的标题为导出失败 + builder.setTitle(NotesListActivity.this + .getString(R.string.failed_sdcard_export)); + // 设置对话框的内容为SD卡未挂载的错误信息 + builder.setMessage(NotesListActivity.this + .getString(R.string.error_sdcard_unmounted)); + // 设置对话框的确定按钮,不指定点击事件 + builder.setPositiveButton(android.R.string.ok, null); + builder.show();// 显示对话框 + } else if (result == BackupUtils.STATE_SUCCESS) { + // 如果导出的结果是成功 + // 创建一个对话框构造器,传入当前活动的上下文 + AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); + // 设置对话框的标题为导出成功 + builder.setTitle(NotesListActivity.this + .getString(R.string.success_sdcard_export)); + // 设置对话框的内容为导出文件的名称和位置 + builder.setMessage(NotesListActivity.this.getString( + R.string.format_exported_file_location, backup + .getExportedTextFileName(), backup.getExportedTextFileDir())); + // 设置对话框的确定按钮,不指定点击事件 + builder.setPositiveButton(android.R.string.ok, null); + builder.show(); + } else if (result == BackupUtils.STATE_SYSTEM_ERROR) { + // 如果导出的结果是系统错误 + // 创建一个对话框构造器,传入当前活动的上下文 + AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); + // 设置对话框的标题为导出失败 + builder.setTitle(NotesListActivity.this + .getString(R.string.failed_sdcard_export)); + builder.setMessage(NotesListActivity.this + .getString(R.string.error_sdcard_export)); + builder.setPositiveButton(android.R.string.ok, null); + builder.show(); + } + } + + }.execute();// 调用execute方法,启动异步任务 + } + + // 用于判断是否是同步模式 + private boolean isSyncMode() { + // 调用NotesPreferenceActivity的getSyncAccountName方法,获取同步账户的名称,并去除两端的空格, + // 如果长度大于0,说明有同步账户,返回true,否则返回false + return NotesPreferenceActivity.getSyncAccountName(this).trim().length() > 0; + } + + // 用于启动偏好设置活动 + private void startPreferenceActivity() { + // 获取当前活动的父活动,如果没有父活动,则使用当前活动 + Activity from = getParent() != null ? getParent() : this; + // 创建一个意图对象,指定从当前活动或父活动跳转到NotesPreferenceActivity + Intent intent = new Intent(from, NotesPreferenceActivity.class); + // 传入意图对象和-1表示不指定请求码,如果需要则启动活动 + from.startActivityIfNeeded(intent, -1); + } + + // 用于处理列表项的点击事件 + private class OnListItemClickListener implements OnItemClickListener { + + // 重写onItemClick方法,传入父视图,点击的视图,点击的位置和点击的id + public void onItemClick(AdapterView parent, View view, int position, long id) { + if (view instanceof NotesListItem) { + // 获取该视图对应的笔记数据项 + NoteItemData item = ((NotesListItem) view).getItemData(); + // 如果笔记列表适配器处于选择模式 + if (mNotesListAdapter.isInChoiceMode()) { + // 如果笔记数据项的类型是普通笔记 + if (item.getType() == Notes.TYPE_NOTE) { + // 计算点击的位置,减去列表视图的头部视图数 + position = position - mNotesListView.getHeaderViewsCount(); + // 调用模式回调的onItemCheckedStateChanged方法, + // 传入null表示不指定操作模式,传入位置和id,以及取反后的选择状态, + // 用于改变列表项的选择状态 + mModeCallBack.onItemCheckedStateChanged(null, position, id, + !mNotesListAdapter.isSelectedItem(position)); + } + return; + } + + // 根据当前状态进行分支判断 + switch (mState) { + case PRIVATE_FOLDER: + // 如果当前状态是笔记列表 + case NOTE_LIST: + // 如果笔记数据项的类型是文件夹或系统文件夹 + if (item.getType() == Notes.TYPE_FOLDER + || item.getType() == Notes.TYPE_SYSTEM) { + // 调用打开文件夹的方法,传入笔记数据项 + openFolder(item); + } else if (item.getType() == Notes.TYPE_NOTE) { + // 如果笔记数据项的类型是普通笔记 + // 调用打开笔记的方法,传入笔记数据项 + openNode(item); + } else { + // 如果笔记数据项的类型不属于以上任何一种 + // 打印错误日志,显示错误的笔记类型 + Log.e(TAG, "Wrong note type in NOTE_LIST"); + } + break; + // 如果当前状态是子文件夹 + case SUB_FOLDER: + // 或者当前状态是通话记录文件夹 + case CALL_RECORD_FOLDER: + if (item.getType() == Notes.TYPE_NOTE) { + // 如果笔记数据项的类型是普通笔记 + // 调用打开笔记的方法,传入笔记数据项 + openNode(item); + } else { + // 如果笔记数据项的类型不是普通笔记 + // 打印错误日志,显示错误的笔记类型 + Log.e(TAG, "Wrong note type in SUB_FOLDER"); + } + break; + default: + break; + } + } + } + + } + + // 用于启动查询目标文件夹的操作 + private void startQueryDestinationFolders() { + // 用于存储查询条件,表示笔记的类型是文件夹,且父id不是回收站文件夹,且id不是当前文件夹 + String selection = NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>? AND " + NoteColumns.ID + "<>?"; + + // 如果当前状态是笔记列表,不改变查询条件, + // 否则在查询条件的基础上增加一个或条件,表示id等于根文件夹 + selection = (mState == ListEditState.NOTE_LIST) ? selection : + "(" + selection + ") OR (" + NoteColumns.ID + "=" + Notes.ID_ROOT_FOLDER + ")"; + + // 调用后台查询处理器的startQuery方法,传入文件夹列表查询标记, + // null表示不指定cookie对象,笔记内容的uri,文件夹列表适配器的投影数组,查询条件和参数数组,以及按修改日期降序排序 + mBackgroundQueryHandler.startQuery(FOLDER_LIST_QUERY_TOKEN, + null, + Notes.CONTENT_NOTE_URI, + FoldersListAdapter.PROJECTION, + selection, + new String[]{ + String.valueOf(Notes.TYPE_FOLDER), + String.valueOf(Notes.ID_TRASH_FOLER), + String.valueOf(mCurrentFolderId) + }, + NoteColumns.MODIFIED_DATE + " DESC"); + } + + // 用于处理列表项的长按事件,传入父视图,长按的视图,长按的位置和长按的id + public boolean onItemLongClick(AdapterView parent, View view, int position, long id) { + // 如果长按的视图是一个NotesListItem + if (view instanceof NotesListItem) { + // 获取该视图对应的笔记数据项,并赋值给mFocusNoteDataItem变量 + mFocusNoteDataItem = ((NotesListItem) view).getItemData(); + // 如果笔记数据项的类型是普通笔记,并且笔记列表适配器不处于选择模式 + if (mFocusNoteDataItem.getType() == Notes.TYPE_NOTE && !mNotesListAdapter.isInChoiceMode()) { + // 如果调用列表视图的startActionMode方法,并传入模式回调对象,返回不为空 + if (mNotesListView.startActionMode(mModeCallBack) != null) { + // 传入null表示不指定操作模式,传入位置和id,以及true表示选中该列表项 + mModeCallBack.onItemCheckedStateChanged(null, position, id, true); + // 传入长按常量,表示触发触觉反馈 + mNotesListView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS); + } else { + // 如果调用列表视图的startActionMode方法失败 + // 打印错误日志,显示启动操作模式失败 + Log.e(TAG, "startActionMode fails"); + } + } else if (mFocusNoteDataItem.getType() == Notes.TYPE_FOLDER) { + // 如果笔记数据项的类型是文件夹 + // 调用列表视图的setOnCreateContextMenuListener方法, + // 并传入文件夹创建上下文菜单监听器对象,表示设置该监听器为创建上下文菜单的监听器 + mNotesListView.setOnCreateContextMenuListener(mFolderOnCreateContextMenuListener); + } + } + // 返回false表示不消费长按事件 + return false; + } + + /*newthing*/ + private void movToPrivate() { + new AsyncTask>() { + // 在后台线程执行的方法,传入空参数 + protected HashSet doInBackground(Void... unused) { + // 获取选中的小部件的属性集合 + HashSet widgets = mNotesListAdapter.getSelectedWidget(); + // 如果不是同步模式 + // if not synced, delete notes directly + // 调用数据工具类的方法,直接删除选中的笔记,传入内容解析器和选中的笔记的id + if (DataUtils.batchMoveToFolder(mContentResolver, mNotesListAdapter + .getSelectedItemIds(), Notes.ID_PRIVATE_FOLDER)) { + } + // 返回小部件属性集合 + return widgets; + } + + // 在主线程执行的方法,传入小部件属性集合 + @Override + protected void onPostExecute(HashSet widgets) { + // 如果小部件属性集合不为空 + if (widgets != null) { + // 遍历每个小部件属性 + for (AppWidgetAttribute widget : widgets) { + // 如果小部件的id和类型都有效 + if (widget.widgetId != AppWidgetManager.INVALID_APPWIDGET_ID + && widget.widgetType != Notes.TYPE_WIDGET_INVALIDE) { + // 更新小部件,传入小部件的id和类型 + updateWidget(widget.widgetId, widget.widgetType); + } + } + } + // 结束操作模式,取消选择 + mModeCallBack.finishActionMode(); + } + }.execute(); // 执行异步任务 + } + + private void backToRoot() { + mTitleBar.setVisibility(View.GONE); + mCurrentFolderId = Notes.ID_ROOT_FOLDER; + startAsyncNotesListQuery(); + mState = ListEditState.NOTE_LIST; + mAddNewNote.setVisibility(View.VISIBLE); + } + + private void callPrivateFolder() { + mTitleBar.setVisibility(View.VISIBLE); + mTitleBar.setText("---------This is where Secret lieS---------"); + mCurrentFolderId = Notes.ID_PRIVATE_FOLDER; + startAsyncNotesListQuery(); + mState = ListEditState.PRIVATE_FOLDER; + mAddNewNote.setVisibility(View.GONE); + } + @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) + public void showScreenLockPwd() { + KeyguardManager mKeyguardMgr = null; + if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { + mKeyguardMgr = getSystemService(KeyguardManager.class); + } + Intent intent = mKeyguardMgr.createConfirmDeviceCredentialIntent(null, null); + if (intent != null) { + startActivityForResult(intent, 1101); + } else { + Toast.makeText(this, "intent==null", Toast.LENGTH_LONG).show(); + } + } + private void movToRoot() { + new AsyncTask>() { + // 在后台线程执行的方法,传入空参数 + protected HashSet doInBackground(Void... unused) { + // 获取选中的小部件的属性集合 + HashSet widgets = mNotesListAdapter.getSelectedWidget(); + // 如果不是同步模式 + // if not synced, delete notes directly + // 调用数据工具类的方法,直接删除选中的笔记,传入内容解析器和选中的笔记的id + if (DataUtils.batchMoveToFolder(mContentResolver, mNotesListAdapter + .getSelectedItemIds(), Notes.ID_ROOT_FOLDER)) { + } + // 返回小部件属性集合 + return widgets; + } + + // 在主线程执行的方法,传入小部件属性集合 + @Override + protected void onPostExecute(HashSet widgets) { + // 如果小部件属性集合不为空 + if (widgets != null) { + // 遍历每个小部件属性 + for (AppWidgetAttribute widget : widgets) { + // 如果小部件的id和类型都有效 + if (widget.widgetId != AppWidgetManager.INVALID_APPWIDGET_ID + && widget.widgetType != Notes.TYPE_WIDGET_INVALIDE) { + // 更新小部件,传入小部件的id和类型 + updateWidget(widget.widgetId, widget.widgetType); + } + } + } + // 结束操作模式,取消选择 + mModeCallBack.finishActionMode(); + } + }.execute(); // 执行异步任务 + } +} + diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListAdapter.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListAdapter.java new file mode 100644 index 0000000..af6f2fd --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListAdapter.java @@ -0,0 +1,198 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.Context; +import android.database.Cursor; +import android.util.Log; +import android.view.View; +import android.view.ViewGroup; +import android.widget.CursorAdapter; + +import net.micode.notes.data.Notes; + +import java.util.Collection; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Iterator; + + +// 用于创建笔记应用的列表适配器 +public class NotesListAdapter extends CursorAdapter { + private static final String TAG = "NotesListAdapter"; + private Context mContext; + private HashMap mSelectedIndex; + private int mNotesCount; + private boolean mChoiceMode; + + public static class AppWidgetAttribute { + public int widgetId; + public int widgetType; + }; + + public NotesListAdapter(Context context) { + super(context, null); + mSelectedIndex = new HashMap(); + mContext = context; + mNotesCount = 0; + } + + @Override + public View newView(Context context, Cursor cursor, ViewGroup parent) { + return new NotesListItem(context); + } + + // 用于绑定视图和数据 + @Override + public void bindView(View view, Context context, Cursor cursor) { + if (view instanceof NotesListItem) { + NoteItemData itemData = new NoteItemData(context, cursor); + ((NotesListItem) view).bind(context, itemData, mChoiceMode, + isSelectedItem(cursor.getPosition())); + } + } + + // 设置勾选框,并更新视图 + public void setCheckedItem(final int position, final boolean checked) { + mSelectedIndex.put(position, checked); + notifyDataSetChanged(); + } + + // 判断单选按钮是否勾选 + public boolean isInChoiceMode() { + return mChoiceMode; + } + + // 设置单项选项框 + public void setChoiceMode(boolean mode) { + mSelectedIndex.clear(); + mChoiceMode = mode; + } + + // 根据参数checked,选择或取消选择所有的便签项 + public void selectAll(boolean checked) { + Cursor cursor = getCursor(); + for (int i = 0; i < getCount(); i++) { + if (cursor.moveToPosition(i)) { + if (NoteItemData.getNoteType(cursor) == Notes.TYPE_NOTE) { + setCheckedItem(i, checked); + } + } + } + } + + // 获取所有选中的项的id + public HashSet getSelectedItemIds() { + HashSet itemSet = new HashSet(); + for (Integer position : mSelectedIndex.keySet()) { + if (mSelectedIndex.get(position) == true) { + Long id = getItemId(position); + if (id == Notes.ID_ROOT_FOLDER) { + Log.d(TAG, "Wrong item id, should not happen"); + } else { + itemSet.add(id); + } + } + } + + return itemSet; + } + + // 获取所有选中的项的小部件属性 + public HashSet getSelectedWidget() { + HashSet itemSet = new HashSet(); + for (Integer position : mSelectedIndex.keySet()) { + if (mSelectedIndex.get(position) == true) { + Cursor c = (Cursor) getItem(position); + if (c != null) { + AppWidgetAttribute widget = new AppWidgetAttribute(); + NoteItemData item = new NoteItemData(mContext, c); + widget.widgetId = item.getWidgetId(); + widget.widgetType = item.getWidgetType(); + itemSet.add(widget); + /** + * Don't close cursor here, only the adapter could close it + */ + } else { + Log.e(TAG, "Invalid cursor"); + return null; + } + } + } + return itemSet; + } + + // 获取选中的项的数量,并返回一个整数。 + public int getSelectedCount() { + Collection values = mSelectedIndex.values(); + if (null == values) { + return 0; + } + Iterator iter = values.iterator(); + int count = 0; + while (iter.hasNext()) { + if (true == iter.next()) { + count++; + } + } + return count; + } + + // 判断是否所有项都被选中 + public boolean isAllSelected() { + int checkedCount = getSelectedCount(); + return (checkedCount != 0 && checkedCount == mNotesCount); + } + + // 判断是否被选中 + public boolean isSelectedItem(final int position) { + if (null == mSelectedIndex.get(position)) { + return false; + } + return mSelectedIndex.get(position); + } + + // 内容发生变化时,重新计算便签数量 + @Override + protected void onContentChanged() { + super.onContentChanged(); + calcNotesCount(); + } + + // 光标发生变动时,回调该函数计算便签数量 + @Override + public void changeCursor(Cursor cursor) { + super.changeCursor(cursor); + calcNotesCount(); + } + + // 计算便签数量 + private void calcNotesCount() { + mNotesCount = 0; + for (int i = 0; i < getCount(); i++) { + Cursor c = (Cursor) getItem(i); + if (c != null) { + if (NoteItemData.getNoteType(c) == Notes.TYPE_NOTE) { + mNotesCount++; + } + } else { + Log.e(TAG, "Invalid cursor"); + return; + } + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListItem.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListItem.java new file mode 100644 index 0000000..dad78e7 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesListItem.java @@ -0,0 +1,131 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.content.Context; +import android.text.format.DateUtils; +import android.view.View; +import android.widget.CheckBox; +import android.widget.ImageView; +import android.widget.LinearLayout; +import android.widget.TextView; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.tool.DataUtils; +import net.micode.notes.tool.ResourceParser.NoteItemBgResources; + + +//创建便签列表项目选项 +public class NotesListItem extends LinearLayout { + private ImageView mAlert; + private TextView mTitle; + private TextView mTime; + private TextView mCallName; + private NoteItemData mItemData; + private CheckBox mCheckBox; + + + public NotesListItem(Context context) { + super(context); + inflate(context, R.layout.note_item, this); + mAlert = (ImageView) findViewById(R.id.iv_alert_icon); + mTitle = (TextView) findViewById(R.id.tv_title); + mTime = (TextView) findViewById(R.id.tv_time); + mCallName = (TextView) findViewById(R.id.tv_name); + mCheckBox = (CheckBox) findViewById(android.R.id.checkbox); + } + + // 绑定数据和视图 + public void bind(Context context, NoteItemData data, boolean choiceMode, boolean checked) { + // 如果是多选模式并且数据是便签类型,就将复选框设置为可见 + // 让用户可以在多选模式下选择或取消选择便签项 + if (choiceMode && data.getType() == Notes.TYPE_NOTE) { + mCheckBox.setVisibility(View.VISIBLE); + // 设置是否选中 + mCheckBox.setChecked(checked); + } else { + mCheckBox.setVisibility(View.GONE); + } + + mItemData = data; + // 根据数据的id和父id,设置不同的标题,时间,图标和呼叫名 + if (data.getId() == Notes.ID_CALL_RECORD_FOLDER) { + mCallName.setVisibility(View.GONE); + mAlert.setVisibility(View.VISIBLE); + mTitle.setTextAppearance(context, R.style.TextAppearancePrimaryItem); + mTitle.setText(context.getString(R.string.call_record_folder_name) + + context.getString(R.string.format_folder_files_count, data.getNotesCount())); + mAlert.setImageResource(R.drawable.call_record); + } else if (data.getParentId() == Notes.ID_CALL_RECORD_FOLDER) { + mCallName.setVisibility(View.VISIBLE); + mCallName.setText(data.getCallName()); + mTitle.setTextAppearance(context,R.style.TextAppearanceSecondaryItem); + mTitle.setText(DataUtils.getFormattedSnippet(data.getSnippet())); + if (data.hasAlert()) { + mAlert.setImageResource(R.drawable.clock); + mAlert.setVisibility(View.VISIBLE); + } else { + mAlert.setVisibility(View.GONE); + } + } else { + mCallName.setVisibility(View.GONE); + mTitle.setTextAppearance(context, R.style.TextAppearancePrimaryItem); + + if (data.getType() == Notes.TYPE_FOLDER) { + mTitle.setText(data.getSnippet() + + context.getString(R.string.format_folder_files_count, + data.getNotesCount())); + mAlert.setVisibility(View.GONE); + } else { + mTitle.setText(DataUtils.getFormattedSnippet(data.getSnippet())); + if (data.hasAlert()) { + mAlert.setImageResource(R.drawable.clock); + mAlert.setVisibility(View.VISIBLE); + } else { + mAlert.setVisibility(View.GONE); + } + } + } + mTime.setText(DateUtils.getRelativeTimeSpanString(data.getModifiedDate())); + + setBackground(data); + } + + // 根据传入的数据设置背景颜色 + private void setBackground(NoteItemData data) { + int id = data.getBgColorId(); + if (data.getType() == Notes.TYPE_NOTE) { + if (data.isSingle() || data.isOneFollowingFolder()) { + setBackgroundResource(NoteItemBgResources.getNoteBgSingleRes(id)); + } else if (data.isLast()) { + setBackgroundResource(NoteItemBgResources.getNoteBgLastRes(id)); + } else if (data.isFirst() || data.isMultiFollowingFolder()) { + setBackgroundResource(NoteItemBgResources.getNoteBgFirstRes(id)); + } else { + setBackgroundResource(NoteItemBgResources.getNoteBgNormalRes(id)); + } + } else { + setBackgroundResource(NoteItemBgResources.getFolderBgRes()); + } + } + + // 获取视图板顶的数据对象 + public NoteItemData getItemData() { + return mItemData; + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java new file mode 100644 index 0000000..5134c10 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java @@ -0,0 +1,414 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.ui; + +import android.accounts.Account; +import android.accounts.AccountManager; +import android.app.ActionBar; +import android.app.AlertDialog; +import android.content.BroadcastReceiver; +import android.content.ContentValues; +import android.content.Context; +import android.content.DialogInterface; +import android.content.Intent; +import android.content.IntentFilter; +import android.content.SharedPreferences; +import android.os.Bundle; +import android.preference.Preference; +import android.preference.Preference.OnPreferenceClickListener; +import android.preference.PreferenceActivity; +import android.preference.PreferenceCategory; +import android.text.TextUtils; +import android.text.format.DateFormat; +import android.view.LayoutInflater; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.Button; +import android.widget.TextView; +import android.widget.Toast; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.gtask.remote.GTaskSyncService; + + +public class NotesPreferenceActivity extends PreferenceActivity { + public static final String PREFERENCE_NAME = "notes_preferences"; + + public static final String PREFERENCE_SYNC_ACCOUNT_NAME = "pref_key_account_name"; + + public static final String PREFERENCE_LAST_SYNC_TIME = "pref_last_sync_time"; + + public static final String PREFERENCE_SET_BG_COLOR_KEY = "pref_key_bg_random_appear"; + + private static final String PREFERENCE_SYNC_ACCOUNT_KEY = "pref_sync_account_key"; + + private static final String AUTHORITIES_FILTER_KEY = "authorities"; + + private PreferenceCategory mAccountCategory; + + private GTaskReceiver mReceiver; + + private Account[] mOriAccounts; + + private boolean mHasAddedAccount; + + // 在活动创建时执行一些初始化操作 + @Override + protected void onCreate(Bundle icicle) { + super.onCreate(icicle); + + /* using the app icon for navigation */ + getActionBar().setDisplayHomeAsUpEnabled(true); + + // 从xml文件中加载活动的偏好设置 + addPreferencesFromResource(R.xml.preferences); + mAccountCategory = (PreferenceCategory) findPreference(PREFERENCE_SYNC_ACCOUNT_KEY); + mReceiver = new GTaskReceiver(); + IntentFilter filter = new IntentFilter(); + filter.addAction(GTaskSyncService.GTASK_SERVICE_BROADCAST_NAME); + registerReceiver(mReceiver, filter); + + mOriAccounts = null; + // 从xml文件中加载了一个视图,并赋值给header这个局部变量 + View header = LayoutInflater.from(this).inflate(R.layout.settings_header, null); + // 将这个视图添加到列表的头部 + getListView().addHeaderView(header, null, true); + } + + @Override + protected void onResume() { + super.onResume(); + + // need to set sync account automatically if user has added a new + // account + if (mHasAddedAccount) { + Account[] accounts = getGoogleAccounts(); + if (mOriAccounts != null && accounts.length > mOriAccounts.length) { + for (Account accountNew : accounts) { + boolean found = false; + for (Account accountOld : mOriAccounts) { + if (TextUtils.equals(accountOld.name, accountNew.name)) { + found = true; + break; + } + } + if (!found) { + setSyncAccount(accountNew.name); + break; + } + } + } + } + // 刷新用户界面 + refreshUI(); + } + + // 在活动销毁时执行一些清理操作 + @Override + protected void onDestroy() { + if (mReceiver != null) { + unregisterReceiver(mReceiver); + } + super.onDestroy(); + } + + // 加载账户相关的偏好设置 + private void loadAccountPreference() { + mAccountCategory.removeAll(); + + Preference accountPref = new Preference(this); + final String defaultAccount = getSyncAccountName(this); + accountPref.setTitle(getString(R.string.preferences_account_title)); + accountPref.setSummary(getString(R.string.preferences_account_summary)); + accountPref.setOnPreferenceClickListener(new OnPreferenceClickListener() { + public boolean onPreferenceClick(Preference preference) { + if (!GTaskSyncService.isSyncing()) { + if (TextUtils.isEmpty(defaultAccount)) { + // the first time to set account + showSelectAccountAlertDialog(); + } else { + // if the account has already been set, we need to promp + // user about the risk + showChangeAccountConfirmAlertDialog(); + } + } else { + Toast.makeText(NotesPreferenceActivity.this, + R.string.preferences_toast_cannot_change_account, Toast.LENGTH_SHORT) + .show(); + } + return true; + } + }); + + mAccountCategory.addPreference(accountPref); + } + + // 加载同步按钮和同步状态的显示 + private void loadSyncButton() { + Button syncButton = (Button) findViewById(R.id.preference_sync_button); + TextView lastSyncTimeView = (TextView) findViewById(R.id.prefenerece_sync_status_textview); + + // set button state + if (GTaskSyncService.isSyncing()) { + syncButton.setText(getString(R.string.preferences_button_sync_cancel)); + syncButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View v) { + GTaskSyncService.cancelSync(NotesPreferenceActivity.this); + } + }); + } else { + syncButton.setText(getString(R.string.preferences_button_sync_immediately)); + syncButton.setOnClickListener(new View.OnClickListener() { + public void onClick(View v) { + GTaskSyncService.startSync(NotesPreferenceActivity.this); + } + }); + } + syncButton.setEnabled(!TextUtils.isEmpty(getSyncAccountName(this))); + + // set last sync time + if (GTaskSyncService.isSyncing()) { + lastSyncTimeView.setText(GTaskSyncService.getProgressString()); + lastSyncTimeView.setVisibility(View.VISIBLE); + } else { + long lastSyncTime = getLastSyncTime(this); + if (lastSyncTime != 0) { + lastSyncTimeView.setText(getString(R.string.preferences_last_sync_time, + DateFormat.format(getString(R.string.preferences_last_sync_time_format), + lastSyncTime))); + lastSyncTimeView.setVisibility(View.VISIBLE); + } else { + lastSyncTimeView.setVisibility(View.GONE); + } + } + } + + // 刷新界面 + private void refreshUI() { + loadAccountPreference(); + loadSyncButton(); + } + + // 显示账户选择的对话框并进行账户的设置 + private void showSelectAccountAlertDialog() { + AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this); + + // 设置标题以及子标题内容 + View titleView = LayoutInflater.from(this).inflate(R.layout.account_dialog_title, null); + TextView titleTextView = (TextView) titleView.findViewById(R.id.account_dialog_title); + titleTextView.setText(getString(R.string.preferences_dialog_select_account_title)); + TextView subtitleTextView = (TextView) titleView.findViewById(R.id.account_dialog_subtitle); + subtitleTextView.setText(getString(R.string.preferences_dialog_select_account_tips)); + + // 设置对话框的自定义标题 + dialogBuilder.setCustomTitle(titleView); + dialogBuilder.setPositiveButton(null, null); + + // 获取同步账户信息 + Account[] accounts = getGoogleAccounts(); + String defAccount = getSyncAccountName(this); + + mOriAccounts = accounts; + mHasAddedAccount = false; + + // 如果账户不为空 + if (accounts.length > 0) { + CharSequence[] items = new CharSequence[accounts.length]; + final CharSequence[] itemMapping = items; + int checkedItem = -1; + int index = 0; + for (Account account : accounts) { + if (TextUtils.equals(account.name, defAccount)) { + checkedItem = index; + } + items[index++] = account.name; + } + // 在对话框建立一个单选的复选框 + dialogBuilder.setSingleChoiceItems(items, checkedItem, + new DialogInterface.OnClickListener() { + //设置点击后执行的事件,包括检录新同步账户和刷新标签界面 + public void onClick(DialogInterface dialog, int which) { + setSyncAccount(itemMapping[which].toString()); + dialog.dismiss(); + refreshUI(); + } + }); + } + + View addAccountView = LayoutInflater.from(this).inflate(R.layout.add_account_text, null); + dialogBuilder.setView(addAccountView); + + final AlertDialog dialog = dialogBuilder.show(); + addAccountView.setOnClickListener(new View.OnClickListener() { + public void onClick(View v) { + mHasAddedAccount = true; + Intent intent = new Intent("android.settings.ADD_ACCOUNT_SETTINGS"); + intent.putExtra(AUTHORITIES_FILTER_KEY, new String[] { + "gmail-ls" + }); + startActivityForResult(intent, -1); + dialog.dismiss(); + } + }); + } + + // 显示一个更改账户的确认对话框 + private void showChangeAccountConfirmAlertDialog() { + AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this); + + // 根据同步修改的账户信息设置标题以及子标题的内容 + View titleView = LayoutInflater.from(this).inflate(R.layout.account_dialog_title, null); + TextView titleTextView = (TextView) titleView.findViewById(R.id.account_dialog_title); + titleTextView.setText(getString(R.string.preferences_dialog_change_account_title, + getSyncAccountName(this))); + TextView subtitleTextView = (TextView) titleView.findViewById(R.id.account_dialog_subtitle); + subtitleTextView.setText(getString(R.string.preferences_dialog_change_account_warn_msg)); + // 设置对话框的自定义标题 + dialogBuilder.setCustomTitle(titleView); + + CharSequence[] menuItemArray = new CharSequence[] { + getString(R.string.preferences_menu_change_account), + getString(R.string.preferences_menu_remove_account), + getString(R.string.preferences_menu_cancel) + }; + dialogBuilder.setItems(menuItemArray, new DialogInterface.OnClickListener() { + public void onClick(DialogInterface dialog, int which) { + if (which == 0) { + showSelectAccountAlertDialog(); + } else if (which == 1) { + removeSyncAccount(); + refreshUI(); + } + } + }); + dialogBuilder.show(); + } + + // 获取谷歌账户 + private Account[] getGoogleAccounts() { + AccountManager accountManager = AccountManager.get(this); + return accountManager.getAccountsByType("com.google"); + } + + // 设置同步账户 + private void setSyncAccount(String account) { + if (!getSyncAccountName(this).equals(account)) { + SharedPreferences settings = getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); + SharedPreferences.Editor editor = settings.edit(); + if (account != null) { + editor.putString(PREFERENCE_SYNC_ACCOUNT_NAME, account); + } else { + editor.putString(PREFERENCE_SYNC_ACCOUNT_NAME, ""); + } + editor.commit(); + + // clean up last sync time + setLastSyncTime(this, 0); + + // clean up local gtask related info + new Thread(new Runnable() { + public void run() { + ContentValues values = new ContentValues(); + values.put(NoteColumns.GTASK_ID, ""); + values.put(NoteColumns.SYNC_ID, 0); + getContentResolver().update(Notes.CONTENT_NOTE_URI, values, null, null); + } + }).start(); + + Toast.makeText(NotesPreferenceActivity.this, + getString(R.string.preferences_toast_success_set_accout, account), + Toast.LENGTH_SHORT).show(); + } + } + + // 删除同步账户 + private void removeSyncAccount() { + SharedPreferences settings = getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); + SharedPreferences.Editor editor = settings.edit(); + if (settings.contains(PREFERENCE_SYNC_ACCOUNT_NAME)) { + editor.remove(PREFERENCE_SYNC_ACCOUNT_NAME); + } + if (settings.contains(PREFERENCE_LAST_SYNC_TIME)) { + editor.remove(PREFERENCE_LAST_SYNC_TIME); + } + editor.commit(); + + // clean up local gtask related info + new Thread(new Runnable() { + public void run() { + ContentValues values = new ContentValues(); + values.put(NoteColumns.GTASK_ID, ""); + values.put(NoteColumns.SYNC_ID, 0); + getContentResolver().update(Notes.CONTENT_NOTE_URI, values, null, null); + } + }).start(); + } + + // 获取同步账户名称 + public static String getSyncAccountName(Context context) { + SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, + Context.MODE_PRIVATE); + return settings.getString(PREFERENCE_SYNC_ACCOUNT_NAME, ""); + } + + // 设置最终同步时间 + public static void setLastSyncTime(Context context, long time) { + SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, + Context.MODE_PRIVATE); + SharedPreferences.Editor editor = settings.edit(); + editor.putLong(PREFERENCE_LAST_SYNC_TIME, time); + editor.commit(); + } + + // 获取最终同步时间 + public static long getLastSyncTime(Context context) { + SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, + Context.MODE_PRIVATE); + return settings.getLong(PREFERENCE_LAST_SYNC_TIME, 0); + } + + // 接收同步状态和信息 + private class GTaskReceiver extends BroadcastReceiver { + + @Override + public void onReceive(Context context, Intent intent) { + refreshUI(); + if (intent.getBooleanExtra(GTaskSyncService.GTASK_SERVICE_BROADCAST_IS_SYNCING, false)) { + TextView syncStatus = (TextView) findViewById(R.id.prefenerece_sync_status_textview); + syncStatus.setText(intent + .getStringExtra(GTaskSyncService.GTASK_SERVICE_BROADCAST_PROGRESS_MSG)); + } + + } + } + + // 处理菜单选项 + public boolean onOptionsItemSelected(MenuItem item) { + switch (item.getItemId()) { + case android.R.id.home: + Intent intent = new Intent(this, NotesListActivity.class); + intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); + startActivity(intent); + return true; + default: + return false; + } + } +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java new file mode 100644 index 0000000..4661c89 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.widget; +import android.app.PendingIntent; +import android.appwidget.AppWidgetManager; +import android.appwidget.AppWidgetProvider; +import android.content.ContentValues; +import android.content.Context; +import android.content.Intent; +import android.database.Cursor; +import android.util.Log; +import android.widget.RemoteViews; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.data.Notes.NoteColumns; +import net.micode.notes.tool.ResourceParser; +import net.micode.notes.ui.NoteEditActivity; +import net.micode.notes.ui.NotesListActivity; + +public abstract class NoteWidgetProvider extends AppWidgetProvider { + public static final String [] PROJECTION = new String [] { + NoteColumns.ID, + NoteColumns.BG_COLOR_ID, + NoteColumns.SNIPPET + };//定义字符串数组PROJECTION,包含IDB G_COLOR_ID SNIPPET三个元素 + + public static final int COLUMN_ID = 0; + public static final int COLUMN_BG_COLOR_ID = 1; + public static final int COLUMN_SNIPPET = 2;//定义三个元素初始量 + + private static final String TAG = "NoteWidgetProvider"; + + @Override + public void onDeleted(Context context, int[] appWidgetIds) {//创建一个ContentValues对象values存储键值对数据 + ContentValues values = new ContentValues(); + values.put(NoteColumns.WIDGET_ID, AppWidgetManager.INVALID_APPWIDGET_ID);//将无效小部件id存储ContentValues中 + for (int i = 0; i < appWidgetIds.length; i++) { + context.getContentResolver().update(Notes.CONTENT_NOTE_URI, + values, + NoteColumns.WIDGET_ID + "=?", + new String[] { String.valueOf(appWidgetIds[i])});//通过getcontent函数获取程序contentValues对象,用update方法更新 + } + } + + private Cursor getNoteWidgetInfo(Context context, int widgetId) { + return context.getContentResolver().query(Notes.CONTENT_NOTE_URI, + PROJECTION,//获取ContentResovler对象,并用querty方法查询数据· + NoteColumns.WIDGET_ID + "=? AND " + NoteColumns.PARENT_ID + "<>?", + new String[] { String.valueOf(widgetId), String.valueOf(Notes.ID_TRASH_FOLER) }, + null); + }//null表示默认排序方式 + + protected void update(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { + update(context, appWidgetManager, appWidgetIds, false); + } + + private void update(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds, + boolean privacyMode) { + for (int i = 0; i < appWidgetIds.length; i++) {//判断当前小部件id是否合法,若合法才可进行操作 + if (appWidgetIds[i] != AppWidgetManager.INVALID_APPWIDGET_ID) { + int bgId = ResourceParser.getDefaultBgId(context);//获取默认背景图片id,并将其作为当前部件的背景 + String snippet = ""; + Intent intent = new Intent(context, NoteEditActivity.class); + intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP);//创建internet对象,设置flag标志 + intent.putExtra(Notes.INTENT_EXTRA_WIDGET_ID, appWidgetIds[i]); + intent.putExtra(Notes.INTENT_EXTRA_WIDGET_TYPE, getWidgetType()); + + Cursor c = getNoteWidgetInfo(context, appWidgetIds[i]); + if (c != null && c.moveToFirst()) { + if (c.getCount() > 1) { + Log.e(TAG, "Multiple message with same widget id:" + appWidgetIds[i]); + c.close(); + return; + }//判断数据库查询结果c是否为空,若查询结果大于1,则记录日志错误并返回 + snippet = c.getString(COLUMN_SNIPPET); + bgId = c.getInt(COLUMN_BG_COLOR_ID); + intent.putExtra(Intent.EXTRA_UID, c.getLong(COLUMN_ID)); + intent.setAction(Intent.ACTION_VIEW);//将当前记录id作为extra数据存入启动internet对象中 + } else { + snippet = context.getResources().getString(R.string.widget_havenot_content); + intent.setAction(Intent.ACTION_INSERT_OR_EDIT);//// 数据库查询结果为空或者未能成功移动到第一条记录时,将片段内容设置为默认字符串 + } + + if (c != null) { + c.close(); + } + + RemoteViews rv = new RemoteViews(context.getPackageName(), getLayoutId()); + rv.setImageViewResource(R.id.widget_bg_image, getBgResourceId(bgId)); + intent.putExtra(Notes.INTENT_EXTRA_BACKGROUND_ID, bgId); + /** + * Generate the pending intent to start host for the widget + */ + PendingIntent pendingIntent = null; + if (privacyMode) {// 判断是否处于隐私模式 + rv.setTextViewText(R.id.widget_text, + context.getString(R.string.widget_under_visit_mode)); + pendingIntent = PendingIntent.getActivity(context, appWidgetIds[i], new Intent( + context, NotesListActivity.class), PendingIntent.FLAG_UPDATE_CURRENT);// 如果是,将小部件文本设置为“访问模式下”,并创建一个PendingIntent,使点击小部件时跳转至NotesListActivity + } else { + rv.setTextViewText(R.id.widget_text, snippet); + pendingIntent = PendingIntent.getActivity(context, appWidgetIds[i], intent, + PendingIntent.FLAG_UPDATE_CURRENT); + }// 如果不是,将小部件文本设置为片段内容,并创建一个PendingIntent,使点击小部件时跳转至NoteEditActivity + + rv.setOnClickPendingIntent(R.id.widget_text, pendingIntent); + appWidgetManager.updateAppWidget(appWidgetIds[i], rv); + } + } + } + + protected abstract int getBgResourceId(int bgId); + + protected abstract int getLayoutId(); + + protected abstract int getWidgetType();//获取背景资源id,布局资源id,小部件类型 +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider_2x.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider_2x.java new file mode 100644 index 0000000..40dd783 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider_2x.java @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.widget; + +import android.appwidget.AppWidgetManager; +import android.content.Context; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.tool.ResourceParser; + + +public class NoteWidgetProvider_2x extends NoteWidgetProvider { + @Override + public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { + super.update(context, appWidgetManager, appWidgetIds); + }//NoteWidgetProvider_2x是一个继承自NoteWidgetProvider的小部件提供者,用于显示2x大小的便签小部件。 + //调用父类的update方法,更新小部件UI界面 + + @Override + protected int getLayoutId() { + return R.layout.widget_2x; + }//获取2x大小便签小部件布局资源ID,由子类具体实现 + + @Override + protected int getBgResourceId(int bgId) { + return ResourceParser.WidgetBgResources.getWidget2xBgResource(bgId); + }//获取2x大小便签小部件背景资源ID,由子类具体实现。 + + @Override + protected int getWidgetType() { + return Notes.TYPE_WIDGET_2X; + }//获取小部件类型,由子类具体实现,返回值为Notes.TYPE_WIDGET_2X +} diff --git a/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider_4x.java b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider_4x.java new file mode 100644 index 0000000..6a3b077 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider_4x.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package net.micode.notes.widget; + +import android.appwidget.AppWidgetManager; +import android.content.Context; + +import net.micode.notes.R; +import net.micode.notes.data.Notes; +import net.micode.notes.tool.ResourceParser; + + +public class NoteWidgetProvider_4x extends NoteWidgetProvider { + @Override + public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { + super.update(context, appWidgetManager, appWidgetIds); + }//NoteWidgetProvider_4x是一个继承自NoteWidgetProvider的小部件提供者,用于显示4x大小的便签小部件。 + //调用父类的update方法,更新小部件UI界面 + + protected int getLayoutId() { + return R.layout.widget_4x; + }//获取4x大小便签小部件布局资源ID,由子类具体实现 + + @Override + protected int getBgResourceId(int bgId) { + return ResourceParser.WidgetBgResources.getWidget4xBgResource(bgId); + }//获取4x大小便签小部件背景资源ID,由子类具体实现。 + + @Override + protected int getWidgetType() { + return Notes.TYPE_WIDGET_4X; + }//获取小部件类型,由子类具体实现,返回值为Notes.TYPE_WIDGET_4X +} diff --git a/other/软件原完成代码/minotes/app/src/main/res/color/primary_text_dark.xml b/other/软件原完成代码/minotes/app/src/main/res/color/primary_text_dark.xml new file mode 100644 index 0000000..7c85459 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/color/primary_text_dark.xml @@ -0,0 +1,22 @@ + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/color/secondary_text_dark.xml b/other/软件原完成代码/minotes/app/src/main/res/color/secondary_text_dark.xml new file mode 100644 index 0000000..c1c2384 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/color/secondary_text_dark.xml @@ -0,0 +1,20 @@ + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/bg_btn_set_color.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/bg_btn_set_color.png new file mode 100644 index 0000000..5eb5d44 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/bg_btn_set_color.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/bg_color_btn_mask.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/bg_color_btn_mask.png new file mode 100644 index 0000000..100db77 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/bg_color_btn_mask.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/call_record.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/call_record.png new file mode 100644 index 0000000..fb88ca4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/call_record.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/clock.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/clock.png new file mode 100644 index 0000000..5f2ae9a Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/clock.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/delete.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/delete.png new file mode 100644 index 0000000..643de3e Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/delete.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/dropdown_icon.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/dropdown_icon.9.png new file mode 100644 index 0000000..5525025 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/dropdown_icon.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_blue.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_blue.9.png new file mode 100644 index 0000000..55a1856 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_blue.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_green.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_green.9.png new file mode 100644 index 0000000..2cb2d60 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_green.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_red.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_red.9.png new file mode 100644 index 0000000..bae944a Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_red.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_blue.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_blue.9.png new file mode 100644 index 0000000..96e6092 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_blue.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_green.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_green.9.png new file mode 100644 index 0000000..08d8644 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_green.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_red.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_red.9.png new file mode 100644 index 0000000..9c430e5 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_red.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_white.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_white.9.png new file mode 100644 index 0000000..19e8d95 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_white.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_yellow.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_yellow.9.png new file mode 100644 index 0000000..bf8f580 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_title_yellow.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_white.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_white.9.png new file mode 100644 index 0000000..918f7a6 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_white.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_yellow.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_yellow.9.png new file mode 100644 index 0000000..10cb642 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/edit_yellow.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_color_green.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_color_green.png new file mode 100644 index 0000000..1f3b2fa Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_color_green.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_large.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_large.png new file mode 100644 index 0000000..78cf2e6 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_large.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_normal.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_normal.png new file mode 100644 index 0000000..9de7ced Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_normal.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_size_selector_bg.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_size_selector_bg.9.png new file mode 100644 index 0000000..be8e64c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_size_selector_bg.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_small.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_small.png new file mode 100644 index 0000000..d3ff104 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_small.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_super.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_super.png new file mode 100644 index 0000000..85b13a1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/font_super.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/icon_app.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/icon_app.png new file mode 100644 index 0000000..418aadc Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/icon_app.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_background.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_background.png new file mode 100644 index 0000000..087e1f9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_background.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_down.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_down.9.png new file mode 100644 index 0000000..b88eebf Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_down.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_middle.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_middle.9.png new file mode 100644 index 0000000..96b1c8b Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_middle.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_single.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_single.9.png new file mode 100644 index 0000000..d7e7206 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_single.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_up.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_up.9.png new file mode 100644 index 0000000..632e88c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_blue_up.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_folder.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_folder.9.png new file mode 100644 index 0000000..829f61b Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_folder.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_footer_bg.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_footer_bg.9.png new file mode 100644 index 0000000..5325c25 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_footer_bg.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_down.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_down.9.png new file mode 100644 index 0000000..64a39d9 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_down.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_middle.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_middle.9.png new file mode 100644 index 0000000..897325a Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_middle.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_single.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_single.9.png new file mode 100644 index 0000000..c83405f Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_single.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_up.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_up.9.png new file mode 100644 index 0000000..141f9e1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_green_up.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_down.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_down.9.png new file mode 100644 index 0000000..4224309 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_down.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_middle.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_middle.9.png new file mode 100644 index 0000000..9988f17 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_middle.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_single.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_single.9.png new file mode 100644 index 0000000..587c348 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_single.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_up.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_up.9.png new file mode 100644 index 0000000..46b4757 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_red_up.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_down.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_down.9.png new file mode 100644 index 0000000..29f9d8c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_down.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_middle.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_middle.9.png new file mode 100644 index 0000000..77a4ab4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_middle.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_single.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_single.9.png new file mode 100644 index 0000000..3e79189 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_single.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_up.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_up.9.png new file mode 100644 index 0000000..e23cd5c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_white_up.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_down.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_down.9.png new file mode 100644 index 0000000..31cfc1e Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_down.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_middle.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_middle.9.png new file mode 100644 index 0000000..b6549b2 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_middle.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_single.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_single.9.png new file mode 100644 index 0000000..3faf507 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_single.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_up.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_up.9.png new file mode 100644 index 0000000..4ae791c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/list_yellow_up.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/menu_delete.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/menu_delete.png new file mode 100644 index 0000000..ccdfc4b Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/menu_delete.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/menu_move.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/menu_move.png new file mode 100644 index 0000000..1140b71 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/menu_move.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/new_note_normal.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/new_note_normal.png new file mode 100644 index 0000000..e24e0d1 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/new_note_normal.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/new_note_pressed.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/new_note_pressed.png new file mode 100644 index 0000000..c748936 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/new_note_pressed.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/note_edit_color_selector_panel.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/note_edit_color_selector_panel.png new file mode 100644 index 0000000..fc49552 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/note_edit_color_selector_panel.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/notification.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/notification.png new file mode 100644 index 0000000..b13ab4a Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/notification.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/search_result.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/search_result.png new file mode 100644 index 0000000..ff2befd Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/search_result.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/selected.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/selected.png new file mode 100644 index 0000000..b889bef Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/selected.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/title_alert.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/title_alert.png new file mode 100644 index 0000000..544ee9c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/title_alert.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/title_bar_bg.9.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/title_bar_bg.9.png new file mode 100644 index 0000000..eb6bff0 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/title_bar_bg.9.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_blue.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_blue.png new file mode 100644 index 0000000..a1707f4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_blue.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_green.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_green.png new file mode 100644 index 0000000..f86886c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_green.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_red.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_red.png new file mode 100644 index 0000000..0e66c29 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_red.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_white.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_white.png new file mode 100644 index 0000000..5f0619a Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_white.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_yellow.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_yellow.png new file mode 100644 index 0000000..12d1c2b Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_2x_yellow.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_blue.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_blue.png new file mode 100644 index 0000000..9183738 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_blue.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_green.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_green.png new file mode 100644 index 0000000..fa8b452 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_green.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_red.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_red.png new file mode 100644 index 0000000..62de074 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_red.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_white.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_white.png new file mode 100644 index 0000000..a37d67c Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_white.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_yellow.png b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_yellow.png new file mode 100644 index 0000000..d7c5fa4 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable-hdpi/widget_4x_yellow.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable/menu_invisible.png b/other/软件原完成代码/minotes/app/src/main/res/drawable/menu_invisible.png new file mode 100644 index 0000000..697e637 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable/menu_invisible.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable/menu_visible.png b/other/软件原完成代码/minotes/app/src/main/res/drawable/menu_visible.png new file mode 100644 index 0000000..4e48481 Binary files /dev/null and b/other/软件原完成代码/minotes/app/src/main/res/drawable/menu_visible.png differ diff --git a/other/软件原完成代码/minotes/app/src/main/res/drawable/new_note.xml b/other/软件原完成代码/minotes/app/src/main/res/drawable/new_note.xml new file mode 100644 index 0000000..2154ebc --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/drawable/new_note.xml @@ -0,0 +1,23 @@ + + + + + + + + diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/account_dialog_title.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/account_dialog_title.xml new file mode 100644 index 0000000..7717112 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/account_dialog_title.xml @@ -0,0 +1,43 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/add_account_text.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/add_account_text.xml new file mode 100644 index 0000000..c799178 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/add_account_text.xml @@ -0,0 +1,32 @@ + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/datetime_picker.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/datetime_picker.xml new file mode 100644 index 0000000..f10d592 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/datetime_picker.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/dialog_edit_text.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/dialog_edit_text.xml new file mode 100644 index 0000000..361b39a --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/dialog_edit_text.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/folder_list_item.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/folder_list_item.xml new file mode 100644 index 0000000..77e8148 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/folder_list_item.xml @@ -0,0 +1,29 @@ + + + + + + + + \ No newline at end of file diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/note_edit.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/note_edit.xml new file mode 100644 index 0000000..a9caac7 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/note_edit.xml @@ -0,0 +1,564 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/note_edit_list_item.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/note_edit_list_item.xml new file mode 100644 index 0000000..a885f9c --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/note_edit_list_item.xml @@ -0,0 +1,39 @@ + + + + + + + + + + diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/note_item.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/note_item.xml new file mode 100644 index 0000000..d541f6a --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/note_item.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/other/软件原完成代码/minotes/app/src/main/res/layout/note_list.xml b/other/软件原完成代码/minotes/app/src/main/res/layout/note_list.xml new file mode 100644 index 0000000..a398d98 --- /dev/null +++ b/other/软件原完成代码/minotes/app/src/main/res/layout/note_list.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + +