diff --git a/doc/ui包解析.docx b/doc/ui包解析.docx new file mode 100644 index 00000000..4342c584 Binary files /dev/null and b/doc/ui包解析.docx differ diff --git a/src/.gradle/8.0/executionHistory/executionHistory.bin b/src/.gradle/8.0/executionHistory/executionHistory.bin index 25fbc7ca..92297e0e 100644 Binary files a/src/.gradle/8.0/executionHistory/executionHistory.bin and b/src/.gradle/8.0/executionHistory/executionHistory.bin differ diff --git a/src/.gradle/8.0/executionHistory/executionHistory.lock b/src/.gradle/8.0/executionHistory/executionHistory.lock index ef602d25..57c1495c 100644 Binary files a/src/.gradle/8.0/executionHistory/executionHistory.lock and b/src/.gradle/8.0/executionHistory/executionHistory.lock differ diff --git a/src/.gradle/8.0/fileHashes/fileHashes.bin b/src/.gradle/8.0/fileHashes/fileHashes.bin index 06f06a44..00ed59f4 100644 Binary files a/src/.gradle/8.0/fileHashes/fileHashes.bin and b/src/.gradle/8.0/fileHashes/fileHashes.bin differ diff --git a/src/.gradle/8.0/fileHashes/fileHashes.lock b/src/.gradle/8.0/fileHashes/fileHashes.lock index 3fbcd24e..274434ac 100644 Binary files a/src/.gradle/8.0/fileHashes/fileHashes.lock and b/src/.gradle/8.0/fileHashes/fileHashes.lock differ diff --git a/src/.gradle/8.0/fileHashes/resourceHashesCache.bin b/src/.gradle/8.0/fileHashes/resourceHashesCache.bin index 766f6518..aa84132a 100644 Binary files a/src/.gradle/8.0/fileHashes/resourceHashesCache.bin and b/src/.gradle/8.0/fileHashes/resourceHashesCache.bin differ diff --git a/src/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/src/.gradle/buildOutputCleanup/buildOutputCleanup.lock index b046ca20..a62cd345 100644 Binary files a/src/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/src/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/src/.gradle/file-system.probe b/src/.gradle/file-system.probe index 5c26941c..35048385 100644 Binary files a/src/.gradle/file-system.probe and b/src/.gradle/file-system.probe differ diff --git a/src/app/build/intermediates/apk/debug/app-debug.apk b/src/app/build/intermediates/apk/debug/app-debug.apk new file mode 100644 index 00000000..86b6ae3d Binary files /dev/null and b/src/app/build/intermediates/apk/debug/app-debug.apk differ diff --git a/src/app/build/intermediates/apk/debug/output-metadata.json b/src/app/build/intermediates/apk/debug/output-metadata.json new file mode 100644 index 00000000..b2231b9c --- /dev/null +++ b/src/app/build/intermediates/apk/debug/output-metadata.json @@ -0,0 +1,20 @@ +{ + "version": 3, + "artifactType": { + "type": "APK", + "kind": "Directory" + }, + "applicationId": "net.micode.notes", + "variantName": "debug", + "elements": [ + { + "type": "SINGLE", + "filters": [], + "attributes": [], + "versionCode": 1, + "versionName": "0.1", + "outputFile": "app-debug.apk" + } + ], + "elementType": "File" +} \ No newline at end of file diff --git a/src/app/build/intermediates/compile_app_classes_jar/debug/classes.jar b/src/app/build/intermediates/compile_app_classes_jar/debug/classes.jar index ceead2e1..f047be3e 100644 Binary files a/src/app/build/intermediates/compile_app_classes_jar/debug/classes.jar and b/src/app/build/intermediates/compile_app_classes_jar/debug/classes.jar differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_0/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_0/graph.bin index 6947c918..23eb7cca 100644 Binary files a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_0/graph.bin and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_0/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_1/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_1/graph.bin index d853c7f1..975e83d0 100644 Binary files a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_1/graph.bin and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_1/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_4/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_4/graph.bin index 3726858e..dfc73ce2 100644 Binary files a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_4/graph.bin and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_4/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_5/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_5/graph.bin index 69e213b8..81ecc30a 100644 Binary files a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_5/graph.bin and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_5/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_6/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_6/graph.bin index cb6334b2..057f5912 100644 Binary files a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_6/graph.bin and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_6/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_7/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_7/graph.bin index 822167a2..66aebff5 100644 Binary files a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_7/graph.bin and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/dirs_bucket_7/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_0/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_0/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_0/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_1/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_1/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_1/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_2/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_2/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_2/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_3/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_3/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_3/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_4/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_4/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_4/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_5/graph.bin b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_5/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debug/out/currentProject/jar_6d0ab88516da0327d26fa9577517adff11f6527d4d72cadc3c35ea0cb5a99197_bucket_5/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_0/graph.bin b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_0/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_0/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_1/graph.bin b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_1/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_1/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_2/graph.bin b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_2/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_2/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_3/graph.bin b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_3/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_3/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_4/graph.bin b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_4/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_4/graph.bin differ diff --git a/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_5/graph.bin b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_5/graph.bin new file mode 100644 index 00000000..601f245f Binary files /dev/null and b/src/app/build/intermediates/desugar_graph/debugAndroidTest/out/currentProject/jar_568b4b06535b2fbe7434c288e7a3a0a71a523e7549127061f65d1299ed8643fd_bucket_5/graph.bin differ diff --git a/src/app/build/intermediates/dex/debug/mergeDexDebug/classes.dex b/src/app/build/intermediates/dex/debug/mergeDexDebug/classes.dex index 95d03a7e..6c219444 100644 Binary files a/src/app/build/intermediates/dex/debug/mergeDexDebug/classes.dex and b/src/app/build/intermediates/dex/debug/mergeDexDebug/classes.dex differ diff --git a/src/app/build/intermediates/dex/debugAndroidTest/mergeDexDebugAndroidTest/classes.dex b/src/app/build/intermediates/dex/debugAndroidTest/mergeDexDebugAndroidTest/classes.dex deleted file mode 100644 index 99cf2163..00000000 Binary files a/src/app/build/intermediates/dex/debugAndroidTest/mergeDexDebugAndroidTest/classes.dex and /dev/null differ diff --git a/src/app/build/intermediates/incremental/debug/mergeDebugResources/compile-file-map.properties b/src/app/build/intermediates/incremental/debug/mergeDebugResources/compile-file-map.properties index 258f8538..0324b984 100644 --- a/src/app/build/intermediates/incremental/debug/mergeDebugResources/compile-file-map.properties +++ b/src/app/build/intermediates/incremental/debug/mergeDebugResources/compile-file-map.properties @@ -1,4 +1,4 @@ -#Thu Jan 04 10:17:27 CST 2024 +#Fri Jan 05 10:50:22 CST 2024 net.micode.notes.app-main-6\:/color/primary_text_dark.xml=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\merged_res\\debug\\color_primary_text_dark.xml.flat net.micode.notes.app-main-6\:/color/secondary_text_dark.xml=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\merged_res\\debug\\color_secondary_text_dark.xml.flat net.micode.notes.app-main-6\:/drawable-hdpi/bg_btn_set_color.png=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_bg_btn_set_color.png.flat diff --git a/src/app/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties b/src/app/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties index 0f3d793e..6bbbba95 100644 --- a/src/app/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +++ b/src/app/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties @@ -1,4 +1,4 @@ -#Thu Jan 04 10:17:29 CST 2024 +#Fri Jan 05 10:50:23 CST 2024 net.micode.notes.app-main-5\:/color/primary_text_dark.xml=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\packaged_res\\debug\\color\\primary_text_dark.xml net.micode.notes.app-main-5\:/color/secondary_text_dark.xml=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\packaged_res\\debug\\color\\secondary_text_dark.xml net.micode.notes.app-main-5\:/drawable-hdpi/bg_btn_set_color.png=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\packaged_res\\debug\\drawable-hdpi-v4\\bg_btn_set_color.png diff --git a/src/app/build/intermediates/incremental/debugAndroidTest/mergeDebugAndroidTestResources/compile-file-map.properties b/src/app/build/intermediates/incremental/debugAndroidTest/mergeDebugAndroidTestResources/compile-file-map.properties index c3a29d9b..35fd1fc9 100644 --- a/src/app/build/intermediates/incremental/debugAndroidTest/mergeDebugAndroidTestResources/compile-file-map.properties +++ b/src/app/build/intermediates/incremental/debugAndroidTest/mergeDebugAndroidTestResources/compile-file-map.properties @@ -1 +1 @@ -#Thu Jan 04 10:17:30 CST 2024 +#Fri Jan 05 10:50:25 CST 2024 diff --git a/src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt b/src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt index a0893537..6b7de350 100644 --- a/src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt +++ b/src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt @@ -1,4 +1,4 @@ -#Thu Jan 04 10:17:36 CST 2024 +#Fri Jan 05 10:50:35 CST 2024 base.0=C\:\\Users\\huigenb\\Desktop\\Git\\ghnb\\src\\app\\build\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex path.0=classes.dex renamed.0=classes.dex diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class index 98353eb0..efad661a 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmAlertActivity.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class index a1d202d1..a33f8d86 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/AlarmInitReceiver.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class index 029286f0..4a67c153 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$1.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class index e65c35c2..4c2abf29 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$2.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class index de51badc..7dc20f6e 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$3.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class index d04cbe7d..816e05c7 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker$4.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class index 400d2897..cfc7a651 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePicker.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class index 415e755c..50823ebe 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog$1.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class index 71e52153..d35b4fe6 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DateTimePickerDialog.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class index ddd74fd6..7c0d343e 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu$1.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class index 54e7df6c..c7e37cda 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/DropdownMenu.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class index f7afcae4..c76c6241 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$1.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class index 41b04799..7c29c31a 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$2.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class index e7c4807c..709c34a1 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity$3.class differ diff --git a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class index 1cc76604..b19ce9cb 100644 Binary files a/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class and b/src/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NoteEditActivity.class differ diff --git a/src/app/build/intermediates/manifest_merge_blame_file/debugAndroidTest/manifest-merger-blame-debug-androidTest-report.txt b/src/app/build/intermediates/manifest_merge_blame_file/debugAndroidTest/manifest-merger-blame-debug-androidTest-report.txt index 723194be..4d34b392 100644 --- a/src/app/build/intermediates/manifest_merge_blame_file/debugAndroidTest/manifest-merger-blame-debug-androidTest-report.txt +++ b/src/app/build/intermediates/manifest_merge_blame_file/debugAndroidTest/manifest-merger-blame-debug-androidTest-report.txt @@ -3,30 +3,30 @@ 3 package="net.micode.notes.test" > 4 5 C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:5:5-73 +5-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:5:5-73 6 android:minSdkVersion="1" -6-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:5:15-40 +6-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:5:15-40 7 android:targetSdkVersion="14" /> -7-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:5:41-70 +7-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:5:41-70 8 9 C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:11:5-15:66 +9-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:11:5-15:66 10 android:name="android.test.InstrumentationTestRunner" -10-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:11:22-75 +10-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:11:22-75 11 android:functionalTest="false" -11-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:14:22-52 +11-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:14:22-52 12 android:handleProfiling="false" -12-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:13:22-53 +12-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:13:22-53 13 android:label="Tests for net.micode.notes" -13-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:15:22-64 +13-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:15:22-64 14 android:targetPackage="net.micode.notes" /> -14-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:12:22-62 +14-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:12:22-62 15 16 -16-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:7:5-9:19 +16-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:7:5-9:19 17 -17-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:8:9-60 -17-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest14731614510326494820.xml:8:23-57 +17-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:8:9-60 +17-->C:\Users\huigenb\Desktop\Git\ghnb\src\app\build\intermediates\tmp\manifest\androidTest\debug\tempFile1ProcessTestManifest12017478431586470294.xml:8:23-57 18 19 20 diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex index ffd80dd9..31063838 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmAlertActivity.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex index 04d5c912..8629cf6a 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/AlarmInitReceiver.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex index b1a976d9..b85ef2c1 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$1.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex index 97a7ce48..e321e865 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$2.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex index 5ff69b8d..53adf46f 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$3.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex index 08f79c9b..9e331531 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker$4.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex index e776717e..f57011fc 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePicker.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex index 379d2539..df0c5d58 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog$1.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex index fc3abd9f..b8f7e520 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DateTimePickerDialog.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex index a3554460..58dd91fb 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu$1.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex index cfd9d917..5de15f3d 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/DropdownMenu.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex index 84a45927..50327af6 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$1.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex index 9cb6e021..ec490d19 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$2.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex index ced5c299..56258a35 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity$3.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex index 877c9cbd..b775e0a0 100644 Binary files a/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex and b/src/app/build/intermediates/project_dex_archive/debug/out/net/micode/notes/ui/NoteEditActivity.dex differ diff --git a/src/app/build/intermediates/project_dex_archive/debugAndroidTest/out/9beb0e8a81eac172d79c8e543de1eecc1ee027841815a239df7ee9481370a50b_0.jar b/src/app/build/intermediates/project_dex_archive/debugAndroidTest/out/9beb0e8a81eac172d79c8e543de1eecc1ee027841815a239df7ee9481370a50b_0.jar new file mode 100644 index 00000000..7f0912b6 Binary files /dev/null and b/src/app/build/intermediates/project_dex_archive/debugAndroidTest/out/9beb0e8a81eac172d79c8e543de1eecc1ee027841815a239df7ee9481370a50b_0.jar differ diff --git a/src/app/build/intermediates/stable_resource_ids_file/debug/stableIds.txt b/src/app/build/intermediates/stable_resource_ids_file/debug/stableIds.txt new file mode 100644 index 00000000..4461006a --- /dev/null +++ b/src/app/build/intermediates/stable_resource_ids_file/debug/stableIds.txt @@ -0,0 +1,283 @@ +net.micode.notes:xml/widget_4x_info = 0x7f0c0003 +net.micode.notes:xml/preferences = 0x7f0c0000 +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 = 0x7f0a0064 +net.micode.notes:string/ticker_syncing = 0x7f0a0063 +net.micode.notes:string/ticker_success = 0x7f0a0062 +net.micode.notes:style/HighlightTextAppearanceSecondary = 0x7f0b0001 +net.micode.notes:string/ticker_cancel = 0x7f0a0060 +net.micode.notes:string/sync_progress_syncing = 0x7f0a005f +net.micode.notes:string/sync_progress_init_list = 0x7f0a005d +net.micode.notes:string/search_label = 0x7f0a0058 +net.micode.notes:string/preferences_toast_success_set_accout = 0x7f0a0055 +net.micode.notes:string/preferences_toast_cannot_change_account = 0x7f0a0054 +net.micode.notes:string/preferences_title = 0x7f0a0053 +net.micode.notes:string/preferences_menu_remove_account = 0x7f0a0052 +net.micode.notes:style/NoteActionBarStyle = 0x7f0b0002 +net.micode.notes:string/preferences_menu_change_account = 0x7f0a0051 +net.micode.notes:string/preferences_menu_cancel = 0x7f0a0050 +net.micode.notes:string/preferences_last_sync_time = 0x7f0a004e +net.micode.notes:string/preferences_dialog_select_account_title = 0x7f0a004d +net.micode.notes:string/preferences_dialog_change_account_warn_msg = 0x7f0a004b +net.micode.notes:string/preferences_button_sync_immediately = 0x7f0a0049 +net.micode.notes:string/preferences_button_sync_cancel = 0x7f0a0048 +net.micode.notes:string/preferences_account_summary = 0x7f0a0044 +net.micode.notes:string/success_sdcard_export = 0x7f0a005b +net.micode.notes:string/notelist_string_info = 0x7f0a0043 +net.micode.notes:string/notelist_menu_new = 0x7f0a0042 +net.micode.notes:string/notealert_ok = 0x7f0a0041 +net.micode.notes:string/notealert_enter = 0x7f0a0040 +net.micode.notes:string/note_link_web = 0x7f0a003f +net.micode.notes:string/note_link_tel = 0x7f0a003e +net.micode.notes:string/note_link_other = 0x7f0a003d +net.micode.notes:string/note_link_email = 0x7f0a003c +net.micode.notes:string/note_alert_expired = 0x7f0a003b +net.micode.notes:string/menu_sync_cancel = 0x7f0a0039 +net.micode.notes:string/menu_sync = 0x7f0a0038 +net.micode.notes:string/menu_share = 0x7f0a0037 +net.micode.notes:string/menu_select_title = 0x7f0a0034 +net.micode.notes:style/TextAppearanceMedium = 0x7f0b0005 +net.micode.notes:string/menu_select_none = 0x7f0a0033 +net.micode.notes:string/menu_title_select_folder = 0x7f0a003a +net.micode.notes:string/menu_select_all = 0x7f0a0032 +net.micode.notes:string/menu_search = 0x7f0a0031 +net.micode.notes:string/menu_remove_remind = 0x7f0a0030 +net.micode.notes:string/menu_normal_mode = 0x7f0a002f +net.micode.notes:string/menu_move_parent_folder = 0x7f0a002e +net.micode.notes:string/menu_move = 0x7f0a002d +net.micode.notes:string/menu_list_mode = 0x7f0a002c +net.micode.notes:string/menu_font_super = 0x7f0a002b +net.micode.notes:string/menu_font_small = 0x7f0a002a +net.micode.notes:string/menu_folder_change_name = 0x7f0a0024 +net.micode.notes:string/menu_export_text = 0x7f0a0023 +net.micode.notes:string/menu_deselect_all = 0x7f0a0022 +net.micode.notes:string/menu_create_folder = 0x7f0a0020 +net.micode.notes:style/TextAppearancePrimaryItem = 0x7f0b0007 +net.micode.notes:string/folder_exist = 0x7f0a0017 +net.micode.notes:string/hint_foler_name = 0x7f0a001d +net.micode.notes:string/format_date_ymd = 0x7f0a0018 +net.micode.notes:string/file_path = 0x7f0a0016 +net.micode.notes:string/set_remind_time_message = 0x7f0a005a +net.micode.notes:string/error_sync_network = 0x7f0a0013 +net.micode.notes:string/error_sdcard_unmounted = 0x7f0a0010 +net.micode.notes:string/datetime_dialog_ok = 0x7f0a000a +net.micode.notes:string/datetime_dialog_cancel = 0x7f0a0009 +net.micode.notes:drawable/list_green_up = 0x7f040020 +net.micode.notes:string/call_record_folder_name = 0x7f0a0008 +net.micode.notes:drawable/new_note_normal = 0x7f040030 +net.micode.notes:string/button_delete = 0x7f0a0007 +net.micode.notes:string/app_widget2x2 = 0x7f0a0005 +net.micode.notes:string/menu_font_normal = 0x7f0a0028 +net.micode.notes:string/format_exported_file_location = 0x7f0a001a +net.micode.notes:raw/introduction = 0x7f090000 +net.micode.notes:string/delete_remind_time_message = 0x7f0a000b +net.micode.notes:dimen/text_font_size_super = 0x7f030004 +net.micode.notes:drawable/selected = 0x7f040035 +net.micode.notes:plurals/search_results_title = 0x7f080000 +net.micode.notes:menu/sub_folder = 0x7f070006 +net.micode.notes:menu/note_edit = 0x7f070002 +net.micode.notes:style/TextAppearanceSuper = 0x7f0b0009 +net.micode.notes:color/secondary_text_dark = 0x7f020001 +net.micode.notes:id/move = 0x7f05002e +net.micode.notes:id/iv_bg_yellow_select = 0x7f050017 +net.micode.notes:menu/call_note_edit = 0x7f070000 +net.micode.notes:drawable/new_note_pressed = 0x7f040031 +net.micode.notes:id/iv_bg_blue = 0x7f05000e +net.micode.notes:layout/settings_header = 0x7f06000b +net.micode.notes:layout/note_list = 0x7f060008 +net.micode.notes:drawable/list_white_single = 0x7f040027 +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 = 0x7f050004 +net.micode.notes:layout/note_list_footer = 0x7f06000a +net.micode.notes:id/widget_text = 0x7f050042 +net.micode.notes:id/tv_title_bar = 0x7f050040 +net.micode.notes:drawable/widget_2x_blue = 0x7f040038 +net.micode.notes:id/tv_time = 0x7f05003e +net.micode.notes:id/tv_name = 0x7f05003d +net.micode.notes:drawable/new_note = 0x7f04002f +net.micode.notes:id/sv_note_edit = 0x7f050039 +net.micode.notes:id/selection_menu = 0x7f050038 +net.micode.notes:string/error_sdcard_export = 0x7f0a000f +net.micode.notes:id/preference_sync_button = 0x7f050037 +net.micode.notes:layout/note_edit = 0x7f060005 +net.micode.notes:id/notes_list = 0x7f050035 +net.micode.notes:string/alert_message_delete_notes = 0x7f0a0002 +net.micode.notes:drawable/title_alert = 0x7f040036 +net.micode.notes:id/note_title = 0x7f050034 +net.micode.notes:string/preferences_last_sync_time_format = 0x7f0a004f +net.micode.notes:id/note_edit_view = 0x7f050032 +net.micode.notes:id/navigation_bar = 0x7f05002f +net.micode.notes:string/app_widget4x4 = 0x7f0a0006 +net.micode.notes:drawable/font_normal = 0x7f040011 +net.micode.notes:id/minute = 0x7f05002d +net.micode.notes:drawable/font_super = 0x7f040014 +net.micode.notes:id/menu_sync = 0x7f05002c +net.micode.notes:string/info_note_enter_desktop = 0x7f0a001e +net.micode.notes:id/menu_share = 0x7f05002b +net.micode.notes:id/menu_setting = 0x7f05002a +net.micode.notes:string/widget_under_visit_mode = 0x7f0a0065 +net.micode.notes:id/menu_send_to_desktop = 0x7f050029 +net.micode.notes:id/menu_search = 0x7f050028 +net.micode.notes:drawable/list_green_down = 0x7f04001d +net.micode.notes:id/menu_new_note = 0x7f050027 +net.micode.notes:string/error_note_not_exist = 0x7f0a000e +net.micode.notes:id/menu_new_folder = 0x7f050026 +net.micode.notes:id/menu_list_mode = 0x7f050025 +net.micode.notes:id/iv_medium_select = 0x7f050019 +net.micode.notes:id/menu_export_text = 0x7f050023 +net.micode.notes:string/menu_folder_view = 0x7f0a0026 +net.micode.notes:id/menu_delete = 0x7f050021 +net.micode.notes:string/ticker_fail = 0x7f0a0061 +net.micode.notes:string/file_name_txt_format = 0x7f0a0015 +net.micode.notes:drawable/edit_blue = 0x7f040006 +net.micode.notes:id/prefenerece_sync_status_textview = 0x7f050036 +net.micode.notes:string/menu_font_size = 0x7f0a0029 +net.micode.notes:string/menu_alert = 0x7f0a001f +net.micode.notes:drawable/edit_title_yellow = 0x7f04000d +net.micode.notes:id/menu_alert = 0x7f050020 +net.micode.notes:string/success_sync_account = 0x7f0a005c +net.micode.notes:id/ll_font_super = 0x7f05001f +net.micode.notes:id/ll_font_small = 0x7f05001e +net.micode.notes:menu/call_record_folder = 0x7f070001 +net.micode.notes:id/ll_font_normal = 0x7f05001d +net.micode.notes:id/ll_font_large = 0x7f05001c +net.micode.notes:id/note_bg_color_selector = 0x7f050030 +net.micode.notes:drawable/search_result = 0x7f040034 +net.micode.notes:id/iv_super_select = 0x7f05001b +net.micode.notes:id/iv_bg_yellow = 0x7f050016 +net.micode.notes:string/error_sync_cancelled = 0x7f0a0011 +net.micode.notes:id/iv_bg_white_select = 0x7f050015 +net.micode.notes:id/tv_alert_date = 0x7f05003a +net.micode.notes:dimen/text_font_size_large = 0x7f030000 +net.micode.notes:drawable/notification = 0x7f040033 +net.micode.notes:id/iv_bg_red = 0x7f050012 +net.micode.notes:string/menu_font_large = 0x7f0a0027 +net.micode.notes:drawable/widget_4x_blue = 0x7f04003d +net.micode.notes:id/iv_large_select = 0x7f050018 +net.micode.notes:id/widget_bg_image = 0x7f050041 +net.micode.notes:id/iv_bg_green_select = 0x7f050011 +net.micode.notes:string/error_note_empty_for_clock = 0x7f0a000c +net.micode.notes:string/preferences_dialog_change_account_title = 0x7f0a004a +net.micode.notes:drawable/menu_move = 0x7f04002e +net.micode.notes:drawable/widget_4x_white = 0x7f040040 +net.micode.notes:id/iv_bg_blue_select = 0x7f05000f +net.micode.notes:string/preferences_dialog_select_account_tips = 0x7f0a004c +net.micode.notes:id/font_size_selector = 0x7f05000b +net.micode.notes:id/et_edit_text = 0x7f050009 +net.micode.notes:id/et_foler_name = 0x7f05000a +net.micode.notes:drawable/edit_green = 0x7f040007 +net.micode.notes:layout/widget_4x = 0x7f06000d +net.micode.notes:string/search = 0x7f0a0056 +net.micode.notes:id/cb_edit_item = 0x7f050006 +net.micode.notes:id/btn_set_bg_color = 0x7f050005 +net.micode.notes:id/account_dialog_subtitle = 0x7f050000 +net.micode.notes:menu/note_list = 0x7f070003 +net.micode.notes:id/account_dialog_title = 0x7f050001 +net.micode.notes:id/iv_bg_green = 0x7f050010 +net.micode.notes:id/amPm = 0x7f050003 +net.micode.notes:drawable/widget_4x_green = 0x7f04003e +net.micode.notes:style/NoteTheme = 0x7f0b0003 +net.micode.notes:id/hour = 0x7f05000c +net.micode.notes:drawable/note_edit_color_selector_panel = 0x7f040032 +net.micode.notes:drawable/widget_2x_yellow = 0x7f04003c +net.micode.notes:string/format_move_notes_to_folder = 0x7f0a001c +net.micode.notes:drawable/widget_2x_red = 0x7f04003a +net.micode.notes:style/TextAppearanceUnderMenuIcon = 0x7f0b000a +net.micode.notes:id/delete = 0x7f050008 +net.micode.notes:drawable/widget_2x_green = 0x7f040039 +net.micode.notes:drawable/title_bar_bg = 0x7f040037 +net.micode.notes:drawable/menu_delete = 0x7f04002d +net.micode.notes:string/error_sync_internal = 0x7f0a0012 +net.micode.notes:drawable/list_green_single = 0x7f04001f +net.micode.notes:string/alert_message_delete_note = 0x7f0a0001 +net.micode.notes:id/tv_modified_date = 0x7f05003c +net.micode.notes:drawable/list_blue_middle = 0x7f040018 +net.micode.notes:id/iv_small_select = 0x7f05001a +net.micode.notes:menu/note_list_options = 0x7f070005 +net.micode.notes:xml/searchable = 0x7f0c0001 +net.micode.notes:string/menu_folder_delete = 0x7f0a0025 +net.micode.notes:drawable/dropdown_icon = 0x7f040005 +net.micode.notes:id/date = 0x7f050007 +net.micode.notes:drawable/list_yellow_single = 0x7f04002b +net.micode.notes:drawable/list_red_up = 0x7f040024 +net.micode.notes:drawable/widget_4x_yellow = 0x7f040041 +net.micode.notes:drawable/list_yellow_middle = 0x7f04002a +net.micode.notes:id/tv_folder_name = 0x7f05003b +net.micode.notes:drawable/list_yellow_down = 0x7f040029 +net.micode.notes:string/format_folder_files_count = 0x7f0a001b +net.micode.notes:drawable/clock = 0x7f040003 +net.micode.notes:drawable/list_white_up = 0x7f040028 +net.micode.notes:drawable/edit_title_blue = 0x7f040009 +net.micode.notes:drawable/edit_red = 0x7f040008 +net.micode.notes:id/iv_alert_icon = 0x7f05000d +net.micode.notes:layout/dialog_edit_text = 0x7f060003 +net.micode.notes:string/preferences_account_title = 0x7f0a0045 +net.micode.notes:drawable/edit_white = 0x7f04000e +net.micode.notes:drawable/list_white_middle = 0x7f040026 +net.micode.notes:color/user_query_highlight = 0x7f020002 +net.micode.notes:drawable/list_white_down = 0x7f040025 +net.micode.notes:string/preferences_add_account = 0x7f0a0046 +net.micode.notes:drawable/bg_btn_set_color = 0x7f040000 +net.micode.notes:string/preferences_bg_random_appear_title = 0x7f0a0047 +net.micode.notes:layout/widget_2x = 0x7f06000c +net.micode.notes:drawable/list_footer_bg = 0x7f04001c +net.micode.notes:string/alert_title_delete = 0x7f0a0003 +net.micode.notes:drawable/edit_title_green = 0x7f04000a +net.micode.notes:drawable/icon_app = 0x7f040015 +net.micode.notes:string/menu_send_to_desktop = 0x7f0a0035 +net.micode.notes:drawable/list_red_single = 0x7f040023 +net.micode.notes:string/failed_sdcard_export = 0x7f0a0014 +net.micode.notes:drawable/widget_4x_red = 0x7f04003f +net.micode.notes:id/menu_delete_remind = 0x7f050022 +net.micode.notes:drawable/list_red_down = 0x7f040021 +net.micode.notes:drawable/list_red_middle = 0x7f040022 +net.micode.notes:id/iv_bg_white = 0x7f050014 +net.micode.notes:id/iv_bg_red_select = 0x7f050013 +net.micode.notes:string/error_note_empty_for_send_to_desktop = 0x7f0a000d +net.micode.notes:layout/note_list_dropdown_menu = 0x7f060009 +net.micode.notes:drawable/list_blue_down = 0x7f040017 +net.micode.notes:id/action_select_all = 0x7f050002 +net.micode.notes:string/format_datetime_mdhm = 0x7f0a0019 +net.micode.notes:drawable/font_small = 0x7f040013 +net.micode.notes:string/sync_progress_login = 0x7f0a005e +net.micode.notes:array/menu_share_ways = 0x7f010001 +net.micode.notes:drawable/widget_2x_white = 0x7f04003b +net.micode.notes:layout/folder_list_item = 0x7f060004 +net.micode.notes:layout/add_account_text = 0x7f060001 +net.micode.notes:id/tv_title = 0x7f05003f +net.micode.notes:color/primary_text_dark = 0x7f020000 +net.micode.notes:drawable/font_size_selector_bg = 0x7f040012 +net.micode.notes:drawable/list_blue_up = 0x7f04001a +net.micode.notes:string/search_setting_description = 0x7f0a0059 +net.micode.notes:drawable/list_blue_single = 0x7f040019 +net.micode.notes:drawable/font_large = 0x7f040010 +net.micode.notes:drawable/delete = 0x7f040004 +net.micode.notes:drawable/edit_yellow = 0x7f04000f +net.micode.notes:id/note_item = 0x7f050033 +net.micode.notes:drawable/edit_title_white = 0x7f04000c +net.micode.notes:id/note_edit_list = 0x7f050031 +net.micode.notes:drawable/edit_title_red = 0x7f04000b +net.micode.notes:string/menu_delete = 0x7f0a0021 +net.micode.notes:drawable/list_folder = 0x7f04001b +net.micode.notes:drawable/call_record = 0x7f040002 +net.micode.notes:string/search_hint = 0x7f0a0057 +net.micode.notes:id/menu_font_size = 0x7f050024 +net.micode.notes:drawable/bg_color_btn_mask = 0x7f040001 +net.micode.notes:drawable/list_yellow_up = 0x7f04002c +net.micode.notes:dimen/text_font_size_small = 0x7f030003 +net.micode.notes:dimen/text_font_size_normal = 0x7f030002 +net.micode.notes:drawable/list_green_middle = 0x7f04001e +net.micode.notes:drawable/list_background = 0x7f040016 +net.micode.notes:string/app_name = 0x7f0a0004 +net.micode.notes:menu/note_list_dropdown = 0x7f070004 +net.micode.notes:string/menu_setting = 0x7f0a0036 +net.micode.notes:dimen/text_font_size_medium = 0x7f030001 +net.micode.notes:layout/note_edit_list_item = 0x7f060006 +net.micode.notes:layout/account_dialog_title = 0x7f060000 +net.micode.notes:array/format_for_exported_note = 0x7f010000 diff --git a/src/app/build/outputs/apk/debug/app-debug.apk b/src/app/build/outputs/apk/debug/app-debug.apk index 6a666e93..8ead392e 100644 Binary files a/src/app/build/outputs/apk/debug/app-debug.apk and b/src/app/build/outputs/apk/debug/app-debug.apk differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AlarmAlertActivity.class.uniqueId27 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AlarmAlertActivity.class.uniqueId27 deleted file mode 100644 index 98353eb0..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AlarmAlertActivity.class.uniqueId27 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AlarmAlertActivity.class.uniqueId44 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AlarmAlertActivity.class.uniqueId44 deleted file mode 100644 index 98353eb0..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/AlarmAlertActivity.class.uniqueId44 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/BackupUtils$TextExport.class.uniqueId5 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/BackupUtils$TextExport.class.uniqueId5 deleted file mode 100644 index 63e7f9cb..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/BackupUtils$TextExport.class.uniqueId5 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/BackupUtils.class.uniqueId11 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/BackupUtils.class.uniqueId11 deleted file mode 100644 index 6a867376..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/BackupUtils.class.uniqueId11 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/DataUtils.class.uniqueId14 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/DataUtils.class.uniqueId14 deleted file mode 100644 index 6af32006..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/DataUtils.class.uniqueId14 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/DataUtils.class.uniqueId39 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/DataUtils.class.uniqueId39 deleted file mode 100644 index 5a5386f1..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/DataUtils.class.uniqueId39 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask$1.class.uniqueId1 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask$1.class.uniqueId1 deleted file mode 100644 index 520d1dad..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask$1.class.uniqueId1 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask$OnCompleteListener.class.uniqueId6 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask$OnCompleteListener.class.uniqueId6 deleted file mode 100644 index f73069cb..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask$OnCompleteListener.class.uniqueId6 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask.class.uniqueId17 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask.class.uniqueId17 deleted file mode 100644 index dea216da..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskASyncTask.class.uniqueId17 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskClient.class.uniqueId29 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskClient.class.uniqueId29 deleted file mode 100644 index 7be3b8a5..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskClient.class.uniqueId29 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskManager.class.uniqueId30 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskManager.class.uniqueId30 deleted file mode 100644 index ac1834cc..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskManager.class.uniqueId30 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskManager.class.uniqueId47 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskManager.class.uniqueId47 deleted file mode 100644 index ac1834cc..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/GTaskManager.class.uniqueId47 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/Note$NoteData.class.uniqueId10 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/Note$NoteData.class.uniqueId10 deleted file mode 100644 index c40e9450..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/Note$NoteData.class.uniqueId10 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/Note.class.uniqueId16 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/Note.class.uniqueId16 deleted file mode 100644 index d2041ccf..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/Note.class.uniqueId16 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$1.class.uniqueId36 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$1.class.uniqueId36 deleted file mode 100644 index 5416cd38..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$1.class.uniqueId36 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$1.class.uniqueId6 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$1.class.uniqueId6 deleted file mode 100644 index 5416cd38..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$1.class.uniqueId6 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$2.class.uniqueId3 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$2.class.uniqueId3 deleted file mode 100644 index 6efe55fe..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$2.class.uniqueId3 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$2.class.uniqueId8 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$2.class.uniqueId8 deleted file mode 100644 index 6efe55fe..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$2.class.uniqueId8 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$3.class.uniqueId21 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$3.class.uniqueId21 deleted file mode 100644 index f8758f37..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$3.class.uniqueId21 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$3.class.uniqueId22 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$3.class.uniqueId22 deleted file mode 100644 index f8758f37..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$3.class.uniqueId22 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$HeadViewHolder.class.uniqueId32 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$HeadViewHolder.class.uniqueId32 deleted file mode 100644 index 8e1f0bf9..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$HeadViewHolder.class.uniqueId32 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$HeadViewHolder.class.uniqueId49 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$HeadViewHolder.class.uniqueId49 deleted file mode 100644 index 8e1f0bf9..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity$HeadViewHolder.class.uniqueId49 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId0 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId0 deleted file mode 100644 index c7af5e52..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId0 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId5 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId10 similarity index 85% rename from src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId5 rename to src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId10 index c7af5e52..1cc76604 100644 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId5 and b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditActivity.class.uniqueId10 differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText$1.class.uniqueId13 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText$1.class.uniqueId13 deleted file mode 100644 index 2040186e..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText$1.class.uniqueId13 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText$OnTextViewChangeListener.class.uniqueId50 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText$OnTextViewChangeListener.class.uniqueId50 deleted file mode 100644 index 9874f47b..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText$OnTextViewChangeListener.class.uniqueId50 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText.class.uniqueId27 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText.class.uniqueId27 deleted file mode 100644 index 3a19d3b0..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteEditText.class.uniqueId27 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteItemData.class.uniqueId23 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteItemData.class.uniqueId23 deleted file mode 100644 index 771aa912..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteItemData.class.uniqueId23 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteItemData.class.uniqueId24 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteItemData.class.uniqueId24 deleted file mode 100644 index 771aa912..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteItemData.class.uniqueId24 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteWidgetProvider.class.uniqueId16 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteWidgetProvider.class.uniqueId16 deleted file mode 100644 index a00281f2..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NoteWidgetProvider.class.uniqueId16 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$1.class.uniqueId10 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$1.class.uniqueId10 deleted file mode 100644 index f1ba2200..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$1.class.uniqueId10 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$1.class.uniqueId7 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$1.class.uniqueId7 deleted file mode 100644 index f1ba2200..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$1.class.uniqueId7 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$2.class.uniqueId20 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$2.class.uniqueId20 deleted file mode 100644 index 76c0c9de..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$2.class.uniqueId20 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$2.class.uniqueId41 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$2.class.uniqueId41 deleted file mode 100644 index 76c0c9de..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$2.class.uniqueId41 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$3.class.uniqueId1 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$3.class.uniqueId1 deleted file mode 100644 index ae5d23bc..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$3.class.uniqueId1 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$3.class.uniqueId31 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$3.class.uniqueId31 deleted file mode 100644 index ae5d23bc..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$3.class.uniqueId31 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$4.class.uniqueId15 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$4.class.uniqueId15 deleted file mode 100644 index 62b7e431..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$4.class.uniqueId15 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$4.class.uniqueId18 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$4.class.uniqueId18 deleted file mode 100644 index 62b7e431..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$4.class.uniqueId18 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$5.class.uniqueId28 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$5.class.uniqueId28 deleted file mode 100644 index 0c3614ba..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$5.class.uniqueId28 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$5.class.uniqueId45 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$5.class.uniqueId45 deleted file mode 100644 index 0c3614ba..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$5.class.uniqueId45 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$6.class.uniqueId37 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$6.class.uniqueId37 deleted file mode 100644 index 708e26c4..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$6.class.uniqueId37 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$6.class.uniqueId9 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$6.class.uniqueId9 deleted file mode 100644 index 708e26c4..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$6.class.uniqueId9 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$7.class.uniqueId35 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$7.class.uniqueId35 deleted file mode 100644 index 3adfefed..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$7.class.uniqueId35 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$7.class.uniqueId4 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$7.class.uniqueId4 deleted file mode 100644 index 3adfefed..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$7.class.uniqueId4 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$8.class.uniqueId31 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$8.class.uniqueId31 deleted file mode 100644 index 003aae65..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$8.class.uniqueId31 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$8.class.uniqueId48 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$8.class.uniqueId48 deleted file mode 100644 index 003aae65..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$8.class.uniqueId48 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$9.class.uniqueId13 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$9.class.uniqueId13 deleted file mode 100644 index e7be3591..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$9.class.uniqueId13 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$9.class.uniqueId14 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$9.class.uniqueId14 deleted file mode 100644 index e7be3591..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$9.class.uniqueId14 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$BackgroundQueryHandler.class.uniqueId25 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$BackgroundQueryHandler.class.uniqueId25 deleted file mode 100644 index 127437ff..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$BackgroundQueryHandler.class.uniqueId25 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$BackgroundQueryHandler.class.uniqueId26 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$BackgroundQueryHandler.class.uniqueId26 deleted file mode 100644 index 127437ff..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$BackgroundQueryHandler.class.uniqueId26 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ListEditState.class.uniqueId24 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ListEditState.class.uniqueId24 deleted file mode 100644 index 2edab7b3..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ListEditState.class.uniqueId24 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ListEditState.class.uniqueId25 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ListEditState.class.uniqueId25 deleted file mode 100644 index 2edab7b3..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ListEditState.class.uniqueId25 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$1.class.uniqueId29 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$1.class.uniqueId29 deleted file mode 100644 index 3981f169..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$1.class.uniqueId29 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$1.class.uniqueId46 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$1.class.uniqueId46 deleted file mode 100644 index 3981f169..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$1.class.uniqueId46 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$2.class.uniqueId17 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$2.class.uniqueId17 deleted file mode 100644 index 99e161f8..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$2.class.uniqueId17 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$2.class.uniqueId19 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$2.class.uniqueId19 deleted file mode 100644 index 99e161f8..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback$2.class.uniqueId19 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback.class.uniqueId2 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback.class.uniqueId2 deleted file mode 100644 index f249e333..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback.class.uniqueId2 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback.class.uniqueId7 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback.class.uniqueId7 deleted file mode 100644 index f249e333..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$ModeCallback.class.uniqueId7 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$NewNoteOnTouchListener.class.uniqueId18 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$NewNoteOnTouchListener.class.uniqueId18 deleted file mode 100644 index 81f06d33..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$NewNoteOnTouchListener.class.uniqueId18 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$NewNoteOnTouchListener.class.uniqueId20 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$NewNoteOnTouchListener.class.uniqueId20 deleted file mode 100644 index 81f06d33..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$NewNoteOnTouchListener.class.uniqueId20 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$OnListItemClickListener.class.uniqueId19 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$OnListItemClickListener.class.uniqueId19 deleted file mode 100644 index c8bc735d..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$OnListItemClickListener.class.uniqueId19 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$OnListItemClickListener.class.uniqueId40 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$OnListItemClickListener.class.uniqueId40 deleted file mode 100644 index c8bc735d..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity$OnListItemClickListener.class.uniqueId40 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity.class.uniqueId11 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity.class.uniqueId11 deleted file mode 100644 index 8dc90586..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity.class.uniqueId11 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity.class.uniqueId8 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity.class.uniqueId8 deleted file mode 100644 index 8dc90586..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListActivity.class.uniqueId8 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListAdapter$AppWidgetAttribute.class.uniqueId51 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListAdapter$AppWidgetAttribute.class.uniqueId51 deleted file mode 100644 index 2bdb58bc..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListAdapter$AppWidgetAttribute.class.uniqueId51 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListAdapter.class.uniqueId12 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListAdapter.class.uniqueId12 deleted file mode 100644 index 5e432e90..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListAdapter.class.uniqueId12 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListItem.class.uniqueId22 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListItem.class.uniqueId22 deleted file mode 100644 index 45968346..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListItem.class.uniqueId22 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListItem.class.uniqueId23 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListItem.class.uniqueId23 deleted file mode 100644 index 45968346..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesListItem.class.uniqueId23 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$1.class.uniqueId42 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$1.class.uniqueId42 deleted file mode 100644 index 362fa059..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$1.class.uniqueId42 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$2.class.uniqueId30 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$2.class.uniqueId30 deleted file mode 100644 index 85232285..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$2.class.uniqueId30 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$3.class.uniqueId15 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$3.class.uniqueId15 deleted file mode 100644 index d91bc851..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$3.class.uniqueId15 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$4.class.uniqueId43 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$4.class.uniqueId43 deleted file mode 100644 index 99c7a64f..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$4.class.uniqueId43 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$5.class.uniqueId33 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$5.class.uniqueId33 deleted file mode 100644 index 17e4d3bb..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$5.class.uniqueId33 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$6.class.uniqueId21 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$6.class.uniqueId21 deleted file mode 100644 index 7b800360..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$6.class.uniqueId21 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$7.class.uniqueId0 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$7.class.uniqueId0 deleted file mode 100644 index d9abeb93..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$7.class.uniqueId0 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$8.class.uniqueId38 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$8.class.uniqueId38 deleted file mode 100644 index 39e534ac..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$8.class.uniqueId38 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$GTaskReceiver.class.uniqueId3 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$GTaskReceiver.class.uniqueId3 deleted file mode 100644 index eb938cfd..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity$GTaskReceiver.class.uniqueId3 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity.class.uniqueId9 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity.class.uniqueId9 deleted file mode 100644 index 0937be27..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/NotesPreferenceActivity.class.uniqueId9 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$NoteBgResources.class.uniqueId34 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$NoteBgResources.class.uniqueId34 deleted file mode 100644 index 84e57a4f..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$NoteBgResources.class.uniqueId34 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$NoteItemBgResources.class.uniqueId2 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$NoteItemBgResources.class.uniqueId2 deleted file mode 100644 index 8805a063..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$NoteItemBgResources.class.uniqueId2 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$TextAppearanceResources.class.uniqueId32 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$TextAppearanceResources.class.uniqueId32 deleted file mode 100644 index 7f2eb75f..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$TextAppearanceResources.class.uniqueId32 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$WidgetBgResources.class.uniqueId4 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$WidgetBgResources.class.uniqueId4 deleted file mode 100644 index b4ec3bab..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser$WidgetBgResources.class.uniqueId4 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser.class.uniqueId28 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser.class.uniqueId28 deleted file mode 100644 index f2e1b626..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/ResourceParser.class.uniqueId28 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WorkingNote$NoteSettingChangedListener.class.uniqueId26 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WorkingNote$NoteSettingChangedListener.class.uniqueId26 deleted file mode 100644 index 15f1f775..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WorkingNote$NoteSettingChangedListener.class.uniqueId26 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WorkingNote.class.uniqueId12 b/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WorkingNote.class.uniqueId12 deleted file mode 100644 index a23580d2..00000000 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/WorkingNote.class.uniqueId12 and /dev/null differ diff --git a/src/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin b/src/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin index fcf543e5..17d8c7b2 100644 Binary files a/src/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin and b/src/app/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin differ diff --git a/src/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java b/src/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java index 85723be0..87ad1695 100644 --- a/src/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java +++ b/src/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java @@ -39,22 +39,29 @@ import net.micode.notes.tool.DataUtils; import java.io.IOException; - +/* +AlarmAlertActivity: +继承Activity,实现OnClickListener,OnDismissListener接口 +核心函数:OnCreate()回调函数自动执行 +核心方法:(在OnCreate中调用) +PlayAlarmSound() 闹钟响铃 +showActionDialog()弹出提示消息 */ +//闹钟提醒界面 public class AlarmAlertActivity extends Activity implements OnClickListener, OnDismissListener { - private long mNoteId; - private String mSnippet; + private long mNoteId; //文本id + private String mSnippet; //闹钟响起时的提示文字 private static final int SNIPPET_PREW_MAX_LEN = 60; - MediaPlayer mPlayer; + MediaPlayer mPlayer; //媒体播放器 @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - requestWindowFeature(Window.FEATURE_NO_TITLE); + protected void onCreate(Bundle savedInstanceState) { //创建时自动执行 + super.onCreate(savedInstanceState); //依据保存的Activity的状态 + requestWindowFeature(Window.FEATURE_NO_TITLE);//界面显示(无标题) final Window win = getWindow(); win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); - if (!isScreenOn()) { + if (!isScreenOn()) { //若锁屏则点亮屏幕 win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON @@ -65,7 +72,7 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD try { mNoteId = Long.valueOf(intent.getData().getPathSegments().get(1)); - mSnippet = DataUtils.getSnippetById(this.getContentResolver(), mNoteId); + mSnippet = DataUtils.getSnippetById(this.getContentResolver(), mNoteId); //根据id获取内容 mSnippet = mSnippet.length() > SNIPPET_PREW_MAX_LEN ? mSnippet.substring(0, SNIPPET_PREW_MAX_LEN) + getResources().getString(R.string.notelist_string_info) : mSnippet; @@ -76,8 +83,8 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD mPlayer = new MediaPlayer(); if (DataUtils.visibleInNoteDatabase(getContentResolver(), mNoteId, Notes.TYPE_NOTE)) { - showActionDialog(); - playAlarmSound(); + showActionDialog(); //弹出对话框 + playAlarmSound(); //发出闹钟声音 } else { finish(); } @@ -122,7 +129,7 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD private void showActionDialog() { AlertDialog.Builder dialog = new AlertDialog.Builder(this); dialog.setTitle(R.string.app_name); - dialog.setMessage(mSnippet); + dialog.setMessage(mSnippet); //显示提示 dialog.setPositiveButton(R.string.notealert_ok, this); if (isScreenOn()) { dialog.setNegativeButton(R.string.notealert_enter, this); @@ -130,7 +137,7 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD dialog.show().setOnDismissListener(this); } - public void onClick(DialogInterface dialog, int which) { + public void onClick(DialogInterface dialog, int which) { //实现点击接口 switch (which) { case DialogInterface.BUTTON_NEGATIVE: Intent intent = new Intent(this, NoteEditActivity.class); @@ -143,8 +150,8 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD } } - public void onDismiss(DialogInterface dialog) { - stopAlarmSound(); + public void onDismiss(DialogInterface dialog) { //实现错失接口 + stopAlarmSound(); //停止闹钟铃声 finish(); } diff --git a/src/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java b/src/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java index f2212025..6f85aaf5 100644 --- a/src/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java +++ b/src/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java @@ -27,7 +27,12 @@ import android.database.Cursor; import net.micode.notes.data.Notes; import net.micode.notes.data.Notes.NoteColumns; - +/* +AlarmInitReceiver: +继承BroadcastReceiver, +核心函数:OnReceive()自动执行,找到与当前时间相同的便签,发送消息启动AlarmRceceiver + */ +//闹钟提醒启动消息接收器 public class AlarmInitReceiver extends BroadcastReceiver { private static final String [] PROJECTION = new String [] { @@ -40,8 +45,8 @@ public class AlarmInitReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { - long currentDate = System.currentTimeMillis(); - Cursor c = context.getContentResolver().query(Notes.CONTENT_NOTE_URI, + 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) }, @@ -51,7 +56,7 @@ public class AlarmInitReceiver extends BroadcastReceiver { if (c.moveToFirst()) { do { long alertDate = c.getLong(COLUMN_ALERTED_DATE); - Intent sender = new Intent(context, AlarmReceiver.class); + Intent sender = new Intent(context, AlarmReceiver.class); //发送消息启动AlarmReceiver sender.setData(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, c.getLong(COLUMN_ID))); PendingIntent pendingIntent = PendingIntent.getBroadcast(context, 0, sender, 0); AlarmManager alermManager = (AlarmManager) context diff --git a/src/app/src/main/java/net/micode/notes/ui/DateTimePicker.java b/src/app/src/main/java/net/micode/notes/ui/DateTimePicker.java index 496b0cda..40289558 100644 --- a/src/app/src/main/java/net/micode/notes/ui/DateTimePicker.java +++ b/src/app/src/main/java/net/micode/notes/ui/DateTimePicker.java @@ -28,6 +28,14 @@ import android.view.View; import android.widget.FrameLayout; import android.widget.NumberPicker; +/* +DateTimePicker: +继承FrameLayout(布局模板) +核心函数: +日、时、分、秒的监听函数:几个OnValueChanged()的覆写; +在构造函数里调用这几个监听函数,并作为DateTimePickerDialog的一个属性对象 + */ +//设置提醒时间的部件 public class DateTimePicker extends FrameLayout { private static final boolean DEFAULT_ENABLE_STATE = true; @@ -46,6 +54,7 @@ public class DateTimePicker extends FrameLayout { 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; @@ -64,6 +73,7 @@ public class DateTimePicker extends FrameLayout { private OnDateTimeChangedListener mOnDateTimeChangedListener; + //下面四个监听日、时、分、秒改变的函数 private NumberPicker.OnValueChangeListener mOnDateChangedListener = new NumberPicker.OnValueChangeListener() { @Override public void onValueChange(NumberPicker picker, int oldVal, int newVal) { @@ -73,7 +83,7 @@ public class DateTimePicker extends FrameLayout { } }; - private NumberPicker.OnValueChangeListener mOnHourChangedListener = new NumberPicker.OnValueChangeListener() { + private NumberPicker.OnValueChangeListener mOnHourChangedListener = new NumberPicker.OnValueChangeListener() { //时的改变 @Override public void onValueChange(NumberPicker picker, int oldVal, int newVal) { boolean isDateChanged = false; @@ -163,6 +173,7 @@ public class DateTimePicker extends FrameLayout { int dayOfMonth, int hourOfDay, int minute); } + //构造函数三连 public DateTimePicker(Context context) { this(context, System.currentTimeMillis()); } diff --git a/src/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java b/src/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java index 2c47ba41..c4b49c36 100644 --- a/src/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java +++ b/src/app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java @@ -29,23 +29,24 @@ 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; + private DateTimePicker mDateTimePicker; //时间提醒部件 - public interface OnDateTimeSetListener { + public interface OnDateTimeSetListener { //定义接口,在NoteEditActivity中被使用 void OnDateTimeSet(AlertDialog dialog, long date); } - public DateTimePickerDialog(Context context, 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, + public void onDateTimeChanged(DateTimePicker view, int year, int month, //设置date int dayOfMonth, int hourOfDay, int minute) { mDate.set(Calendar.YEAR, year); mDate.set(Calendar.MONTH, month); @@ -55,10 +56,10 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener updateTitle(mDate.getTimeInMillis()); } }); - mDate.setTimeInMillis(date); + mDate.setTimeInMillis(date); //获取时间 mDate.set(Calendar.SECOND, 0); mDateTimePicker.setCurrentDate(mDate.getTimeInMillis()); - setButton(context.getString(R.string.datetime_dialog_ok), this); + setButton(context.getString(R.string.datetime_dialog_ok), this); //两个按键 setButton2(context.getString(R.string.datetime_dialog_cancel), (OnClickListener)null); set24HourView(DateFormat.is24HourFormat(this.getContext())); updateTitle(mDate.getTimeInMillis()); @@ -72,7 +73,7 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener mOnDateTimeSetListener = callBack; } - private void updateTitle(long date) { + private void updateTitle(long date) { //android开发中常见日期管理工具类(API)——DateUtils:按照上下午显示时间 int flag = DateUtils.FORMAT_SHOW_YEAR | DateUtils.FORMAT_SHOW_DATE | @@ -81,7 +82,7 @@ public class DateTimePickerDialog extends AlertDialog implements OnClickListener setTitle(DateUtils.formatDateTime(this.getContext(), date, flag)); } - public void onClick(DialogInterface arg0, int arg1) { + public void onClick(DialogInterface arg0, int arg1) { //实现点击监听,arg1是对话框上的按钮 if (mOnDateTimeSetListener != null) { mOnDateTimeSetListener.OnDateTimeSet(this, mDate.getTimeInMillis()); } diff --git a/src/app/src/main/java/net/micode/notes/ui/DropdownMenu.java b/src/app/src/main/java/net/micode/notes/ui/DropdownMenu.java index 613dc74a..5978c447 100644 --- a/src/app/src/main/java/net/micode/notes/ui/DropdownMenu.java +++ b/src/app/src/main/java/net/micode/notes/ui/DropdownMenu.java @@ -27,21 +27,22 @@ import android.widget.PopupMenu.OnMenuItemClickListener; import net.micode.notes.R; +//下拉菜单页面 public class DropdownMenu { private Button mButton; - private PopupMenu mPopupMenu; + private PopupMenu mPopupMenu; //声明一个弹出式菜单 private Menu mMenu; public DropdownMenu(Context context, Button button, int menuId) { mButton = button; - mButton.setBackgroundResource(R.drawable.dropdown_icon); + 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(); - } + } //实现点击弹出菜单 }); } diff --git a/src/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java b/src/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java index 96b77da2..6f47a6c8 100644 --- a/src/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java +++ b/src/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java @@ -28,18 +28,18 @@ import net.micode.notes.R; import net.micode.notes.data.Notes; import net.micode.notes.data.Notes.NoteColumns; - -public class FoldersListAdapter extends CursorAdapter { +//文件夹列表连接数据库 +public class FoldersListAdapter extends CursorAdapter { //用文件夹的形式展示给用户 public static final String [] PROJECTION = { NoteColumns.ID, NoteColumns.SNIPPET }; public static final int ID_COLUMN = 0; - public static final int NAME_COLUMN = 1; + public static final int NAME_COLUMN = 1;// public FoldersListAdapter(Context context, Cursor c) { - super(context, c); + super(context, c); //父类构造函数 // TODO Auto-generated constructor stub } @@ -68,8 +68,8 @@ public class FoldersListAdapter extends CursorAdapter { public FolderListItem(Context context) { super(context); - inflate(context, R.layout.folder_list_item, this); - mName = (TextView) findViewById(R.id.tv_folder_name); + inflate(context, R.layout.folder_list_item, this); //操作数据库 + mName = (TextView) findViewById(R.id.tv_folder_name); //找出对应的内容 } public void bind(String name) { diff --git a/src/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java b/src/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java index ca810866..3220822a 100644 --- a/src/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java +++ b/src/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java @@ -71,7 +71,7 @@ import java.util.Map; import java.util.regex.Matcher; import java.util.regex.Pattern; -//便签编辑有关的活动,实现了 OnClickListener(处理点击事件)、NoteSettingChangedListener(监测便签设置的变动) 和 OnTextViewChangeListener(监测便签编辑的变动) 接口, +//便签编辑类,实现便签编辑有关的活动,实现点击监听、便签设置更改监听、文字更改监听接口 public class NoteEditActivity extends Activity implements OnClickListener, NoteSettingChangedListener, OnTextViewChangeListener { private class HeadViewHolder { @@ -84,6 +84,7 @@ public class NoteEditActivity extends Activity implements OnClickListener, public ImageView ibSetBgColor; } + //使用map进行数据存储,put将键和值相连 private static final Map sBgSelectorBtnsMap = new HashMap(); static { sBgSelectorBtnsMap.put(R.id.iv_bg_yellow, ResourceParser.YELLOW); @@ -122,17 +123,17 @@ public class NoteEditActivity extends Activity implements OnClickListener, private HeadViewHolder mNoteHeaderHolder; - private View mHeadViewPanel; + private View mHeadViewPanel; //表头操作 - private View mNoteBgColorSelector; + private View mNoteBgColorSelector; //颜色操作 - private View mFontSizeSelector; + private View mFontSizeSelector; //字体操作 - private EditText mNoteEditor; + private EditText mNoteEditor; //文本操作 private View mNoteEditorPanel; - private WorkingNote mWorkingNote; //记录当前正在工作的便签 + private WorkingNote mWorkingNote; //初始化正在工作便签 private SharedPreferences mSharedPrefs; private int mFontSizeId; @@ -152,26 +153,31 @@ public class NoteEditActivity extends Activity implements OnClickListener, @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - this.setContentView(R.layout.note_edit); + this.setContentView(R.layout.note_edit); //设置背景 - if (savedInstanceState == null && !initActivityState(getIntent())) { + if (savedInstanceState == null && !initActivityState(getIntent())) { //初始化活动状态 finish(); return; } - initResources(); + 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) { + protected void onRestoreInstanceState(Bundle savedInstanceState) { //Activity暂停状态到恢复式被调用 super.onRestoreInstanceState(savedInstanceState); + // 恢复之前保存的状态 if (savedInstanceState != null && savedInstanceState.containsKey(Intent.EXTRA_UID)) { + // 构建一个带有 ACTION_VIEW 的 Intent,并传递之前保存的笔记id Intent intent = new Intent(Intent.ACTION_VIEW); intent.putExtra(Intent.EXTRA_UID, savedInstanceState.getLong(Intent.EXTRA_UID)); + // 初始化Activity的工作状态 if (!initActivityState(intent)) { + // 如果初始化失败,则结束当前Activity finish(); return; } @@ -179,32 +185,29 @@ public class NoteEditActivity extends Activity implements OnClickListener, } } - //依据intent参数传递的Action采取动作 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())) { + // 如果用户指定了ACTION_VIEW但没有提供id,则跳转到NotesListActivity long noteId = intent.getLongExtra(Intent.EXTRA_UID, 0); mUserQuery = ""; - - /** - * Starting from the searched result - */ + + // 从搜索结果开始 if (intent.hasExtra(SearchManager.EXTRA_DATA_KEY)) { noteId = Long.parseLong(intent.getStringExtra(SearchManager.EXTRA_DATA_KEY)); mUserQuery = intent.getStringExtra(SearchManager.USER_QUERY); } - + if (!DataUtils.visibleInNoteDatabase(getContentResolver(), noteId, Notes.TYPE_NOTE)) { + // 如果数据库中不存在指定的笔记,则跳转到NotesListActivity并显示错误信息 Intent jump = new Intent(this, NotesListActivity.class); startActivity(jump); showToast(R.string.error_note_not_exist); finish(); return false; } else { + // 加载指定id的笔记 mWorkingNote = WorkingNote.load(this, noteId); if (mWorkingNote == null) { Log.e(TAG, "load note failed with note id" + noteId); @@ -216,7 +219,7 @@ public class NoteEditActivity extends Activity implements OnClickListener, 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); @@ -224,8 +227,8 @@ public class NoteEditActivity extends Activity implements OnClickListener, 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) { @@ -235,6 +238,7 @@ public class NoteEditActivity extends Activity implements OnClickListener, long noteId = 0; if ((noteId = DataUtils.getNoteIdByPhoneNumberAndCallDate(getContentResolver(), phoneNumber, callDate)) > 0) { + // 加载指定id的来电记录笔记 mWorkingNote = WorkingNote.load(this, noteId); if (mWorkingNote == null) { Log.e(TAG, "load call note failed with note id" + noteId); @@ -242,309 +246,443 @@ public class NoteEditActivity extends Activity implements OnClickListener, 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 { + // 如果Intent没有指定操作,则不应该支持该Intent,记录错误并关闭当前Activity Log.e(TAG, "Intent not specified action, should not support"); finish(); return false; } + // 设置工作状态改变监听器并返回true表示初始化成功 mWorkingNote.setOnSettingStatusChangedListener(this); return true; } - @Override - protected void onResume() { - super.onResume(); - initNoteScreen(); +@Override +protected void onResume() { //进入交互状态时被调用 + super.onResume(); + initNoteScreen(); // 初始化笔记界面 +} + +private void initNoteScreen() { + // 设置笔记编辑器的文本外观 + 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()); } - private void initNoteScreen() { - mNoteEditor.setTextAppearance(this, TextAppearanceResources - .getTexAppearanceResource(mFontSizeId)); - if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { - switchToListMode(mWorkingNote.getContent()); + // 隐藏背景选择器中当前选中的项 + 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(); // 显示提醒信息(如果有) +} + +private void showAlertHeader() { + // 如果工作笔记设置了提醒 + if (mWorkingNote.hasClockAlert()) { + long time = System.currentTimeMillis(); + if (time > mWorkingNote.getAlertDate()) { + // 如果提醒时间已过期,显示"提醒已过期" + mNoteHeaderHolder.tvAlertDate.setText(R.string.note_alert_expired); } else { - mNoteEditor.setText(getHighlightQueryResult(mWorkingNote.getContent(), mUserQuery)); - mNoteEditor.setSelection(mNoteEditor.getText().length()); + // 否则,显示距提醒时间的相对时间 + mNoteHeaderHolder.tvAlertDate.setText(DateUtils.getRelativeTimeSpanString( + mWorkingNote.getAlertDate(), time, DateUtils.MINUTE_IN_MILLIS)); } - for (Integer id : sBgSelectorSelectionMap.keySet()) { - findViewById(sBgSelectorSelectionMap.get(id)).setVisibility(View.GONE); - } - mHeadViewPanel.setBackgroundResource(mWorkingNote.getTitleBgResId()); - mNoteEditorPanel.setBackgroundResource(mWorkingNote.getBgColorResId()); + // 显示提醒时间文本和提醒图标 + mNoteHeaderHolder.tvAlertDate.setVisibility(View.VISIBLE); + mNoteHeaderHolder.ivAlertIcon.setVisibility(View.VISIBLE); + } else { + // 如果工作笔记没有设置提醒,隐藏提醒时间文本和提醒图标 + mNoteHeaderHolder.tvAlertDate.setVisibility(View.GONE); + mNoteHeaderHolder.ivAlertIcon.setVisibility(View.GONE); + }; +} - 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(); - } - 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 onNewIntent(Intent intent) { - super.onNewIntent(intent); - initActivityState(intent); +@Override +protected void onSaveInstanceState(Bundle outState) { //在即将被暂停或销毁时调用 + super.onSaveInstanceState(outState); + + /** + * 如果编辑的笔记尚未在数据库中存在(没有ID),我们先保存它以生成一个ID。 + * 如果正在编辑的笔记不值得保存,则没有ID等同于创建新的笔记。 + */ + if (!mWorkingNote.existInDatabase()) { + saveNote(); } + + outState.putLong(Intent.EXTRA_UID, mWorkingNote.getNoteId()); + Log.d(TAG, "保存正在编辑的笔记ID:" + mWorkingNote.getNoteId() + ",onSaveInstanceState"); +} - @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) { //分发触摸事件,传递给View + // 如果笔记背景颜色选择器可见,并且触摸事件的位置不在选择器内,隐藏选择器并返回true + if (mNoteBgColorSelector.getVisibility() == View.VISIBLE + && !inRangeOfView(mNoteBgColorSelector, ev)) { + mNoteBgColorSelector.setVisibility(View.GONE); + return true; } - @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; - } + // 如果字体大小选择器可见,并且触摸事件的位置不在选择器内,隐藏选择器并返回true + if (mFontSizeSelector.getVisibility() == View.VISIBLE + && !inRangeOfView(mFontSizeSelector, ev)) { + mFontSizeSelector.setVisibility(View.GONE); return true; } + + // 如果触摸事件位置没有被处理,则调用父类的dispatchTouchEvent方法处理事件 + return super.dispatchTouchEvent(ev); +} - 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); - } +/** + * 检查触摸事件的位置是否在给定View内部 + * + * @param view 要检查的View + * @param ev 触摸事件 + * @return 触摸事件位置是否在View内部 + */ +private boolean inRangeOfView(View view, MotionEvent ev) { //检查边界 + int[] location = new int[2]; + view.getLocationOnScreen(location); + int x = location[0]; + int y = location[1]; + + // 如果触摸事件的位置超出了View的边界,则返回false + if (ev.getX() < x + || ev.getX() > (x + view.getWidth()) + || ev.getY() < y + || ev.getY() > (y + view.getHeight())) { + return false; + } + + return true; +} - mFontSizeSelector = findViewById(R.id.font_size_selector); - for (int id : sFontSizeBtnsMap.keySet()) { - View view = findViewById(id); - view.setOnClickListener(this); - }; - mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); - mFontSizeId = mSharedPrefs.getInt(PREFERENCE_FONT_SIZE, ResourceParser.BG_DEFAULT_FONT_SIZE); - /** - * 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; - } - mEditTextList = (LinearLayout) findViewById(R.id.note_edit_list); +private void initResources() { + // 初始化控件和资源 + + // 获取布局中的note_title并赋值给mHeadViewPanel + mHeadViewPanel = findViewById(R.id.note_title); + + // 创建HeadViewHolder实例 + mNoteHeaderHolder = new HeadViewHolder(); + // 获取布局中的tv_modified_date并赋值给mNoteHeaderHolder中的tvModified + mNoteHeaderHolder.tvModified = (TextView) findViewById(R.id.tv_modified_date); + // 获取布局中的iv_alert_icon并赋值给mNoteHeaderHolder中的ivAlertIcon + mNoteHeaderHolder.ivAlertIcon = (ImageView) findViewById(R.id.iv_alert_icon); + // 获取布局中的tv_alert_date并赋值给mNoteHeaderHolder中的tvAlertDate + mNoteHeaderHolder.tvAlertDate = (TextView) findViewById(R.id.tv_alert_date); + // 获取布局中的btn_set_bg_color并赋值给mNoteHeaderHolder中的ibSetBgColor + mNoteHeaderHolder.ibSetBgColor = (ImageView) findViewById(R.id.btn_set_bg_color); + // 设置ibSetBgColor的点击事件监听器为当前Activity(this) + mNoteHeaderHolder.ibSetBgColor.setOnClickListener(this); + + // 获取布局中的note_edit_view并赋值给mNoteEditor + mNoteEditor = (EditText) findViewById(R.id.note_edit_view); + // 获取布局中的sv_note_edit并赋值给mNoteEditorPanel + mNoteEditorPanel = findViewById(R.id.sv_note_edit); + + // 获取布局中的note_bg_color_selector并赋值给mNoteBgColorSelector + mNoteBgColorSelector = findViewById(R.id.note_bg_color_selector); + // 遍历sBgSelectorBtnsMap中的按钮ID,并为每个按钮设置点击事件监听器为当前Activity(this) + for (int id : sBgSelectorBtnsMap.keySet()) { + ImageView iv = (ImageView) findViewById(id); + iv.setOnClickListener(this); } - @Override - protected void onPause() { - super.onPause(); - if(saveNote()) { - Log.d(TAG, "Note data was saved with length:" + mWorkingNote.getContent().length()); - } - clearSettingState(); + // 获取布局中的font_size_selector并赋值给mFontSizeSelector + mFontSizeSelector = findViewById(R.id.font_size_selector); + // 遍历sFontSizeBtnsMap中的按钮ID,并为每个按钮设置点击事件监听器为当前Activity(this) + for (int id : sFontSizeBtnsMap.keySet()) { + View view = findViewById(id); + view.setOnClickListener(this); + }; + + // 获取默认的SharedPreferences实例 + mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); + // 从SharedPreferences中获取设置的字体大小ID,默认值为ResourceParser.BG_DEFAULT_FONT_SIZE + mFontSizeId = mSharedPrefs.getInt(PREFERENCE_FONT_SIZE, ResourceParser.BG_DEFAULT_FONT_SIZE); + /** + * HACKME: 修复存储资源ID的共享偏好的bug。 + * ID可能大于资源的长度,在这种情况下, + * 将其设置为ResourceParser.BG_DEFAULT_FONT_SIZE。 + */ + if(mFontSizeId >= TextAppearanceResources.getResourcesSize()) { + mFontSizeId = ResourceParser.BG_DEFAULT_FONT_SIZE; } - 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; - } + // 获取布局中的note_edit_list并赋值给mEditTextList + mEditTextList = (LinearLayout) findViewById(R.id.note_edit_list); +} - intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, new int[] { - mWorkingNote.getWidgetId() - }); +@Override +protected void onPause() { + super.onPause(); + // 当Activity暂停时,保存笔记数据并输出日志 + if(saveNote()) { + Log.d(TAG, "Note data was saved with length:" + mWorkingNote.getContent().length()); + } + // 清除设置状态 + clearSettingState(); +} - sendBroadcast(intent); - setResult(RESULT_OK, intent); - } - - public void onClick(View v) { - 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); - } +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; } - @Override - public void onBackPressed() { - if(clearSettingState()) { - return; - } + // 将工作笔记的小部件ID作为额外数据放入意图中 + intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, new int[] { + mWorkingNote.getWidgetId() + }); - saveNote(); - super.onBackPressed(); - } + // 发送广播来更新小部件 + sendBroadcast(intent); + setResult(RESULT_OK, intent); +} - 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; +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); + // 设置新的背景颜色ID给工作笔记 + mWorkingNote.setBgColorId(sBgSelectorBtnsMap.get(id)); + // 隐藏背景颜色选择器 + mNoteBgColorSelector.setVisibility(View.GONE); + } else if (sFontSizeBtnsMap.containsKey(id)) { + // 如果点击的是字体大小选择器中的一个按钮 + // 隐藏当前字体大小的选择项 + findViewById(sFontSelectorSelectionMap.get(mFontSizeId)).setVisibility(View.GONE); + // 设置新的字体大小ID + mFontSizeId = sFontSizeBtnsMap.get(id); + // 将新的字体大小ID保存到SharedPreferences中 + 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)); } - return false; + // 隐藏字体大小选择器 + mFontSizeSelector.setVisibility(View.GONE); } +} - public void onBackgroundColorChanged() { - findViewById(sBgSelectorSelectionMap.get(mWorkingNote.getBgColorId())).setVisibility( - View.VISIBLE); - mNoteEditorPanel.setBackgroundResource(mWorkingNote.getBgColorResId()); - mHeadViewPanel.setBackgroundResource(mWorkingNote.getTitleBgResId()); +@Override +public void onBackPressed() { + // 当返回按钮按下时 + if (clearSettingState()) { + // 如果当前状态是设置状态,清除设置状态并返回 + return; } - @Override - public boolean onPrepareOptionsMenu(Menu menu) { - if (isFinishing()) { - return true; - } - clearSettingState(); - menu.clear(); - 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); - } + // 保存工作笔记 + 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; } - //实现便签的各种功能 - @Override - public boolean onOptionsItemSelected(MenuItem item) { - int itemId = item.getItemId(); - if (itemId == R.id.menu_new_note) { - createNewNote(); //新建便签 - } else if (itemId == R.id.menu_delete) { //删除便签 - AlertDialog.Builder builder = new AlertDialog.Builder(this); //创建一个 AlertDialog.Builder 对象,用于构建对话框 - 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, //点击ok则删除该便签 - new DialogInterface.OnClickListener() { - public void onClick(DialogInterface dialog, int which) { - deleteCurrentNote(); - finish(); - } - }); - builder.setNegativeButton(android.R.string.cancel, null); - builder.show(); - } else if (itemId == R.id.menu_font_size) { //设置字体大小 - mFontSizeSelector.setVisibility(View.VISIBLE); - findViewById(sFontSelectorSelectionMap.get(mFontSizeId)).setVisibility(View.VISIBLE); - } else if (itemId == R.id.menu_list_mode) { - mWorkingNote.setCheckListMode(mWorkingNote.getCheckListMode() == 0 ? - TextNote.MODE_CHECK_LIST : 0); - } else if (itemId == R.id.menu_share) { //分享 - getWorkingText(); - sendTo(this, mWorkingNote.getContent()); - } else if (itemId == R.id.menu_send_to_desktop) { //发送到桌面 - sendToDesktop(); - } else if (itemId == R.id.menu_alert) { //设置提醒 - setReminder(); - } else if (itemId == R.id.menu_delete_remind) { - mWorkingNote.setAlertDate(0, false); - } + return false; +} + +public void onBackgroundColorChanged() { + // 根据当前工作笔记的背景颜色ID显示相应的选择项 + findViewById(sBgSelectorSelectionMap.get(mWorkingNote.getBgColorId())).setVisibility(View.VISIBLE); + // 设置工作笔记编辑面板的背景颜色为当前工作笔记的背景颜色资源ID + mNoteEditorPanel.setBackgroundResource(mWorkingNote.getBgColorResId()); + // 设置工作笔记标题栏的背景颜色为当前工作笔记的标题背景资源ID + mHeadViewPanel.setBackgroundResource(mWorkingNote.getTitleBgResId()); +} + +@Override +public boolean onPrepareOptionsMenu(Menu menu) { + // 菜单准备方法,动态显示菜单项 + if (isFinishing()) { return true; } + // 清除设置状态 + clearSettingState(); + // 清空菜单项 + menu.clear(); + 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) { //响应用户在菜单中选择菜单项的操作 + int itemId = item.getItemId(); + if (itemId == R.id.menu_new_note) { + // 当点击菜单项“新建笔记”时 + createNewNote(); + } else if (itemId == 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(); + } else if (itemId == R.id.menu_font_size) { + // 当点击菜单项“字体大小”时 + // 显示字体大小选择器,并根据当前字体大小ID显示相应的选择项 + mFontSizeSelector.setVisibility(View.VISIBLE); + findViewById(sFontSelectorSelectionMap.get(mFontSizeId)).setVisibility(View.VISIBLE); + } else if (itemId == R.id.menu_list_mode) { + // 当点击菜单项“模式切换”时 + // 切换工作笔记的待办事项模式 + mWorkingNote.setCheckListMode(mWorkingNote.getCheckListMode() == 0 ? + TextNote.MODE_CHECK_LIST : 0); + } else if (itemId == R.id.menu_share) { + // 当点击菜单项“分享”时 + // 获取当前工作文本并进行分享 + getWorkingText(); + sendTo(this, mWorkingNote.getContent()); + } else if (itemId == R.id.menu_send_to_desktop) { + // 当点击菜单项“发送到桌面”时 + sendToDesktop(); + } else if (itemId == R.id.menu_alert) { + // 当点击菜单项“提醒”时 + // 设置闹钟提醒 + setReminder(); + } else if (itemId == R.id.menu_delete_remind) { + // 当点击菜单项“删除提醒”时 + // 清除工作笔记的提醒日期和提醒标志 + mWorkingNote.setAlertDate(0, false); + } + return true; +} private void setReminder() { +/* + * 这段 Java 代码实现了一个名为 `setReminder()` 的方法,用于设置笔记的提醒功能。以下是对该方法的解释: +1. 首先,创建一个 `DateTimePickerDialog` 对象 `d`,用于显示日期时间选择对话框。 +2. 通过传递 System.currentTimeMillis() 方法的返回值,设置初始日期时间选择为当前时间。 +3. 将一个匿名的 `OnDateTimeSetListener` 实例设置给 `d`,用于在用户选择日期时间后响应事件。 +4. 在 `OnDateTimeSet` 方法中,获取用户选择的日期时间, +并通过调用 `mWorkingNote` 对象的 `setAlertDate()` 方法设置笔记的提醒日期时间。 +5. 最后,通过调用 `d` 对象的 `show()` 方法,显示日期时间选择对话框。 +综上,该方法实现了通过日期时间选择对话框设置笔记提醒功能的功能,用户能够通过该对话框选择想要提醒的日期时间点。 +在用户选择日期时间后,将所选日期时间点保存到 `mWorkingNote` 对象中,以实现笔记的提醒功能。 + */ DateTimePickerDialog d = new DateTimePickerDialog(this, System.currentTimeMillis()); d.setOnDateTimeSetListener(new OnDateTimeSetListener() { public void OnDateTimeSet(AlertDialog dialog, long date) { @@ -559,13 +697,23 @@ public class NoteEditActivity extends Activity implements OnClickListener, * and {@text/plain} type */ private void sendTo(Context context, String info) { + /* +这是一个名为 `sendTo()` 的私有方法,用于发送信息。 +该方法接受两个参数,一个是上下文(`context`),一个是要发送的信息(`info`)。 +方法的具体步骤如下: +1. 创建一个 `Intent` 对象,使用 `Intent.ACTION_SEND` 动作。这表示我们要发送数据。 +2. 使用 `intent.putExtra()` 方法将要发送的文本数据添加到 `Intent` 中。 +键为 `Intent.EXTRA_TEXT`,值为 `info`,即要发送的信息内容。 +3. 使用 `intent.setType()` 方法指定发送的数据类型为纯文本("text/plain")。 +4. 调用 `context.startActivity(intent)` 启动该意图,从而触发系统选择合适的应用程序来处理发送操作。 + */ + 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(); @@ -575,9 +723,18 @@ public class NoteEditActivity extends Activity implements OnClickListener, 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); + startActivity(intent);/* + 这段代码是一个方法 `createNewNote()` 的实现。下面是对代码的解释: +1. 首先,调用 `saveNote()` 方法保存当前正在编辑的笔记。 +2. 为了安全起见,在开始新的笔记之前,调用 `finish()` 方法关闭当前的 Activity。 +3. 创建一个新的 `Intent` 对象,将目标 Activity 设置为 `NoteEditActivity`(笔记编辑界面)。 +4. 使用 `Intent.ACTION_INSERT_OR_EDIT` 设置操作,表示是插入或编辑操作。 +5. 使用 `intent.putExtra()` 将当前笔记所属的文件夹的 ID 作为附加数据传递给 `NoteEditActivity`。 +6. 最后,调用 `startActivity(intent)` 启动 `NoteEditActivity`。 +这将打开一个新的笔记编辑界面,并根据传递的附加数据进行相应的操作。 + */ } - //删除当前工作的便签 + private void deleteCurrentNote() { if (mWorkingNote.existInDatabase()) { HashSet ids = new HashSet(); @@ -597,184 +754,259 @@ public class NoteEditActivity extends Activity implements OnClickListener, } } } - mWorkingNote.markDeleted(true); //标记删除 + mWorkingNote.markDeleted(true); +/* + * 这段代码是一个方法 `deleteCurrentNote()` 的实现。下面是对代码的解释: +1. 首先,检查 `mWorkingNote` 是否存在于数据库中,即当前的笔记是否已经保存在数据库中。 +2. 如果存在于数据库中,创建一个 `HashSet` 集合 `ids`,用于存储需要删除的笔记的 ID。 +3. 获取当前笔记的 ID,并将其添加到 `ids` 集合中。 +4. 检查当前笔记的 ID 是否等于 `Notes.ID_ROOT_FOLDER`,如果不是,将其添加到 `ids` 集合中。 +5. 如果不是处于同步模式下(`isSyncMode()` 返回 `false`), +则调用 `DataUtils.batchDeleteNotes()` 方法批量删除数据库中的笔记。如果删除失败,打印错误日志信息。 +6. 如果处于同步模式下,调用 `DataUtils.batchMoveToFolder()` 方法 +将笔记批量移动到垃圾箱。如果移动失败,打印错误日志信息。 +7. 调用 `mWorkingNote.markDeleted(true)` 方法,将当前笔记标记为已删除。 +这段代码的作用是将当前的笔记标记为已删除,并根据不同的条件执行相应的操作: +如果不是同步模式,则删除数据库中的笔记;如果是同步模式,则将笔记移动到垃圾箱。 + */ } - private boolean isSyncMode() { - return NotesPreferenceActivity.getSyncAccountName(this).trim().length() > 0; - } +// 判断是否为同步模式 +private boolean isSyncMode() { + return NotesPreferenceActivity.getSyncAccountName(this).trim().length() > 0; +} - 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(); - } - if (mWorkingNote.getNoteId() > 0) { - 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); - } +// 当闹钟提醒设置改变时的处理 +public void onClockAlertChanged(long date, boolean set) { + // 如果当前工作笔记不存在于数据库中,则保存笔记 + if (!mWorkingNote.existInDatabase()) { + saveNote(); + } + // 如果工作笔记的ID大于0,则继续处理 + if (mWorkingNote.getNoteId() > 0) { + // 创建AlarmReceiver的Intent + Intent intent = new Intent(this, AlarmReceiver.class); + intent.setData(ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, mWorkingNote.getNoteId())); + // 创建用于广播的PendingIntent + PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, 0); + // 获取AlarmManager实例 + AlarmManager alarmManager = ((AlarmManager) getSystemService(ALARM_SERVICE)); + // 显示提醒标题 + showAlertHeader(); + // 根据set参数判断是否设置或取消闹钟提醒 + if(!set) { + alarmManager.cancel(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); + alarmManager.set(AlarmManager.RTC_WAKEUP, date, pendingIntent); // 设置闹钟提醒 } + } else { + // 如果工作笔记ID小于等于0,记录错误并显示提示 + Log.e(TAG, "Clock alert setting error"); + showToast(R.string.error_note_empty_for_clock); } +} - public void onWidgetChanged() { - updateWidget(); +// 当小部件改变时的处理 +public void onWidgetChanged() { + updateWidget(); // 更新小部件 +} + +// 当文本编辑框内容删除时的处理 +public void onEditTextDelete(int index, String text) { + int childCount = mEditTextList.getChildCount(); + // 如果子View数量为1,则直接返回 + if (childCount == 1) { + return; } - 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); + } - 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); // 设置光标位置 +} - 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) { + /** + * 如果索引超出 mEditTextList 的范围,应该不会发生,进行调试检查 + */ + if(index > mEditTextList.getChildCount()) { + Log.e(TAG, "Index out of mEditTextList boundrary, should not happen"); } - 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"); - } + // 创建新的编辑框视图并添加到 mEditTextList 中指定的位置 + 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); + } +} - 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) { + // 如果项不为空,则创建对应的编辑框视图并添加到 mEditTextList 中 + if(!TextUtils.isEmpty(item)) { + mEditTextList.addView(getListItem(item, index)); + index++; } } + // 添加一个空的编辑框以便用户继续添加新项 + mEditTextList.addView(getListItem("", index)); + mEditTextList.getChildAt(index).findViewById(R.id.et_edit_text).requestFocus(); - 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++; - } + // 隐藏笔记编辑视图,显示编辑框列表视图 + mNoteEditor.setVisibility(View.GONE); + mEditTextList.setVisibility(View.VISIBLE); +} + +// 获取包含用户查询结果高亮的 Spannable 对象 +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(); } - 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; +} + +/** + * 通过传入的内容和索引,获取包含编辑框和复选框的列表项视图 + * @param item 列表项内容 + * @param index 列表项索引 + * @return 列表项视图 + */ +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); } } - 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)) { + // 如果列表项以 "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)) { + // 如果列表项以 "unchecked" 标识开头,则设置复选框未选中状态,取消文本删除线,并去掉标识字符串 + cb.setChecked(false); + edit.setPaintFlags(Paint.ANTI_ALIAS_FLAG | Paint.DEV_KERN_TEXT_FLAG); + item = item.substring(TAG_UNCHECKED.length(), item.length()).trim(); + } - 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; +} - edit.setOnTextViewChangeListener(this); - edit.setIndex(index); - edit.setText(getHighlightQueryResult(item, mUserQuery)); - return view; +/** + * 当文本内容改变时的回调方法 + * @param index 列表项索引 + * @param hasText 是否有文本内容 + */ +public void onTextChange(int index, boolean hasText) { + if (index >= mEditTextList.getChildCount()) { + Log.e(TAG, "Wrong index, should not happen"); + return; } - - 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); - } + 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); +/** + * 当待办事项模式变化时的回调方法 + * @param oldMode 旧的待办事项模式 + * @param newMode 新的待办事项模式 + */ +public void onCheckListModeChanged(int oldMode, int newMode) { + if (newMode == TextNote.MODE_CHECK_LIST) { + // 如果新的模式是待办事项列表模式,则切换到列表模式 + switchToListMode(mNoteEditor.getText().toString()); + } else { + if (!getWorkingText()) { + // 如果工作文本为空,并且未保存的文本中包含 "unchecked" 标识,则将其移除 + mWorkingNote.setWorkingText(mWorkingNote.getContent().replace(TAG_UNCHECKED + " ", "")); } + // 设置编辑框内容,并将用户查询结果高亮显示 + mNoteEditor.setText(getHighlightQueryResult(mWorkingNote.getContent(), mUserQuery)); + // 隐藏编辑框列表视图,显示笔记编辑视图 + mEditTextList.setVisibility(View.GONE); + mNoteEditor.setVisibility(View.VISIBLE); } +} private boolean getWorkingText() { +/* +这是一个名为 `getWorkingText()` 的私有方法,返回一个布尔值。 +该方法的作用是获取工作文本,具体步骤如下: +1. 首先,检查 `mWorkingNote` 对象的 `CheckListMode` +是否为 `TextNote.MODE_CHECK_LIST`。如果是,则进入列表模式的处理逻辑。 +2. 创建一个 `StringBuilder` 对象 `sb`,用于拼接文本。 +3. 遍历 `mEditTextList` 中的子视图(可能是多个文本编辑框): + - 获取子视图中的 `NoteEditText` 对象,用于获取文本内容。 + - 如果 `edit.getText()` 不为空,表示该文本框有输入内容。 + - 如果相应的复选框 `CheckBox` 被选中(`isChecked()` 返回 `true`), + 将文本设为已选中状态,并向 `sb` 添加标记 `TAG_CHECKED`,文本内容,以及换行符。 + 同时将 `hasChecked` 设为 `true`。 + - 否则,将文本设为未选中状态,并向 `sb` 添加标记 `TAG_UNCHECKED`,文本内容,以及换行符。 +4. 将拼接好的文本 `sb.toString()` 设为 `mWorkingNote` 的工作文本。 +5. 如果 `mWorkingNote` 的 `CheckListMode` 不是 `TextNote.MODE_CHECK_LIST`, +即非列表模式,则将 `mNoteEditor` 的文本内容设为 `mWorkingNote` 的工作文本。 +6. 返回 `hasChecked`,该布尔值表示是否存在已选中的文本项。 + */ boolean hasChecked = false; if (mWorkingNote.getCheckListMode() == TextNote.MODE_CHECK_LIST) { StringBuilder sb = new StringBuilder(); @@ -796,7 +1028,7 @@ public class NoteEditActivity extends Activity implements OnClickListener, } return hasChecked; } - //保存便签 + private boolean saveNote() { getWorkingText(); boolean saved = mWorkingNote.saveNote(); @@ -814,10 +1046,25 @@ public class NoteEditActivity extends Activity implements OnClickListener, } 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 + /** +这段代码实现了一个名为 `sendToDesktop()` 的方法,用于将当前编辑的笔记发送到桌面上。 +以下是对该方法的解释: +1. 首先,检查当前编辑的笔记 `mWorkingNote` 是否存在于数据库中。 +如果笔记在数据库中不存在(即为新笔记),则调用 `saveNote()` 方法保存笔记。 +2. 如果当前编辑的笔记已经存在于数据库中(即为已有的笔记),执行以下操作: + - 创建一个 `Intent` 对象 `sender`。 + - 创建一个 `Intent` 对象 `shortcutIntent`,指定其启动目标为 `NoteEditActivity` 类。 + - 为 `shortcutIntent` 指定动作 `Intent.ACTION_VIEW`,表示要进行查看操作。 + - 通过 `putExtra()` 方法向 `shortcutIntent` 传递附加信息,包括笔记的唯一标识符(`NoteId`)。 + - 通过 `sender.putExtra()` 方法向 `sender` 传递附加信息,包括快捷方式的意图(`shortcutIntent`)、 + 快捷方式的名称、快捷方式的图标资源和重复安装的标志等。 + - 通过设置 `sender` 的动作为 `"com.android.launcher.action.INSTALL_SHORTCUT"`,表示要安装快捷方式。 + - 调用 `showToast()` 方法显示一个消息提示框,提示用户笔记已进入桌面。 + - 调用 `sendBroadcast()` 方法发送广播,通知系统安装快捷方式。 +3. 如果当前编辑的笔记不存在(即为没有输入内容的空笔记), +则记录一个错误日志并调用 `showToast()` 方法显示一个错误提示框,提醒用户输入内容。 +4. 方法执行结束。 +综上,该方法的功能是将当前编辑的笔记发送到桌面上,并根据笔记的状态进行相应的处理,如保存新笔记、创建快捷方式等。 */ if (!mWorkingNote.existInDatabase()) { saveNote(); @@ -849,17 +1096,21 @@ public class NoteEditActivity extends Activity implements OnClickListener, } 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; + // 如果内容的长度超过了指定的最大长度,则返回内容的子字符串,否则返回原始内容 + return content.length() > SHORTCUT_ICON_TITLE_MAX_LEN ? content.substring(0, SHORTCUT_ICON_TITLE_MAX_LEN) : content; } - + private void showToast(int resId) { + // 显示一个短持续时间的Toast消息,消息内容为给定的资源ID的字符串 showToast(resId, Toast.LENGTH_SHORT); } - + private void showToast(int resId, int duration) { + // 显示一个具有自定义持续时间的Toast消息,消息内容为给定的资源ID的字符串 + // Toast消息在当前的上下文中显示 Toast.makeText(this, resId, duration).show(); } }