Merge remote-tracking branch 'origin/ziji_wu' into develop

# Conflicts:
#	src/.gradle/5.4.1/executionHistory/executionHistory.bin
#	src/.gradle/5.4.1/executionHistory/executionHistory.lock
#	src/.gradle/5.4.1/fileHashes/fileHashes.bin
#	src/.gradle/5.4.1/fileHashes/fileHashes.lock
#	src/.gradle/buildOutputCleanup/buildOutputCleanup.lock
#	src/.idea/workspace.xml
#	src/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java
This commit is contained in:
ziji Wu 2019-10-11 23:50:17 +08:00
commit 6c7336cf57
15 changed files with 376 additions and 297 deletions

Binary file not shown.

View File

@ -2,15 +2,15 @@
<project version="4"> <project version="4">
<component name="AndroidLayouts"> <component name="AndroidLayouts">
<shared> <shared>
<config /> <config>
<locale>zh-rTW</locale>
</config>
</shared> </shared>
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="c8515555-ebbc-49d5-889b-0c59bd6c3b6d" name="默认更改列表" comment="Merge remote-tracking branch 'origin/ziji_wu' into develop&#10;&#10;# Conflicts:&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.bin&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.bin&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/resourceHashesCache.bin&#10;#&#9;src/.gradle/5.4.1/javaCompile/javaCompile.lock&#10;#&#9;src/.gradle/buildOutputCleanup/buildOutputCleanup.lock&#10;#&#9;src/.gradle/buildOutputCleanup/outputFiles.bin&#10;#&#9;src/.idea/caches/build_file_checksums.ser&#10;#&#9;src/.idea/caches/gradle_models.ser&#10;#&#9;src/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13&#10;#&#9;src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710&#10;#&#9;src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c&#10;#&#9;src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5&#10;#&#9;src/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5&#10;#&#9;src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32&#10;#&#9;src/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb&#10;#&#9;src/.idea/workspace.xml&#10;#&#9;src/app/app.iml&#10;#&#9;src/app/build.gradle&#10;#&#9;src/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/dPcwR9oS2EmiImbvDZ1Qg_iwk3M=&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class&#10;#&#9;src/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesDatabaseHelper.dex&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesProvider.dex&#10;#&#9;src/app/build/outputs/apk/debug/app-debug.apk&#10;#&#9;src/app/src/main/java/net/micode/notes/data/NotesProvider.java"> <list default="true" id="c8515555-ebbc-49d5-889b-0c59bd6c3b6d" name="默认更改列表" comment="">
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.lock" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/Note.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/Note.java" afterDir="false" />
</list> </list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" /> <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@ -45,37 +45,19 @@
<component name="FileEditorManager"> <component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300"> <leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="440"> <state relative-caret-position="-3111">
<caret line="96" column="6" selection-start-line="96" selection-start-column="4" selection-end-line="96" selection-end-column="6" /> <caret line="226" column="41" lean-forward="true" selection-start-line="226" selection-start-column="41" selection-end-line="226" selection-end-column="41" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/res/values-zh-rCN/strings.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1580">
<caret line="79" column="54" selection-start-line="79" selection-start-column="54" selection-end-line="79" selection-end-column="54" />
</state> </state>
</provider> </provider>
</entry> </entry>
</file> </file>
<file pinned="false" current-in-tab="true"> <file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240">
<caret line="79" column="10" selection-start-line="79" selection-start-column="10" selection-end-line="79" selection-end-column="10" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="380"> <state relative-caret-position="2740">
<caret line="54" column="19" selection-start-line="54" selection-start-column="19" selection-end-line="54" selection-end-column="19" /> <caret line="172" column="12" selection-start-line="172" selection-start-column="12" selection-end-line="172" selection-end-column="12" />
</state> </state>
</provider> </provider>
</entry> </entry>
@ -142,15 +124,15 @@
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListAdapter.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListAdapter.java" />
<option value="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" /> <option value="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/WorkingNote.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" />
<option value="$PROJECT_DIR$/app/build.gradle" /> <option value="$PROJECT_DIR$/app/build.gradle" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Notes.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Notes.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesProvider.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesProvider.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/Note.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/Note.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/WorkingNote.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java" />
</list> </list>
</option> </option>
</component> </component>
@ -811,7 +793,21 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1570755488920</updated> <updated>1570755488920</updated>
</task> </task>
<option name="localTasksCounter" value="30" /> <task id="LOCAL-00030" summary="Merge remote-tracking branch 'origin/ziji_wu' into develop&#10;&#10;# Conflicts:&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.bin&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.bin&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/resourceHashesCache.bin&#10;#&#9;src/.gradle/5.4.1/javaCompile/javaCompile.lock&#10;#&#9;src/.gradle/buildOutputCleanup/buildOutputCleanup.lock&#10;#&#9;src/.gradle/buildOutputCleanup/outputFiles.bin&#10;#&#9;src/.idea/caches/build_file_checksums.ser&#10;#&#9;src/.idea/caches/gradle_models.ser&#10;#&#9;src/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13&#10;#&#9;src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710&#10;#&#9;src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c&#10;#&#9;src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5&#10;#&#9;src/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5&#10;#&#9;src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32&#10;#&#9;src/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb&#10;#&#9;src/.idea/workspace.xml&#10;#&#9;src/app/app.iml&#10;#&#9;src/app/build.gradle&#10;#&#9;src/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/dPcwR9oS2EmiImbvDZ1Qg_iwk3M=&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class&#10;#&#9;src/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesDatabaseHelper.dex&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesProvider.dex&#10;#&#9;src/app/build/outputs/apk/debug/app-debug.apk&#10;#&#9;src/app/src/main/java/net/micode/notes/data/NotesProvider.java">
<created>1570780060754</created>
<option name="number" value="00030" />
<option name="presentableId" value="LOCAL-00030" />
<option name="project" value="LOCAL" />
<updated>1570780060755</updated>
</task>
<task id="LOCAL-00031" summary="Merge remote-tracking branch 'origin/ziji_wu' into develop&#10;&#10;# Conflicts:&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.bin&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.bin&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/resourceHashesCache.bin&#10;#&#9;src/.gradle/5.4.1/javaCompile/javaCompile.lock&#10;#&#9;src/.gradle/buildOutputCleanup/buildOutputCleanup.lock&#10;#&#9;src/.gradle/buildOutputCleanup/outputFiles.bin&#10;#&#9;src/.idea/caches/build_file_checksums.ser&#10;#&#9;src/.idea/caches/gradle_models.ser&#10;#&#9;src/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13&#10;#&#9;src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710&#10;#&#9;src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c&#10;#&#9;src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5&#10;#&#9;src/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5&#10;#&#9;src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32&#10;#&#9;src/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb&#10;#&#9;src/.idea/workspace.xml&#10;#&#9;src/app/app.iml&#10;#&#9;src/app/build.gradle&#10;#&#9;src/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/dPcwR9oS2EmiImbvDZ1Qg_iwk3M=&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class&#10;#&#9;src/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesDatabaseHelper.dex&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesProvider.dex&#10;#&#9;src/app/build/outputs/apk/debug/app-debug.apk&#10;#&#9;src/app/src/main/java/net/micode/notes/data/NotesProvider.java">
<created>1570807703651</created>
<option name="number" value="00031" />
<option name="presentableId" value="LOCAL-00031" />
<option name="project" value="LOCAL" />
<updated>1570807703651</updated>
</task>
<option name="localTasksCounter" value="32" />
<servers /> <servers />
</component> </component>
<component name="TodoView"> <component name="TodoView">
@ -828,7 +824,7 @@
<editor active="true" /> <editor active="true" />
<layout> <layout>
<window_info id="Captures" order="0" sideWeight="0.5019305" side_tool="true" weight="0.16957104" /> <window_info id="Captures" order="0" sideWeight="0.5019305" side_tool="true" weight="0.16957104" />
<window_info content_ui="combo" id="Project" order="1" sideWeight="0.48771265" visible="true" weight="0.15281501" /> <window_info active="true" content_ui="combo" id="Project" order="1" sideWeight="0.48771265" visible="true" weight="0.15281501" />
<window_info id="设计器" order="2" /> <window_info id="设计器" order="2" />
<window_info id="Resources Explorer" order="3" weight="0.3297587" /> <window_info id="Resources Explorer" order="3" weight="0.3297587" />
<window_info id="Structure" order="4" sideWeight="0.51132077" side_tool="true" weight="0.15281501" /> <window_info id="Structure" order="4" sideWeight="0.51132077" side_tool="true" weight="0.15281501" />
@ -896,16 +892,10 @@
<MESSAGE value="comment" /> <MESSAGE value="comment" />
<MESSAGE value="sdk 23 &#10;comment more" /> <MESSAGE value="sdk 23 &#10;comment more" />
<MESSAGE value="comment more" /> <MESSAGE value="comment more" />
<option name="LAST_COMMIT_MESSAGE" value="comment more" /> <MESSAGE value="Merge remote-tracking branch 'origin/ziji_wu' into develop&#10;&#10;# Conflicts:&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.bin&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.bin&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/resourceHashesCache.bin&#10;#&#9;src/.gradle/5.4.1/javaCompile/javaCompile.lock&#10;#&#9;src/.gradle/buildOutputCleanup/buildOutputCleanup.lock&#10;#&#9;src/.gradle/buildOutputCleanup/outputFiles.bin&#10;#&#9;src/.idea/caches/build_file_checksums.ser&#10;#&#9;src/.idea/caches/gradle_models.ser&#10;#&#9;src/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13&#10;#&#9;src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710&#10;#&#9;src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c&#10;#&#9;src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5&#10;#&#9;src/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5&#10;#&#9;src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32&#10;#&#9;src/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb&#10;#&#9;src/.idea/workspace.xml&#10;#&#9;src/app/app.iml&#10;#&#9;src/app/build.gradle&#10;#&#9;src/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/dPcwR9oS2EmiImbvDZ1Qg_iwk3M=&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class&#10;#&#9;src/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesDatabaseHelper.dex&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesProvider.dex&#10;#&#9;src/app/build/outputs/apk/debug/app-debug.apk&#10;#&#9;src/app/src/main/java/net/micode/notes/data/NotesProvider.java" />
<option name="LAST_COMMIT_MESSAGE" value="Merge remote-tracking branch 'origin/ziji_wu' into develop&#10;&#10;# Conflicts:&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.bin&#10;#&#9;src/.gradle/5.4.1/executionHistory/executionHistory.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.bin&#10;#&#9;src/.gradle/5.4.1/fileHashes/fileHashes.lock&#10;#&#9;src/.gradle/5.4.1/fileHashes/resourceHashesCache.bin&#10;#&#9;src/.gradle/5.4.1/javaCompile/javaCompile.lock&#10;#&#9;src/.gradle/buildOutputCleanup/buildOutputCleanup.lock&#10;#&#9;src/.gradle/buildOutputCleanup/outputFiles.bin&#10;#&#9;src/.idea/caches/build_file_checksums.ser&#10;#&#9;src/.idea/caches/gradle_models.ser&#10;#&#9;src/.idea/sonarlint/issuestore/1/e/1eb2363b523dbcae43d3c6e4790c64436af61b13&#10;#&#9;src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710&#10;#&#9;src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c&#10;#&#9;src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5&#10;#&#9;src/.idea/sonarlint/issuestore/a/7/a7641cfac724321d508c2a284223a711011a93f5&#10;#&#9;src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32&#10;#&#9;src/.idea/sonarlint/issuestore/d/d/dd970bd8ce083850fca1d4d159647ccd110e57cb&#10;#&#9;src/.idea/workspace.xml&#10;#&#9;src/app/app.iml&#10;#&#9;src/app/build.gradle&#10;#&#9;src/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt&#10;#&#9;src/app/build/intermediates/incremental/packageDebug/tmp/debug/zip-cache/dPcwR9oS2EmiImbvDZ1Qg_iwk3M=&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesDatabaseHelper.class&#10;#&#9;src/app/build/intermediates/javac/debug/classes/net/micode/notes/data/NotesProvider.class&#10;#&#9;src/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesDatabaseHelper.dex&#10;#&#9;src/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/data/NotesProvider.dex&#10;#&#9;src/app/build/outputs/apk/debug/app-debug.apk&#10;#&#9;src/app/src/main/java/net/micode/notes/data/NotesProvider.java" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/tool/DataUtils.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="48">
<caret line="37" column="13" selection-start-line="37" selection-start-column="13" selection-end-line="37" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://D:/Android_SDK/SDK/sources/android-28/android/content/Intent.java"> <entry file="file://D:/Android_SDK/SDK/sources/android-28/android/content/Intent.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="239"> <state relative-caret-position="239">
@ -913,13 +903,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/tool/ResourceParser.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="780">
<caret line="57" selection-start-line="57" selection-end-line="57" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/AndroidManifest.xml"> <entry file="file://$PROJECT_DIR$/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="449"> <state relative-caret-position="449">
@ -1102,13 +1085,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/WorkingNote.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="6060">
<caret line="354" column="15" selection-start-line="354" selection-start-column="15" selection-end-line="354" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/layout/dialog_edit_text.xml"> <entry file="file://$PROJECT_DIR$/app/src/main/res/layout/dialog_edit_text.xml">
<provider editor-type-id="text-editor" /> <provider editor-type-id="text-editor" />
<provider selected="true" editor-type-id="android-designer2" /> <provider selected="true" editor-type-id="android-designer2" />
@ -1210,22 +1186,8 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="440"> <state relative-caret-position="-3156">
<caret line="96" column="6" selection-start-line="96" selection-start-column="4" selection-end-line="96" selection-end-column="6" /> <caret line="329" column="29" selection-start-line="329" selection-start-column="29" selection-end-line="329" selection-end-column="29" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/values-zh-rCN/strings.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="1580">
<caret line="79" column="54" selection-start-line="79" selection-start-column="54" selection-end-line="79" selection-end-column="54" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="380">
<caret line="54" column="19" selection-start-line="54" selection-start-column="19" selection-end-line="54" selection-end-column="19" />
</state> </state>
</provider> </provider>
</entry> </entry>
@ -1238,21 +1200,55 @@
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/Note.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/Note.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="256"> <state relative-caret-position="457">
<caret line="299" column="13" lean-forward="true" selection-start-line="299" selection-start-column="13" selection-end-line="299" selection-end-column="13" /> <caret line="218" column="15" lean-forward="true" selection-start-line="218" selection-start-column="15" selection-end-line="218" selection-end-column="15" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/tool/ResourceParser.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="166">
<caret line="36" column="28" selection-start-line="36" selection-start-column="28" selection-end-line="36" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/layout/note_edit.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="434">
<caret line="274" column="28" selection-start-line="274" selection-start-column="28" selection-end-line="274" selection-end-column="28" />
</state>
</provider>
<provider editor-type-id="android-designer2" />
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/model/WorkingNote.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="7483">
<caret line="438" column="11" lean-forward="true" selection-start-line="438" selection-start-column="11" selection-end-line="438" selection-end-column="11" />
<folding> <folding>
<element signature="e#3356#3357#0" expanded="true" /> <element signature="e#7252#7253#0" expanded="true" />
<element signature="e#3399#3400#0" expanded="true" /> <element signature="e#7286#7287#0" expanded="true" />
<element signature="e#3434#3435#0" expanded="true" />
<element signature="e#3478#3479#0" expanded="true" />
</folding> </folding>
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/values-zh-rCN/strings.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="166">
<caret line="76" column="42" selection-start-line="76" selection-start-column="42" selection-end-line="76" selection-end-column="42" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="240"> <state relative-caret-position="-3111">
<caret line="79" column="10" selection-start-line="79" selection-start-column="10" selection-end-line="79" selection-end-column="10" /> <caret line="226" column="41" lean-forward="true" selection-start-line="226" selection-start-column="41" selection-end-line="226" selection-end-column="41" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="2740">
<caret line="172" column="12" selection-start-line="172" selection-start-column="12" selection-end-line="172" selection-end-column="12" />
</state> </state>
</provider> </provider>
</entry> </entry>

View File

@ -36,8 +36,7 @@
<application <application
android:debuggable="true" android:debuggable="true"
android:icon="@drawable/icon_app" android:icon="@drawable/icon_app"
android:label="@string/app_name" android:label="@string/app_name" >
android:testOnly="true" >
<activity <activity
android:name="net.micode.notes.ui.NotesListActivity" android:name="net.micode.notes.ui.NotesListActivity"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"

View File

@ -37,8 +37,7 @@
<application <application
android:debuggable="true" android:debuggable="true"
android:icon="@drawable/icon_app" android:icon="@drawable/icon_app"
android:label="@string/app_name" android:label="@string/app_name" >
android:testOnly="true" >
<activity <activity
android:name="net.micode.notes.ui.NotesListActivity" android:name="net.micode.notes.ui.NotesListActivity"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"

View File

@ -58,215 +58,214 @@
37 android:debuggable="true" 37 android:debuggable="true"
38 android:icon="@drawable/icon_app" 38 android:icon="@drawable/icon_app"
38-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:34:9-42 38-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:34:9-42
39 android:label="@string/app_name" 39 android:label="@string/app_name" >
39-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:35:9-41 39-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:35:9-41
40 android:testOnly="true" > 40 <activity
41 <activity 40-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:36:9-49:20
41-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:36:9-49:20 41 android:name="net.micode.notes.ui.NotesListActivity"
42 android:name="net.micode.notes.ui.NotesListActivity" 41-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:37:13-49
42-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:37:13-49 42 android:configChanges="keyboardHidden|orientation|screenSize"
43 android:configChanges="keyboardHidden|orientation|screenSize" 42-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:38:13-74
43-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:38:13-74 43 android:label="@string/app_name"
44 android:label="@string/app_name" 43-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:39:13-45
44-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:39:13-45 44 android:launchMode="singleTop"
45 android:launchMode="singleTop" 44-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:40:13-43
45-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:40:13-43 45 android:theme="@style/NoteTheme"
46 android:theme="@style/NoteTheme" 45-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:41:13-45
46-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:41:13-45 46 android:uiOptions="splitActionBarWhenNarrow"
47 android:uiOptions="splitActionBarWhenNarrow" 46-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:42:13-57
47-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:42:13-57 47 android:windowSoftInputMode="adjustPan" >
48 android:windowSoftInputMode="adjustPan" > 47-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:43:13-52
48-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:43:13-52 48 <intent-filter>
49 <intent-filter> 48-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:45:13-48:29
49-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:45:13-48:29 49 <action android:name="android.intent.action.MAIN" />
50 <action android:name="android.intent.action.MAIN" /> 49-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:46:17-69
50-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:46:17-69 49-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:46:25-66
50-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:46:25-66 50
51 51 <category android:name="android.intent.category.LAUNCHER" />
52 <category android:name="android.intent.category.LAUNCHER" /> 51-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:47:17-77
52-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:47:17-77 51-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:47:27-74
52-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:47:27-74 52 </intent-filter>
53 </intent-filter> 53 </activity>
54 </activity> 54 <activity
55 <activity 54-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:51:9-79:20
55-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:51:9-79:20 55 android:name="net.micode.notes.ui.NoteEditActivity"
56 android:name="net.micode.notes.ui.NoteEditActivity" 55-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:52:13-48
56-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:52:13-48 56 android:configChanges="keyboardHidden|orientation|screenSize"
57 android:configChanges="keyboardHidden|orientation|screenSize" 56-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:53:13-74
57-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:53:13-74 57 android:launchMode="singleTop"
58 android:launchMode="singleTop" 57-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:54:13-43
58-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:54:13-43 58 android:theme="@style/NoteTheme" >
59 android:theme="@style/NoteTheme" > 58-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:55:13-45
59-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:55:13-45 59 <intent-filter>
60 <intent-filter> 59-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:57:13-62:29
60-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:57:13-62:29 60 <action android:name="android.intent.action.VIEW" />
61 <action android:name="android.intent.action.VIEW" /> 60-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:58:17-69
61-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:58:17-69 60-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:58:25-66
61-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:58:25-66 61
62 62 <category android:name="android.intent.category.DEFAULT" />
63 <category android:name="android.intent.category.DEFAULT" /> 62-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:17-76
63-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:17-76 62-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:27-73
63-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:27-73 63
64 64 <data android:mimeType="vnd.android.cursor.item/text_note" />
65 <data android:mimeType="vnd.android.cursor.item/text_note" /> 64-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78
64-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75
65 <data android:mimeType="vnd.android.cursor.item/call_note" />
65-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78 65-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78
65-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75 65-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75
66 <data android:mimeType="vnd.android.cursor.item/call_note" /> 66 </intent-filter>
66-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78 67 <intent-filter>
66-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75 67-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:64:13-69:29
67 </intent-filter> 68 <action android:name="android.intent.action.INSERT_OR_EDIT" />
68 <intent-filter> 68-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:65:17-79
68-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:64:13-69:29 68-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:65:25-76
69 <action android:name="android.intent.action.INSERT_OR_EDIT" /> 69
69-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:65:17-79 70 <category android:name="android.intent.category.DEFAULT" />
69-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:65:25-76 70-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:17-76
70 70-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:27-73
71 <category android:name="android.intent.category.DEFAULT" /> 71
71-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:17-76 72 <data android:mimeType="vnd.android.cursor.item/text_note" />
71-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:27-73 72-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78
72 72-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75
73 <data android:mimeType="vnd.android.cursor.item/text_note" /> 73 <data android:mimeType="vnd.android.cursor.item/call_note" />
73-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78 73-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78
73-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75 73-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75
74 <data android:mimeType="vnd.android.cursor.item/call_note" /> 74 </intent-filter>
74-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:17-78 75 <intent-filter>
74-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:60:23-75 75-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:71:13-74:29
75 </intent-filter> 76 <action android:name="android.intent.action.SEARCH" />
76 <intent-filter> 76-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:72:17-71
76-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:71:13-74:29 76-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:72:25-68
77 <action android:name="android.intent.action.SEARCH" /> 77
77-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:72:17-71 78 <category android:name="android.intent.category.DEFAULT" />
77-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:72:25-68 78-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:17-76
78 78-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:27-73
79 <category android:name="android.intent.category.DEFAULT" /> 79 </intent-filter>
79-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:17-76 80
79-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:59:27-73 81 <meta-data
80 </intent-filter> 81-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:76:13-78:54
81 82 android:name="android.app.searchable"
82 <meta-data 82-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:77:17-54
82-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:76:13-78:54 83 android:resource="@xml/searchable" />
83 android:name="android.app.searchable" 83-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:78:17-51
83-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:77:17-54 84 </activity>
84 android:resource="@xml/searchable" /> 85
84-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:78:17-51 86 <provider
85 </activity> 86-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:81:9-84:43
86 87 android:name="net.micode.notes.data.NotesProvider"
87 <provider 87-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:82:13-63
87-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:81:9-84:43 88 android:authorities="micode_notes"
88 android:name="net.micode.notes.data.NotesProvider" 88-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:83:13-47
88-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:82:13-63 89 android:multiprocess="true" />
89 android:authorities="micode_notes" 89-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:84:13-40
89-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:83:13-47 90
90 android:multiprocess="true" /> 91 <receiver
90-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:84:13-40 91-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:86:9-98:20
91 92 android:name="net.micode.notes.widget.NoteWidgetProvider_2x"
92 <receiver 92-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:87:13-57
92-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:86:9-98:20 93 android:label="@string/app_widget2x2" >
93 android:name="net.micode.notes.widget.NoteWidgetProvider_2x" 93-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:88:13-50
93-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:87:13-57 94 <intent-filter>
94 android:label="@string/app_widget2x2" > 94-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:89:13-93:29
94-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:88:13-50 95 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
95 <intent-filter> 95-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:17-84
95-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:89:13-93:29 95-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:25-81
96 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 96 <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
96-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:17-84 96-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:17-85
96-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:25-81 96-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:25-82
97 <action android:name="android.appwidget.action.APPWIDGET_DELETED" /> 97 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
97-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:17-85 97-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:17-85
97-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:25-82 97-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:25-82
98 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" /> 98 </intent-filter>
98-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:17-85 99
98-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:25-82 100 <meta-data
99 </intent-filter> 100-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:95:13-97:58
100 101 android:name="android.appwidget.provider"
101 <meta-data 101-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:96:17-58
101-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:95:13-97:58 102 android:resource="@xml/widget_2x_info" />
102 android:name="android.appwidget.provider" 102-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:97:17-55
102-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:96:17-58 103 </receiver>
103 android:resource="@xml/widget_2x_info" /> 104 <receiver
103-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:97:17-55 104-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:99:9-112:20
104 </receiver> 105 android:name="net.micode.notes.widget.NoteWidgetProvider_4x"
105 <receiver 105-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:100:13-57
105-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:99:9-112:20 106 android:label="@string/app_widget4x4" >
106 android:name="net.micode.notes.widget.NoteWidgetProvider_4x" 106-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:101:13-50
106-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:100:13-57 107 <intent-filter>
107 android:label="@string/app_widget4x4" > 107-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:89:13-93:29
107-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:101:13-50 108 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
108 <intent-filter> 108-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:17-84
108-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:89:13-93:29 108-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:25-81
109 <action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> 109 <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
109-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:17-84 109-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:17-85
109-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:90:25-81 109-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:25-82
110 <action android:name="android.appwidget.action.APPWIDGET_DELETED" /> 110 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" />
110-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:17-85 110-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:17-85
110-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:91:25-82 110-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:25-82
111 <action android:name="android.intent.action.PRIVACY_MODE_CHANGED" /> 111 </intent-filter>
111-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:17-85 112
111-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:92:25-82 113 <meta-data
112 </intent-filter> 113-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:95:13-97:58
113 114 android:name="android.appwidget.provider"
114 <meta-data 114-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:96:17-58
114-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:95:13-97:58 115 android:resource="@xml/widget_4x_info" />
115 android:name="android.appwidget.provider" 115-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:97:17-55
115-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:96:17-58 116 </receiver>
116 android:resource="@xml/widget_4x_info" /> 117 <receiver android:name="net.micode.notes.ui.AlarmInitReceiver" >
116-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:97:17-55 117-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:114:9-118:20
117 </receiver> 117-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:114:19-55
118 <receiver android:name="net.micode.notes.ui.AlarmInitReceiver" > 118 <intent-filter>
118-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:114:9-118:20 118-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:115:13-117:29
118-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:114:19-55 119 <action android:name="android.intent.action.BOOT_COMPLETED" />
119 <intent-filter> 119-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:116:17-79
119-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:115:13-117:29 119-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:116:25-76
120 <action android:name="android.intent.action.BOOT_COMPLETED" /> 120 </intent-filter>
120-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:116:17-79 121 </receiver>
120-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:116:25-76 122 <receiver
121 </intent-filter> 122-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:120:9-123:20
122 </receiver> 123 android:name="net.micode.notes.ui.AlarmReceiver"
123 <receiver 123-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:121:13-61
123-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:120:9-123:20 124 android:process=":remote" >
124 android:name="net.micode.notes.ui.AlarmReceiver" 124-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:122:13-38
124-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:121:13-61 125 </receiver>
125 android:process=":remote" > 126
125-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:122:13-38 127 <activity
126 </receiver> 127-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:125:9-130:20
127 128 android:name="net.micode.notes.ui.AlarmAlertActivity"
128 <activity 128-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:126:13-50
128-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:125:9-130:20 129 android:label="@string/app_name"
129 android:name="net.micode.notes.ui.AlarmAlertActivity" 129-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:127:13-45
129-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:126:13-50 130 android:launchMode="singleInstance"
130 android:label="@string/app_name" 130-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:128:13-48
130-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:127:13-45 131 android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" >
131 android:launchMode="singleInstance" 131-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:129:13-75
131-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:128:13-48 132 </activity>
132 android:theme="@android:style/Theme.Holo.Wallpaper.NoTitleBar" > 133 <activity
132-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:129:13-75 133-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:132:9-137:20
133 </activity> 134 android:name="net.micode.notes.ui.NotesPreferenceActivity"
134 <activity 134-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:133:13-71
134-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:132:9-137:20 135 android:label="@string/preferences_title"
135 android:name="net.micode.notes.ui.NotesPreferenceActivity" 135-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:134:13-54
135-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:133:13-71 136 android:launchMode="singleTop"
136 android:label="@string/preferences_title" 136-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:135:13-43
136-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:134:13-54 137 android:theme="@android:style/Theme.Holo.Light" >
137 android:launchMode="singleTop" 137-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:136:13-60
137-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:135:13-43 138 </activity>
138 android:theme="@android:style/Theme.Holo.Light" > 139
138-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:136:13-60 140 <service
139 </activity> 140-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:139:9-142:19
140 141 android:name="net.micode.notes.gtask.remote.GTaskSyncService"
141 <service 141-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:140:13-74
141-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:139:9-142:19 142 android:exported="false" >
142 android:name="net.micode.notes.gtask.remote.GTaskSyncService" 142-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:141:13-37
142-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:140:13-74 143 </service>
143 android:exported="false" > 144
143-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:141:13-37 145 <meta-data
144 </service> 145-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:144:9-146:52
145 146 android:name="android.app.default_searchable"
146 <meta-data 146-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:145:13-58
146-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:144:9-146:52 147 android:value=".ui.NoteEditActivity" />
147 android:name="android.app.default_searchable" 147-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:146:13-49
147-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:145:13-58 148 </application>
148 android:value=".ui.NoteEditActivity" /> 149
148-->C:\Project\minote\src\app\src\main\AndroidManifest.xml:146:13-49 150</manifest>
149 </application>
150
151</manifest>

View File

@ -36,8 +36,7 @@
<application <application
android:debuggable="true" android:debuggable="true"
android:icon="@drawable/icon_app" android:icon="@drawable/icon_app"
android:label="@string/app_name" android:label="@string/app_name" >
android:testOnly="true" >
<activity <activity
android:name="net.micode.notes.ui.NotesListActivity" android:name="net.micode.notes.ui.NotesListActivity"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"

View File

@ -57,14 +57,17 @@ public class WorkingNote {
//记录Widget类型 //记录Widget类型
private int mWidgetType; private int mWidgetType;
//记录文件夹id
private long mFolderId; private long mFolderId;
private Context mContext; private Context mContext;
private static final String TAG = "WorkingNote"; private static final String TAG = "WorkingNote";
//是否删除标识
private boolean mIsDeleted; private boolean mIsDeleted;
//用于检查便签设置是否更改
private NoteSettingChangedListener mNoteSettingStatusListener; private NoteSettingChangedListener mNoteSettingStatusListener;
public static final String[] DATA_PROJECTION = new String[] { public static final String[] DATA_PROJECTION = new String[] {
@ -77,6 +80,7 @@ public class WorkingNote {
DataColumns.DATA4, DataColumns.DATA4,
}; };
//定义了便签显示的一系列参数
public static final String[] NOTE_PROJECTION = new String[] { public static final String[] NOTE_PROJECTION = new String[] {
NoteColumns.PARENT_ID, NoteColumns.PARENT_ID,
NoteColumns.ALERTED_DATE, NoteColumns.ALERTED_DATE,
@ -86,6 +90,7 @@ public class WorkingNote {
NoteColumns.MODIFIED_DATE NoteColumns.MODIFIED_DATE
}; };
//定义了一系列id
private static final int DATA_ID_COLUMN = 0; private static final int DATA_ID_COLUMN = 0;
private static final int DATA_CONTENT_COLUMN = 1; private static final int DATA_CONTENT_COLUMN = 1;
@ -136,8 +141,11 @@ public class WorkingNote {
ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, mNoteId), NOTE_PROJECTION, null, ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, mNoteId), NOTE_PROJECTION, null,
null, null); null, null);
//如果查询到的内容有效
if (cursor != null) { if (cursor != null) {
if (cursor.moveToFirst()) { if (cursor.moveToFirst()) {
//如果将游标置于第一个元素成功
//将便签参数以这个元素初始化
mFolderId = cursor.getLong(NOTE_PARENT_ID_COLUMN); mFolderId = cursor.getLong(NOTE_PARENT_ID_COLUMN);
mBgColorId = cursor.getInt(NOTE_BG_COLOR_ID_COLUMN); mBgColorId = cursor.getInt(NOTE_BG_COLOR_ID_COLUMN);
mWidgetId = cursor.getInt(NOTE_WIDGET_ID_COLUMN); mWidgetId = cursor.getInt(NOTE_WIDGET_ID_COLUMN);
@ -145,63 +153,89 @@ public class WorkingNote {
mAlertDate = cursor.getLong(NOTE_ALERTED_DATE_COLUMN); mAlertDate = cursor.getLong(NOTE_ALERTED_DATE_COLUMN);
mModifiedDate = cursor.getLong(NOTE_MODIFIED_DATE_COLUMN); mModifiedDate = cursor.getLong(NOTE_MODIFIED_DATE_COLUMN);
} }
//关闭cursor
cursor.close(); cursor.close();
} else { } else {
//否则记录错误抛出异常
Log.e(TAG, "No note with id:" + mNoteId); Log.e(TAG, "No note with id:" + mNoteId);
throw new IllegalArgumentException("Unable to find note with id " + mNoteId); throw new IllegalArgumentException("Unable to find note with id " + mNoteId);
} }
//加载便签数据的方法
loadNoteData(); loadNoteData();
} }
//实现了加载便签数据的方法
private void loadNoteData() { private void loadNoteData() {
Cursor cursor = mContext.getContentResolver().query(Notes.CONTENT_DATA_URI, DATA_PROJECTION, Cursor cursor = mContext.getContentResolver().query(Notes.CONTENT_DATA_URI, DATA_PROJECTION,
DataColumns.NOTE_ID + "=?", new String[] { DataColumns.NOTE_ID + "=?", new String[] {
String.valueOf(mNoteId) String.valueOf(mNoteId)
}, null); }, null);
//如果查询到了内容有效
if (cursor != null) { if (cursor != null) {
if (cursor.moveToFirst()) { if (cursor.moveToFirst()) {
do { do {
String type = cursor.getString(DATA_MIME_TYPE_COLUMN); String type = cursor.getString(DATA_MIME_TYPE_COLUMN);
//匹配数据类型
//如果是便签类的数据
if (DataConstants.NOTE.equals(type)) { if (DataConstants.NOTE.equals(type)) {
//初始化
mContent = cursor.getString(DATA_CONTENT_COLUMN); mContent = cursor.getString(DATA_CONTENT_COLUMN);
mMode = cursor.getInt(DATA_MODE_COLUMN); mMode = cursor.getInt(DATA_MODE_COLUMN);
mNote.setTextDataId(cursor.getLong(DATA_ID_COLUMN)); mNote.setTextDataId(cursor.getLong(DATA_ID_COLUMN));
} else if (DataConstants.CALL_NOTE.equals(type)) { } else if (DataConstants.CALL_NOTE.equals(type)) {
//如果是通话记录类的数据
mNote.setCallDataId(cursor.getLong(DATA_ID_COLUMN)); mNote.setCallDataId(cursor.getLong(DATA_ID_COLUMN));
} else { } else {
//都不是保错
Log.d(TAG, "Wrong note type with type:" + type); Log.d(TAG, "Wrong note type with type:" + type);
} }
} while (cursor.moveToNext()); } while (cursor.moveToNext());//遍历cursor中的所有内容
} }
cursor.close(); cursor.close();
} else { } else {
//cursor为null当前id找不到内容
//将错误信息记入日志抛出异常
Log.e(TAG, "No data with id:" + mNoteId); Log.e(TAG, "No data with id:" + mNoteId);
throw new IllegalArgumentException("Unable to find note's data with id " + mNoteId); throw new IllegalArgumentException("Unable to find note's data with id " + mNoteId);
} }
} }
//该方法实现了创建新的空便签的方法
public static WorkingNote createEmptyNote(Context context, long folderId, int widgetId, public static WorkingNote createEmptyNote(Context context, long folderId, int widgetId,
int widgetType, int defaultBgColorId) { int widgetType, int defaultBgColorId) {
//创建新的便签
WorkingNote note = new WorkingNote(context, folderId); WorkingNote note = new WorkingNote(context, folderId);
//设置背景色
note.setBgColorId(defaultBgColorId); note.setBgColorId(defaultBgColorId);
//设置widget
note.setWidgetId(widgetId); note.setWidgetId(widgetId);
//设置wegit类型
note.setWidgetType(widgetType); note.setWidgetType(widgetType);
//返回新建的便签
return note; return note;
} }
//该方法实现了加载便签的功能
//@ id 要加载的便签id号
public static WorkingNote load(Context context, long id) { public static WorkingNote load(Context context, long id) {
return new WorkingNote(context, id, 0); return new WorkingNote(context, id, 0);
} }
//该方法实现了保存便签的功能
public synchronized boolean saveNote() { public synchronized boolean saveNote() {
if (isWorthSaving()) { if (isWorthSaving()) {
if (!existInDatabase()) { if (!existInDatabase()) {
//当需要保存且在数据库中不存在时
if ((mNoteId = Note.getNewNoteId(mContext, mFolderId)) == 0) { if ((mNoteId = Note.getNewNoteId(mContext, mFolderId)) == 0) {
//分配id失败id == 0记入日志
Log.e(TAG, "Create new note fail with id:" + mNoteId); Log.e(TAG, "Create new note fail with id:" + mNoteId);
//返回false保存失败
return false; return false;
} }
} }
//同步便签
mNote.syncNote(mContext, mNoteId); mNote.syncNote(mContext, mNoteId);
/** /**
@ -210,6 +244,7 @@ public class WorkingNote {
if (mWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID if (mWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID
&& mWidgetType != Notes.TYPE_WIDGET_INVALIDE && mWidgetType != Notes.TYPE_WIDGET_INVALIDE
&& mNoteSettingStatusListener != null) { && mNoteSettingStatusListener != null) {
//更新便签widget
mNoteSettingStatusListener.onWidgetChanged(); mNoteSettingStatusListener.onWidgetChanged();
} }
return true; return true;
@ -218,10 +253,12 @@ public class WorkingNote {
} }
} }
//根据id判断是否在数据库中的方法id>0有效否则无效
public boolean existInDatabase() { public boolean existInDatabase() {
return mNoteId > 0; return mNoteId > 0;
} }
//判断是否需要保存的方法
private boolean isWorthSaving() { private boolean isWorthSaving() {
if (mIsDeleted || (!existInDatabase() && TextUtils.isEmpty(mContent)) if (mIsDeleted || (!existInDatabase() && TextUtils.isEmpty(mContent))
|| (existInDatabase() && !mNote.isLocalModified())) { || (existInDatabase() && !mNote.isLocalModified())) {
@ -237,8 +274,11 @@ public class WorkingNote {
//设置闹铃时间的方法 //设置闹铃时间的方法
public void setAlertDate(long date, boolean set) { public void setAlertDate(long date, boolean set) {
//如果闹钟时间改变
if (date != mAlertDate) { if (date != mAlertDate) {
//更改提醒时间
mAlertDate = date; mAlertDate = date;
//将更改保存
mNote.setNoteValue(NoteColumns.ALERTED_DATE, String.valueOf(mAlertDate)); mNote.setNoteValue(NoteColumns.ALERTED_DATE, String.valueOf(mAlertDate));
} }
if (mNoteSettingStatusListener != null) { if (mNoteSettingStatusListener != null) {
@ -246,9 +286,12 @@ public class WorkingNote {
} }
} }
//将便签标记为已删除 //置上删除标记
//mark - true已删除
//mark - false未删除
public void markDeleted(boolean mark) { public void markDeleted(boolean mark) {
mIsDeleted = mark; mIsDeleted = mark;
//widget有效
if (mWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID if (mWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID
&& mWidgetType != Notes.TYPE_WIDGET_INVALIDE && mNoteSettingStatusListener != null) { && mWidgetType != Notes.TYPE_WIDGET_INVALIDE && mNoteSettingStatusListener != null) {
mNoteSettingStatusListener.onWidgetChanged(); mNoteSettingStatusListener.onWidgetChanged();
@ -258,10 +301,13 @@ public class WorkingNote {
//设置背景色ID //设置背景色ID
public void setBgColorId(int id) { public void setBgColorId(int id) {
if (id != mBgColorId) { if (id != mBgColorId) {
//如果背景色id改变执行下列操作
//否则不执行操作
mBgColorId = id; mBgColorId = id;
if (mNoteSettingStatusListener != null) { if (mNoteSettingStatusListener != null) {
mNoteSettingStatusListener.onBackgroundColorChanged(); mNoteSettingStatusListener.onBackgroundColorChanged();
} }
//将更改保存到便签中
mNote.setNoteValue(NoteColumns.BG_COLOR_ID, String.valueOf(id)); mNote.setNoteValue(NoteColumns.BG_COLOR_ID, String.valueOf(id));
} }
} }
@ -269,6 +315,8 @@ public class WorkingNote {
//设置列表模式的方法 //设置列表模式的方法
public void setCheckListMode(int mode) { public void setCheckListMode(int mode) {
if (mMode != mode) { if (mMode != mode) {
//如果模式改变执行下列操作
//否则跳过
if (mNoteSettingStatusListener != null) { if (mNoteSettingStatusListener != null) {
mNoteSettingStatusListener.onCheckListModeChanged(mMode, mode); mNoteSettingStatusListener.onCheckListModeChanged(mMode, mode);
} }
@ -281,13 +329,17 @@ public class WorkingNote {
public void setWidgetType(int type) { public void setWidgetType(int type) {
if (type != mWidgetType) { if (type != mWidgetType) {
mWidgetType = type; mWidgetType = type;
//将更改保存到便签中
mNote.setNoteValue(NoteColumns.WIDGET_TYPE, String.valueOf(mWidgetType)); mNote.setNoteValue(NoteColumns.WIDGET_TYPE, String.valueOf(mWidgetType));
} }
} }
//设置widget的id的方法
//如果id不变不执行操作
public void setWidgetId(int id) { public void setWidgetId(int id) {
if (id != mWidgetId) { if (id != mWidgetId) {
mWidgetId = id; mWidgetId = id;
//将更改保存
mNote.setNoteValue(NoteColumns.WIDGET_ID, String.valueOf(mWidgetId)); mNote.setNoteValue(NoteColumns.WIDGET_ID, String.valueOf(mWidgetId));
} }
} }
@ -295,6 +347,7 @@ public class WorkingNote {
public void setWorkingText(String text) { public void setWorkingText(String text) {
if (!TextUtils.equals(mContent, text)) { if (!TextUtils.equals(mContent, text)) {
mContent = text; mContent = text;
//保存更改
mNote.setTextData(DataColumns.CONTENT, mContent); mNote.setTextData(DataColumns.CONTENT, mContent);
} }
} }
@ -323,6 +376,7 @@ public class WorkingNote {
return mModifiedDate; return mModifiedDate;
} }
//获取背景色的资源id号
public int getBgColorResId() { public int getBgColorResId() {
return NoteBgResources.getNoteBgResource(mBgColorId); return NoteBgResources.getNoteBgResource(mBgColorId);
} }
@ -332,6 +386,7 @@ public class WorkingNote {
return mBgColorId; return mBgColorId;
} }
//获取标题背景资源id
public int getTitleBgResId() { public int getTitleBgResId() {
return NoteBgResources.getNoteTitleBgResource(mBgColorId); return NoteBgResources.getNoteTitleBgResource(mBgColorId);
} }
@ -340,18 +395,22 @@ public class WorkingNote {
return mMode; return mMode;
} }
//获取便签id
public long getNoteId() { public long getNoteId() {
return mNoteId; return mNoteId;
} }
//获取文件夹id
public long getFolderId() { public long getFolderId() {
return mFolderId; return mFolderId;
} }
//获取widget的id
public int getWidgetId() { public int getWidgetId() {
return mWidgetId; return mWidgetId;
} }
//获取widget的类型
public int getWidgetType() { public int getWidgetType() {
return mWidgetType; return mWidgetType;
} }

View File

@ -41,9 +41,11 @@ import java.io.IOException;
public class AlarmAlertActivity extends Activity implements OnClickListener, OnDismissListener { public class AlarmAlertActivity extends Activity implements OnClickListener, OnDismissListener {
//便签id号
private long mNoteId; private long mNoteId;
private String mSnippet; private String mSnippet;
private static final int SNIPPET_PREW_MAX_LEN = 60; private static final int SNIPPET_PREW_MAX_LEN = 60;
//实例化播放器类
MediaPlayer mPlayer; MediaPlayer mPlayer;
/** /**
@ -53,14 +55,17 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
*/ */
@Override @Override
protected void onCreate(Bundle savedInstanceState) { protected void onCreate(Bundle savedInstanceState) {
//调用父类onCreate方法
super.onCreate(savedInstanceState); super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE); requestWindowFeature(Window.FEATURE_NO_TITLE);
//获取窗口
final Window win = getWindow(); final Window win = getWindow();
//使窗口悬浮在锁屏界面上 //使窗口悬浮在锁屏界面上
win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); win.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
//如果屏幕未亮起
if (!isScreenOn()) { if (!isScreenOn()) {
win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON//保持屏幕常亮 win.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON//保持屏幕常亮
| WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON | WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
@ -86,8 +91,10 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
mPlayer = new MediaPlayer(); mPlayer = new MediaPlayer();
if (DataUtils.visibleInNoteDatabase(getContentResolver(), mNoteId, Notes.TYPE_NOTE)) { if (DataUtils.visibleInNoteDatabase(getContentResolver(), mNoteId, Notes.TYPE_NOTE)) {
showActionDialog(); showActionDialog();
//播放提示音
playAlarmSound(); playAlarmSound();
} else { } else {
//结束activity
finish(); finish();
} }
} }
@ -98,9 +105,12 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
return pm.isScreenOn(); return pm.isScreenOn();
} }
//播放提示音的方法
private void playAlarmSound() { private void playAlarmSound() {
//获取默认提示音id
Uri url = RingtoneManager.getActualDefaultRingtoneUri(this, RingtoneManager.TYPE_ALARM); Uri url = RingtoneManager.getActualDefaultRingtoneUri(this, RingtoneManager.TYPE_ALARM);
//是否为静音模式
int silentModeStreams = Settings.System.getInt(getContentResolver(), int silentModeStreams = Settings.System.getInt(getContentResolver(),
Settings.System.MODE_RINGER_STREAMS_AFFECTED, 0); Settings.System.MODE_RINGER_STREAMS_AFFECTED, 0);
@ -159,6 +169,8 @@ public class AlarmAlertActivity extends Activity implements OnClickListener, OnD
} }
//该方法实现了停止闹钟铃声 //该方法实现了停止闹钟铃声
//如果实例化播放器类存在执行操作
//否则跳过此方法
private void stopAlarmSound() { private void stopAlarmSound() {
if (mPlayer != null) { if (mPlayer != null) {
mPlayer.stop(); mPlayer.stop();

View File

@ -77,19 +77,23 @@ import java.util.regex.Pattern;
public class NoteEditActivity extends Activity implements OnClickListener, public class NoteEditActivity extends Activity implements OnClickListener,
NoteSettingChangedListener, OnTextViewChangeListener { NoteSettingChangedListener, OnTextViewChangeListener {
private class HeadViewHolder { private class HeadViewHolder {
//文本内容显示
public TextView tvModified; public TextView tvModified;
//图片内容显示
public ImageView ivAlertIcon; public ImageView ivAlertIcon;
//文本内容显示提醒时间
public TextView tvAlertDate; public TextView tvAlertDate;
//设置背景色
public ImageView ibSetBgColor; public ImageView ibSetBgColor;
} }
//ResourceParser - tools\ResourceParser.java中的类用于解析界面元素 //ResourceParser - tools\ResourceParser.java中的类用于解析界面元素
private static final Map<Integer, Integer> sBgSelectorBtnsMap = new HashMap<Integer, Integer>(); private static final Map<Integer, Integer> sBgSelectorBtnsMap = new HashMap<Integer, Integer>();
static { static {
//向R文件中放入一系列颜色资源与id
sBgSelectorBtnsMap.put(R.id.iv_bg_yellow, ResourceParser.YELLOW); sBgSelectorBtnsMap.put(R.id.iv_bg_yellow, ResourceParser.YELLOW);
sBgSelectorBtnsMap.put(R.id.iv_bg_red, ResourceParser.RED); sBgSelectorBtnsMap.put(R.id.iv_bg_red, ResourceParser.RED);
sBgSelectorBtnsMap.put(R.id.iv_bg_blue, ResourceParser.BLUE); sBgSelectorBtnsMap.put(R.id.iv_bg_blue, ResourceParser.BLUE);
@ -99,6 +103,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
private static final Map<Integer, Integer> sBgSelectorSelectionMap = new HashMap<Integer, Integer>(); private static final Map<Integer, Integer> sBgSelectorSelectionMap = new HashMap<Integer, Integer>();
static { static {
//向资源文件中加入一系列背景资源与id
sBgSelectorSelectionMap.put(ResourceParser.YELLOW, R.id.iv_bg_yellow_select); sBgSelectorSelectionMap.put(ResourceParser.YELLOW, R.id.iv_bg_yellow_select);
sBgSelectorSelectionMap.put(ResourceParser.RED, R.id.iv_bg_red_select); sBgSelectorSelectionMap.put(ResourceParser.RED, R.id.iv_bg_red_select);
sBgSelectorSelectionMap.put(ResourceParser.BLUE, R.id.iv_bg_blue_select); sBgSelectorSelectionMap.put(ResourceParser.BLUE, R.id.iv_bg_blue_select);
@ -108,6 +113,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
private static final Map<Integer, Integer> sFontSizeBtnsMap = new HashMap<Integer, Integer>(); private static final Map<Integer, Integer> sFontSizeBtnsMap = new HashMap<Integer, Integer>();
static { static {
//向R文件中加入字体大小id与内容
sFontSizeBtnsMap.put(R.id.ll_font_large, ResourceParser.TEXT_LARGE); sFontSizeBtnsMap.put(R.id.ll_font_large, ResourceParser.TEXT_LARGE);
sFontSizeBtnsMap.put(R.id.ll_font_small, ResourceParser.TEXT_SMALL); sFontSizeBtnsMap.put(R.id.ll_font_small, ResourceParser.TEXT_SMALL);
sFontSizeBtnsMap.put(R.id.ll_font_normal, ResourceParser.TEXT_MEDIUM); sFontSizeBtnsMap.put(R.id.ll_font_normal, ResourceParser.TEXT_MEDIUM);
@ -122,16 +128,21 @@ public class NoteEditActivity extends Activity implements OnClickListener,
sFontSelectorSelectionMap.put(ResourceParser.TEXT_SUPER, R.id.iv_super_select); sFontSelectorSelectionMap.put(ResourceParser.TEXT_SUPER, R.id.iv_super_select);
} }
//用于日志记录的标识
private static final String TAG = "NoteEditActivity"; private static final String TAG = "NoteEditActivity";
private HeadViewHolder mNoteHeaderHolder; 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 View mNoteEditorPanel;
@ -139,6 +150,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
private WorkingNote mWorkingNote; private WorkingNote mWorkingNote;
private SharedPreferences mSharedPrefs; private SharedPreferences mSharedPrefs;
//记录字体大小id
private int mFontSizeId; private int mFontSizeId;
//记录默认字体大小 //记录默认字体大小
@ -176,17 +188,21 @@ public class NoteEditActivity extends Activity implements OnClickListener,
@Override @Override
protected void onRestoreInstanceState(Bundle savedInstanceState) { protected void onRestoreInstanceState(Bundle savedInstanceState) {
super.onRestoreInstanceState(savedInstanceState); super.onRestoreInstanceState(savedInstanceState);
//activity被意外杀死savedInstanceState保存断点状态
if (savedInstanceState != null && savedInstanceState.containsKey(Intent.EXTRA_UID)) { if (savedInstanceState != null && savedInstanceState.containsKey(Intent.EXTRA_UID)) {
Intent intent = new Intent(Intent.ACTION_VIEW); Intent intent = new Intent(Intent.ACTION_VIEW);
intent.putExtra(Intent.EXTRA_UID, savedInstanceState.getLong(Intent.EXTRA_UID)); intent.putExtra(Intent.EXTRA_UID, savedInstanceState.getLong(Intent.EXTRA_UID));
if (!initActivityState(intent)) { if (!initActivityState(intent)) {
//断点重启失败结束activity
finish(); finish();
return; return;
} }
//将断点重启成功信息记入日志
Log.d(TAG, "Restoring from killed activity"); Log.d(TAG, "Restoring from killed activity");
} }
} }
//该方法用于初始化activity的状态重启activity
private boolean initActivityState(Intent intent) { private boolean initActivityState(Intent intent) {
/** /**
* If the user specified the {@link Intent#ACTION_VIEW} but not provided with id, * If the user specified the {@link Intent#ACTION_VIEW} but not provided with id,
@ -198,7 +214,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
mUserQuery = ""; mUserQuery = "";
/** /**
* Starting from the searched result * 从搜索结果启动
*/ */
if (intent.hasExtra(SearchManager.EXTRA_DATA_KEY)) { if (intent.hasExtra(SearchManager.EXTRA_DATA_KEY)) {
noteId = Long.parseLong(intent.getStringExtra(SearchManager.EXTRA_DATA_KEY)); noteId = Long.parseLong(intent.getStringExtra(SearchManager.EXTRA_DATA_KEY));