comment more
This commit is contained in:
ziji Wu 2019-10-10 20:49:27 +08:00
parent a0ce16049b
commit 8ecc3315ce
18 changed files with 365 additions and 319 deletions

Binary file not shown.

View File

@ -0,0 +1,9 @@
<component name="libraryTable">
<library name="Gradle: org.apache.http.legacy-android-23">
<CLASSES>
<root url="jar://D:/Android_SDK/SDK/platforms/android-23/optional/org.apache.http.legacy.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

View File

@ -7,8 +7,27 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="c8515555-ebbc-49d5-889b-0c59bd6c3b6d" name="默认更改列表" comment="comment"> <list default="true" id="c8515555-ebbc-49d5-889b-0c59bd6c3b6d" name="默认更改列表" comment="comment">
<change afterPath="$PROJECT_DIR$/.idea/libraries/Gradle__org_apache_http_legacy_android_23.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.bin" afterDir="false" />
<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$/.gradle/5.4.1/fileHashes/fileHashes.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.bin" 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$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/buildOutputCleanup/outputFiles.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/buildOutputCleanup/outputFiles.bin" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/caches/build_file_checksums.ser" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/caches/build_file_checksums.ser" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/caches/gradle_models.ser" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/caches/gradle_models.ser" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/app/app.iml" beforeDir="false" afterPath="$PROJECT_DIR$/app/app.iml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build.gradle" beforeDir="false" afterPath="$PROJECT_DIR$/app/build.gradle" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/generated/source/buildConfig/androidTest/debug/net/micode/notes/test/BuildConfig.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/generated/source/buildConfig/androidTest/debug/net/micode/notes/test/BuildConfig.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/bundle_manifest/debug/processDebugManifest/bundle-manifest/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/bundle_manifest/debug/processDebugManifest/bundle-manifest/AndroidManifest.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/instant_app_manifest/debug/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/instant_app_manifest/debug/AndroidManifest.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/manifest_merge_blame_file/debug/manifest-merger-blame-debug-report.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/merged_manifests/debug/AndroidManifest.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/merged_manifests/debugAndroidTest/AndroidManifest.xml" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/merged_manifests/debugAndroidTest/AndroidManifest.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/outputs/logs/manifest-merger-debug-report.txt" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/outputs/logs/manifest-merger-debug-report.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.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" />
@ -42,34 +61,10 @@
</component> </component>
<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="true">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="335">
<caret line="1115" column="9" lean-forward="true" selection-start-line="1115" selection-start-column="9" selection-end-line="1115" selection-end-column="9" />
<folding>
<element signature="e#10700#10767#0" expanded="true" />
<element signature="e#11187#11211#0" expanded="true" />
<element signature="e#12282#12318#0" expanded="true" />
<element signature="e#23149#23181#0" expanded="true" />
<element signature="e#24580#24623#0" expanded="true" />
<element signature="e#24827#24870#0" expanded="true" />
<element signature="e#25005#25176#0" expanded="true" />
<element signature="e#25175#25176#0" expanded="true" />
<element signature="e#25359#26888#0" expanded="true" />
<element signature="e#26887#26888#0" expanded="true" />
<element signature="e#29304#29828#0" expanded="true" />
<element signature="e#29827#29828#0" expanded="true" />
<element signature="e#32663#32692#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false"> <file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/res/values-zh-rCN/strings.xml"> <entry file="file://$PROJECT_DIR$/app/src/main/res/values-zh-rCN/strings.xml">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="149"> <state relative-caret-position="-1202">
<caret line="40" column="18" selection-start-line="40" selection-start-column="18" selection-end-line="40" selection-end-column="18" /> <caret line="40" column="18" selection-start-line="40" selection-start-column="18" selection-end-line="40" selection-end-column="18" />
</state> </state>
</provider> </provider>
@ -78,8 +73,20 @@
<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/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="-4254"> <state relative-caret-position="59">
<caret line="175" column="51" selection-start-line="175" selection-start-column="51" selection-end-line="175" selection-end-column="51" /> <caret line="81" column="24" selection-start-line="81" selection-start-column="24" selection-end-line="81" selection-end-column="24" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesProvider.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="183">
<caret line="101" column="17" lean-forward="true" selection-start-line="101" selection-start-column="17" selection-end-line="101" selection-end-column="17" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state> </state>
</provider> </provider>
</entry> </entry>
@ -87,8 +94,8 @@
<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/data/NotesDatabaseHelper.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-145"> <state relative-caret-position="20">
<caret line="69" column="25" lean-forward="true" selection-start-line="69" selection-start-column="25" selection-end-line="69" selection-end-column="25" /> <caret line="338" selection-start-line="338" selection-end-line="338" />
</state> </state>
</provider> </provider>
</entry> </entry>
@ -97,7 +104,7 @@
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Notes.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Notes.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="158"> <state relative-caret-position="158">
<caret line="23" column="28" selection-start-line="23" selection-start-column="28" selection-end-line="23" selection-end-column="28" /> <caret line="48" column="39" lean-forward="true" selection-start-line="48" selection-start-column="39" selection-end-line="48" selection-end-column="39" />
<folding> <folding>
<element signature="e#0#9163#0" expanded="true" /> <element signature="e#0#9163#0" expanded="true" />
<element signature="class#TextNote#0;class#Notes#0" /> <element signature="class#TextNote#0;class#Notes#0" />
@ -111,7 +118,7 @@
<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="280"> <state relative-caret-position="280">
<caret line="44" column="7" lean-forward="true" selection-start-line="44" selection-start-column="7" selection-end-line="44" selection-end-column="7" /> <caret line="44" column="7" selection-start-line="44" selection-start-column="7" selection-end-line="44" selection-end-column="7" />
<folding> <folding>
<element signature="method#getNewNoteId#0;class#Note#0" /> <element signature="method#getNewNoteId#0;class#Note#0" />
<element signature="method#Note#0;class#Note#0" /> <element signature="method#Note#0;class#Note#0" />
@ -157,6 +164,8 @@
<find>finish</find> <find>finish</find>
<find>//</find> <find>//</find>
<find>/*</find> <find>/*</find>
<find>getread</find>
<find>mHelper</find>
</findStrings> </findStrings>
<replaceStrings> <replaceStrings>
<replace>WRONGNOTEID</replace> <replace>WRONGNOTEID</replace>
@ -189,8 +198,6 @@
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Contact.java" /> <option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Contact.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/build.gradle" />
<option value="$PROJECT_DIR$/app/src/main/res/raw-zh-rCN/introduction" /> <option value="$PROJECT_DIR$/app/src/main/res/raw-zh-rCN/introduction" />
<option value="$PROJECT_DIR$/app/src/main/res/raw/introduction" /> <option value="$PROJECT_DIR$/app/src/main/res/raw/introduction" />
<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" />
@ -200,8 +207,10 @@
<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/WorkingNote.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/AlarmAlertActivity.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/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/src/main/java/net/micode/notes/ui/NoteEditActivity.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java" />
</list> </list>
</option> </option>
</component> </component>
@ -544,13 +553,13 @@
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> <property name="ASKED_SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="DeviceAndSnapshotComboBoxAction.selectedDevice" value="Pixel_2_API_28" /> <property name="DeviceAndSnapshotComboBoxAction.selectedDevice" value="Pixel_2_API_24_2" />
<property name="DeviceAndSnapshotComboBoxAction.selectionTime" value="2019-09-24T00:13:57.999Z" /> <property name="DeviceAndSnapshotComboBoxAction.selectionTime" value="2019-10-10T12:00:04.556Z" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" /> <property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="SONARLINT_PRECOMMIT_ANALYSIS" value="true" /> <property name="SONARLINT_PRECOMMIT_ANALYSIS" value="true" />
<property name="android.sdk.path" value="D:/Android_SDK/SDK" /> <property name="android.sdk.path" value="D:/Android_SDK/SDK" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" /> <property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="project.structure.last.edited" value="Project" /> <property name="project.structure.last.edited" value="Modules" />
<property name="project.structure.proportion" value="0.17" /> <property name="project.structure.proportion" value="0.17" />
<property name="project.structure.side.proportion" value="0.2" /> <property name="project.structure.side.proportion" value="0.2" />
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" /> <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
@ -635,7 +644,7 @@
</configuration> </configuration>
</component> </component>
<component name="StructureViewFactory"> <component name="StructureViewFactory">
<option name="ACTIVE_ACTIONS" value=",SHOW_LAMBDA" /> <option name="ACTIVE_ACTIONS" value=",SHOW_LAMBDA,SHOW_INTERFACES,SHOW_PROPERTIES" />
</component> </component>
<component name="SvnConfiguration"> <component name="SvnConfiguration">
<configuration /> <configuration />
@ -823,7 +832,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1570707769289</updated> <updated>1570707769289</updated>
</task> </task>
<option name="localTasksCounter" value="26" /> <task id="LOCAL-00026" summary="comment">
<created>1570708781459</created>
<option name="number" value="00026" />
<option name="presentableId" value="LOCAL-00026" />
<option name="project" value="LOCAL" />
<updated>1570708781459</updated>
</task>
<option name="localTasksCounter" value="27" />
<servers /> <servers />
</component> </component>
<component name="TodoView"> <component name="TodoView">
@ -858,7 +874,7 @@
<window_info anchor="bottom" id="Terminal" order="7" weight="0.3297587" /> <window_info anchor="bottom" id="Terminal" order="7" weight="0.3297587" />
<window_info anchor="bottom" id="Event Log" order="8" side_tool="true" weight="0.3294271" /> <window_info anchor="bottom" id="Event Log" order="8" side_tool="true" weight="0.3294271" />
<window_info anchor="bottom" id="Version Control" order="9" weight="0.3297587" /> <window_info anchor="bottom" id="Version Control" order="9" weight="0.3297587" />
<window_info active="true" anchor="bottom" id="Build" order="10" visible="true" weight="0.29088473" /> <window_info anchor="bottom" id="Build" order="10" visible="true" weight="0.29088473" />
<window_info anchor="bottom" id="Messages" order="11" weight="0.3297587" /> <window_info anchor="bottom" id="Messages" order="11" weight="0.3297587" />
<window_info anchor="right" id="Gradle" order="0" weight="0.3297587" /> <window_info anchor="right" id="Gradle" order="0" weight="0.3297587" />
<window_info anchor="right" id="Device File Explorer" order="1" side_tool="true" weight="0.3297587" /> <window_info anchor="right" id="Device File Explorer" order="1" side_tool="true" weight="0.3297587" />
@ -909,9 +925,6 @@
<option name="LAST_COMMIT_MESSAGE" value="comment" /> <option name="LAST_COMMIT_MESSAGE" value="comment" />
</component> </component>
<component name="editorHistoryManager"> <component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/res/drawable-hdpi/menu_delete.png">
<provider selected="true" editor-type-id="images" />
</entry>
<entry file="file://$PROJECT_DIR$/res/drawable-hdpi/notification.png"> <entry file="file://$PROJECT_DIR$/res/drawable-hdpi/notification.png">
<provider selected="true" editor-type-id="images" /> <provider selected="true" editor-type-id="images" />
</entry> </entry>
@ -966,13 +979,6 @@
<entry file="file://$PROJECT_DIR$/settings.gradle"> <entry file="file://$PROJECT_DIR$/settings.gradle">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor" />
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="10" column="27" lean-forward="true" selection-start-line="10" selection-start-column="27" selection-end-line="10" selection-end-column="27" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/raw-zh-rCN/introduction"> <entry file="file://$PROJECT_DIR$/app/src/main/res/raw-zh-rCN/introduction">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140"> <state relative-caret-position="140">
@ -1134,13 +1140,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesProvider.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="5160">
<caret line="287" column="1" selection-start-line="287" selection-start-column="1" selection-end-line="287" selection-end-column="1" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java"> <entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmReceiver.java">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200"> <state relative-caret-position="200">
@ -1179,7 +1178,7 @@
<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="280"> <state relative-caret-position="280">
<caret line="44" column="7" lean-forward="true" selection-start-line="44" selection-start-column="7" selection-end-line="44" selection-end-column="7" /> <caret line="44" column="7" selection-start-line="44" selection-start-column="7" selection-end-line="44" selection-end-column="7" />
<folding> <folding>
<element signature="method#getNewNoteId#0;class#Note#0" /> <element signature="method#getNewNoteId#0;class#Note#0" />
<element signature="method#Note#0;class#Note#0" /> <element signature="method#Note#0;class#Note#0" />
@ -1191,20 +1190,6 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-145">
<caret line="69" column="25" lean-forward="true" selection-start-line="69" selection-start-column="25" selection-end-line="69" selection-end-column="25" />
</state>
</provider>
</entry>
<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="-4254">
<caret line="175" column="51" selection-start-line="175" selection-start-column="51" selection-end-line="175" selection-end-column="51" />
</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" />
@ -1228,29 +1213,10 @@
</provider> </provider>
<provider editor-type-id="android-designer2" /> <provider editor-type-id="android-designer2" />
</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="149">
<caret line="40" column="18" selection-start-line="40" selection-start-column="18" selection-end-line="40" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Notes.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="158">
<caret line="23" column="28" selection-start-line="23" selection-start-column="28" selection-end-line="23" selection-end-column="28" />
<folding>
<element signature="e#0#9163#0" expanded="true" />
<element signature="class#TextNote#0;class#Notes#0" />
<element signature="class#CallNote#0;class#Notes#0" />
</folding>
</state>
</provider>
</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="335"> <state relative-caret-position="375">
<caret line="1115" column="9" lean-forward="true" selection-start-line="1115" selection-start-column="9" selection-end-line="1115" selection-end-column="9" /> <caret line="1117" column="5" lean-forward="true" selection-start-line="1117" selection-start-column="5" selection-end-line="1117" selection-end-column="5" />
<folding> <folding>
<element signature="e#10700#10767#0" expanded="true" /> <element signature="e#10700#10767#0" expanded="true" />
<element signature="e#11187#11211#0" expanded="true" /> <element signature="e#11187#11211#0" expanded="true" />
@ -1269,6 +1235,63 @@
</state> </state>
</provider> </provider>
</entry> </entry>
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="220">
<caret line="11" column="5" lean-forward="true" selection-start-line="11" selection-start-column="5" selection-end-line="11" selection-end-column="5" />
</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="-1202">
<caret line="40" column="18" selection-start-line="40" selection-start-column="18" selection-end-line="40" selection-end-column="18" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/Notes.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="158">
<caret line="48" column="39" lean-forward="true" selection-start-line="48" selection-start-column="39" selection-end-line="48" selection-end-column="39" />
<folding>
<element signature="e#0#9163#0" expanded="true" />
<element signature="class#TextNote#0;class#Notes#0" />
<element signature="class#CallNote#0;class#Notes#0" />
</folding>
</state>
</provider>
</entry>
<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="59">
<caret line="81" column="24" selection-start-line="81" selection-start-column="24" selection-end-line="81" selection-end-column="24" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="20">
<caret line="338" selection-start-line="338" selection-end-line="338" />
</state>
</provider>
</entry>
<entry file="file://D:/Android_SDK/SDK/sources/android-23/android/database/sqlite/SQLiteOpenHelper.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="166">
<caret line="184" column="26" selection-start-line="184" selection-start-column="26" selection-end-line="184" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesProvider.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="183">
<caret line="101" column="17" lean-forward="true" selection-start-line="101" selection-start-column="17" selection-end-line="101" selection-end-column="17" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</component> </component>
<component name="masterDetails"> <component name="masterDetails">
<states> <states>

View File

@ -87,8 +87,8 @@
<sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" /> <sourceFolder url="file://$MODULE_DIR$/src/test/shaders" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/build" /> <excludeFolder url="file://$MODULE_DIR$/build" />
</content> </content>
<orderEntry type="jdk" jdkName="Android API 28 Platform" jdkType="Android SDK" /> <orderEntry type="jdk" jdkName="Android API 23 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Gradle: org.apache.http.legacy-android-28" level="project" /> <orderEntry type="library" name="Gradle: org.apache.http.legacy-android-23" level="project" />
</component> </component>
</module> </module>

View File

@ -1,7 +1,7 @@
apply plugin: 'com.android.application' apply plugin: 'com.android.application'
android { android {
compileSdkVersion 28 compileSdkVersion 23
buildToolsVersion "29.0.2" buildToolsVersion "29.0.2"
useLibrary 'org.apache.http.legacy' useLibrary 'org.apache.http.legacy'

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

@ -36,6 +36,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
private static final int DB_VERSION = 4; private static final int DB_VERSION = 4;
//数据库表项
public interface TABLE { public interface TABLE {
public static final String NOTE = "note"; public static final String NOTE = "note";
@ -53,16 +54,16 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
NoteColumns.PARENT_ID + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.PARENT_ID + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.ALERTED_DATE + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.ALERTED_DATE + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.BG_COLOR_ID + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.BG_COLOR_ID + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +//创建时间
NoteColumns.HAS_ATTACHMENT + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.HAS_ATTACHMENT + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +//最近修改时间
NoteColumns.NOTES_COUNT + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.NOTES_COUNT + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.SNIPPET + " TEXT NOT NULL DEFAULT ''," + NoteColumns.SNIPPET + " TEXT NOT NULL DEFAULT ''," +
NoteColumns.TYPE + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.TYPE + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.WIDGET_ID + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.WIDGET_ID + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.WIDGET_TYPE + " INTEGER NOT NULL DEFAULT -1," + NoteColumns.WIDGET_TYPE + " INTEGER NOT NULL DEFAULT -1," +
NoteColumns.SYNC_ID + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.SYNC_ID + " INTEGER NOT NULL DEFAULT 0," +//同步id
NoteColumns.LOCAL_MODIFIED + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.LOCAL_MODIFIED + " INTEGER NOT NULL DEFAULT 0," +//判断是否本地修改
NoteColumns.ORIGIN_PARENT_ID + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.ORIGIN_PARENT_ID + " INTEGER NOT NULL DEFAULT 0," +
NoteColumns.GTASK_ID + " TEXT NOT NULL DEFAULT ''," + NoteColumns.GTASK_ID + " TEXT NOT NULL DEFAULT ''," +
NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" + NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" +
@ -72,9 +73,9 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
"CREATE TABLE " + TABLE.DATA + "(" + "CREATE TABLE " + TABLE.DATA + "(" +
DataColumns.ID + " INTEGER PRIMARY KEY," + DataColumns.ID + " INTEGER PRIMARY KEY," +
DataColumns.MIME_TYPE + " TEXT NOT NULL," + DataColumns.MIME_TYPE + " TEXT NOT NULL," +
DataColumns.NOTE_ID + " INTEGER NOT NULL DEFAULT 0," + DataColumns.NOTE_ID + " INTEGER NOT NULL DEFAULT 0," +//便签id
NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + NoteColumns.CREATED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +//创建时间
NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," + NoteColumns.MODIFIED_DATE + " INTEGER NOT NULL DEFAULT (strftime('%s','now') * 1000)," +//最近修改时间
DataColumns.CONTENT + " TEXT NOT NULL DEFAULT ''," + DataColumns.CONTENT + " TEXT NOT NULL DEFAULT ''," +
DataColumns.DATA1 + " INTEGER," + DataColumns.DATA1 + " INTEGER," +
DataColumns.DATA2 + " INTEGER," + DataColumns.DATA2 + " INTEGER," +
@ -101,6 +102,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
/** /**
* 当从文件夹中移除便签时减少便签数量 * 当从文件夹中移除便签时减少便签数量
* SQL语句对数据库进行操作
*/ */
private static final String NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER = private static final String NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER =
"CREATE TRIGGER decrease_folder_count_on_update " + "CREATE TRIGGER decrease_folder_count_on_update " +
@ -243,15 +245,25 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
db.execSQL("DROP TRIGGER IF EXISTS folder_delete_notes_on_delete"); db.execSQL("DROP TRIGGER IF EXISTS folder_delete_notes_on_delete");
db.execSQL("DROP TRIGGER IF EXISTS folder_move_notes_on_trash"); db.execSQL("DROP TRIGGER IF EXISTS folder_move_notes_on_trash");
//增加便签数量当向文件夹移入便签时
db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER); db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER);
//减少便签当移除文件夹中的便签时
db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER); db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER);
//减少便签数量当从文件夹中删除便签时
db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER); db.execSQL(NOTE_DECREASE_FOLDER_COUNT_ON_DELETE_TRIGGER);
//删除已经被删除的便签
db.execSQL(NOTE_DELETE_DATA_ON_DELETE_TRIGGER); db.execSQL(NOTE_DELETE_DATA_ON_DELETE_TRIGGER);
//增加便签数量当在文件夹中插入便签时
db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER); db.execSQL(NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER);
//删除文件夹中已经标记为删除的文件夹
db.execSQL(FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER); db.execSQL(FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER);
//将便签移动到垃圾文件夹中
db.execSQL(FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER); db.execSQL(FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER);
} }
/*
* 该方法实现了在数据库中创建系统文件夹的功能
* */
private void createSystemFolder(SQLiteDatabase db) { private void createSystemFolder(SQLiteDatabase db) {
ContentValues values = new ContentValues(); ContentValues values = new ContentValues();
@ -268,10 +280,11 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
values.clear(); values.clear();
values.put(NoteColumns.ID, Notes.ID_ROOT_FOLDER); values.put(NoteColumns.ID, Notes.ID_ROOT_FOLDER);
values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM); values.put(NoteColumns.TYPE, Notes.TYPE_SYSTEM);
//向数据库中插入便签表与内容
db.insert(TABLE.NOTE, null, values); db.insert(TABLE.NOTE, null, values);
/** /**
* temporary folder which is used for moving note * 用于移动便签的临时数据库
*/ */
values.clear(); values.clear();
values.put(NoteColumns.ID, Notes.ID_TEMPARAY_FOLDER); values.put(NoteColumns.ID, Notes.ID_TEMPARAY_FOLDER);
@ -292,9 +305,12 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
* @ db SQL数据库 * @ db SQL数据库
* */ * */
public void createDataTable(SQLiteDatabase db) { public void createDataTable(SQLiteDatabase db) {
//在数据库中创建数据表项
db.execSQL(CREATE_DATA_TABLE_SQL); db.execSQL(CREATE_DATA_TABLE_SQL);
//如果发生更改重建数据库
reCreateDataTableTriggers(db); reCreateDataTableTriggers(db);
db.execSQL(CREATE_DATA_NOTE_ID_INDEX_SQL); db.execSQL(CREATE_DATA_NOTE_ID_INDEX_SQL);
//如果数据表已经被创建向日志中加入调试信息
Log.d(TAG, "data table has been created"); Log.d(TAG, "data table has been created");
} }
@ -307,8 +323,10 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_update"); db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_update");
db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_delete"); db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_delete");
//更新数据库当便签内容改变时
db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER); db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER);
db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER); db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER);
//删除便签内容
db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER); db.execSQL(DATA_UPDATE_NOTE_CONTENT_ON_DELETE_TRIGGER);
} }

View File

@ -72,7 +72,7 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
/** /**
* * 该类实现了便签编辑功能的实现
*/ */
public class NoteEditActivity extends Activity implements OnClickListener, public class NoteEditActivity extends Activity implements OnClickListener,
NoteSettingChangedListener, OnTextViewChangeListener { NoteSettingChangedListener, OnTextViewChangeListener {