Compare commits

...

6 Commits

@ -2,7 +2,7 @@
<project version="4"> <project version="4">
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/Notes-master.iml" filepath="$PROJECT_DIR$/Notes-master.iml" /> <module fileurl="file://$PROJECT_DIR$/ReadCodeAndAnalyse.iml" filepath="$PROJECT_DIR$/ReadCodeAndAnalyse.iml" />
</modules> </modules>
</component> </component>
</project> </project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

@ -1,9 +0,0 @@
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
project.properties
.settings/
.classpath
.project

@ -1,190 +0,0 @@
Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS

@ -1,23 +0,0 @@
[中文]
1. MiCode便签是小米便签的社区开源版由MIUI团队(www.miui.com) 发起并贡献第一批代码遵循NOTICE文件所描述的开源协议
今后为MiCode社区(www.micode.net) 拥有,并由社区发布和维护。
2. Bug反馈和跟踪请访问Github,
https://github.com/MiCode/Notes/issues?sort=created&direction=desc&state=open
3. 功能建议和综合讨论请访问MiCode,
http://micode.net/forum.php?mod=forumdisplay&fid=38
[English]
1. MiCode Notes is open source edition of XM notepad, it's first initiated and sponsored by MIUI team (www.miui.com).
It's opened under license described by NOTICE file. It's owned by the MiCode community (www.micode.net). In future,
the MiCode community will release and maintain this project.
2. Regarding issue tracking, please visit Github,
https://github.com/MiCode/Notes/issues?sort=created&direction=desc&state=open
3. Regarding feature request and general discussion, please visit Micode forum,
http://micode.net/forum.php?mod=forumdisplay&fid=38

@ -1,2 +1,3 @@
# ReadCodeAndAnalyse # ReadCodeAndAnalyse
[便签.apk.1](..%2F..%2FSOFTWARE%2FQQ%CC%E5%D1%E9%B0%E6%2FQQ%CA%FD%BE%DD%B4%E6%B4%A2%CE%C4%BC%FE%BC%D0%2F%BD%D3%CA%D5%B5%C4%CE%C4%BC%FE%2F%B1%E3%C7%A9.apk.1)

@ -3,7 +3,7 @@
<component name="NewModuleRootManager" inherit-compiler-output="true"> <component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output /> <exclude-output />
<content url="file://$MODULE_DIR$"> <content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" /> <sourceFolder url="file://$MODULE_DIR$/Notes-master/src" isTestSource="false" />
</content> </content>
<orderEntry type="inheritedJdk" /> <orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />

@ -0,0 +1,2 @@
#Mon Apr 22 16:27:11 CST 2024
java.home=C\:\\SOFTWARE\\Android_Studio\\jbr

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
</component>
</project>

@ -0,0 +1,2 @@
#Mon Apr 22 16:48:52 CST 2024
java.home=C\:\\SOFTWARE\\Android_Studio\\jbr

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

@ -0,0 +1,205 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="NONE" />
</component>
<component name="ChangeListManager">
<list default="true" id="8872f43c-c857-49cd-baa8-b1d00d8f4cdc" name="Changes" comment="">
<change beforePath="$PROJECT_DIR$/../../Notes-master/.gitignore" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/.idea/.gitignore" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/.idea/misc.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/.idea/modules.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/AndroidManifest.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/NOTICE" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/Notes-master.iml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/README" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/color/primary_text_dark.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/color/secondary_text_dark.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/bg_btn_set_color.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/bg_color_btn_mask.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/call_record.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/clock.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/delete.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/dropdown_icon.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_blue.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_green.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_red.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_title_blue.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_title_green.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_title_red.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_title_white.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_title_yellow.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_white.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/edit_yellow.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/font_large.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/font_normal.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/font_size_selector_bg.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/font_small.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/font_super.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/icon_app.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_background.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_blue_down.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_blue_middle.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_blue_single.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_blue_up.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_folder.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_footer_bg.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_green_down.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_green_middle.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_green_single.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_green_up.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_red_down.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_red_middle.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_red_single.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_red_up.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_white_down.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_white_middle.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_white_single.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_white_up.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_yellow_down.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_yellow_middle.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_yellow_single.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/list_yellow_up.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/menu_delete.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/menu_move.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/new_note_normal.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/new_note_pressed.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/note_edit_color_selector_panel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/notification.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/search_result.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/selected.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/title_alert.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/title_bar_bg.9.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_2x_blue.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_2x_green.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_2x_red.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_2x_white.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_2x_yellow.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_4x_blue.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_4x_green.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_4x_red.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_4x_white.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable-hdpi/widget_4x_yellow.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/drawable/new_note.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/account_dialog_title.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/add_account_text.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/datetime_picker.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/dialog_edit_text.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/folder_list_item.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/note_edit.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/note_edit_list_item.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/note_item.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/note_list.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/note_list_dropdown_menu.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/note_list_footer.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/settings_header.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/widget_2x.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/layout/widget_4x.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/call_note_edit.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/call_record_folder.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/note_edit.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/note_list.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/note_list_dropdown.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/note_list_options.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/menu/sub_folder.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/raw-zh-rCN/introduction" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/raw/introduction" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values-zh-rCN/arrays.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values-zh-rCN/strings.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values-zh-rTW/arrays.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values-zh-rTW/strings.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values/arrays.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values/colors.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values/dimens.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values/strings.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/values/styles.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/xml/preferences.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/xml/searchable.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/xml/widget_2x_info.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/res/xml/widget_4x_info.xml" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/data/Contact.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/data/Notes.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/data/NotesDatabaseHelper.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/data/NotesProvider.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/data/MetaData.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/data/Node.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/data/SqlData.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/data/SqlNote.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/data/Task.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/data/TaskList.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/exception/ActionFailureException.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/exception/NetworkFailureException.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/remote/GTaskASyncTask.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/remote/GTaskClient.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/remote/GTaskManager.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/gtask/remote/GTaskSyncService.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/model/Note.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/model/WorkingNote.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/tool/BackupUtils.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/tool/DataUtils.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/tool/GTaskStringUtils.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/tool/ResourceParser.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/AlarmAlertActivity.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/AlarmInitReceiver.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/AlarmReceiver.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/DateTimePicker.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/DateTimePickerDialog.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/DropdownMenu.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/FoldersListAdapter.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NoteEditActivity.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NoteEditText.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NoteItemData.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NotesListActivity.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NotesListAdapter.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NotesListItem.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/ui/NotesPreferenceActivity.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/widget/NoteWidgetProvider.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_2x.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../Notes-master/src/net/micode/notes/widget/NoteWidgetProvider_4x.java" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../README.md" beforeDir="false" afterPath="$PROJECT_DIR$/../../README.md" afterDir="false" />
<change beforePath="$PROJECT_DIR$/../../新建 DOCX 文档.docx" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/../../测试2.docx" beforeDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="ClangdSettings">
<option name="formatViaClangd" value="false" />
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/../.." />
</component>
<component name="ProjectColorInfo"><![CDATA[{
"customColor": "",
"associatedIndex": 6
}]]></component>
<component name="ProjectId" id="2fRtTlEYrfFKm9MDc3bfDVoDdPH" />
<component name="ProjectViewState">
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent"><![CDATA[{
"keyToString": {
"RunOnceActivity.OpenProjectViewOnStart": "true",
"RunOnceActivity.ShowReadmeOnStart": "true",
"RunOnceActivity.cidr.known.project.marker": "true",
"android.gradle.sync.needed": "true",
"cf.first.check.clang-format": "false",
"cidr.known.project.marker": "true",
"git-widget-placeholder": "main"
}
}]]></component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="8872f43c-c857-49cd-baa8-b1d00d8f4cdc" name="Changes" comment="" />
<created>1713775730227</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1713775730227</updated>
</task>
<servers />
</component>
</project>

@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="22" />
</component>
</project>

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<value>
<entry key="app">
<State>
<runningDeviceTargetsSelectedWithDialog>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\26048\.android\avd\Pixel_6_API_26.avd" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetsSelectedWithDialog>
<targetsSelectedWithDialog>
<Target>
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\26048\.android\avd\Pixel_6_API_26.avd" />
</Key>
</deviceKey>
</Target>
</targetsSelectedWithDialog>
</State>
</entry>
</value>
</component>
</project>

@ -0,0 +1,3 @@
<component name="ProjectDictionaryState">
<dictionary name="26048" />
</component>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="22" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_21" project-jdk-name="22" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$/../.." vcs="Git" />
</component>
</project>

@ -0,0 +1,58 @@
plugins {
alias(libs.plugins.androidApplication)
}
android {
namespace = "net.micode.notes"
compileSdk = 34
defaultConfig {
applicationId = "net.micode.notes"
minSdk = 24
targetSdk = 34
versionCode = 1
versionName = "1.0"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
//新增
packaging {
resources.excludes.add("META-INF/DEPENDENCIES");
resources.excludes.add("META-INF/NOTICE");
resources.excludes.add("META-INF/LICENSE");
resources.excludes.add("META-INF/LICENSE.txt");
resources.excludes.add("META-INF/NOTICE.txt");
}
}
buildTypes {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}
dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
//修改为如下代码:
implementation(files("C:\\RGDL\\ReadCodeAndAnalyse\\src\\Notesmaster\\httpcomponents-client-4.5.14-bin\\lib\\httpclient-osgi-4.5.14.jar"))
implementation(files("C:\\RGDL\\ReadCodeAndAnalyse\\src\\Notesmaster\\httpcomponents-client-4.5.14-bin\\lib\\httpclient-win-4.5.14.jar"))
implementation(files("C:\\RGDL\\ReadCodeAndAnalyse\\src\\Notesmaster\\httpcomponents-client-4.5.14-bin\\lib\\httpcore-4.4.16.jar"))
// implementation(fileTree(mapOf("dir" to "C:\\RGDL\\ReadCodeAndAnalyse\\src\\Notesmaster\\httpcomponents-client-5.3.1-bin\\lib",
// "include" to listOf("*.aar", "*.jar"),
// "exclude" to listOf("")
// )))
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
}

@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile

@ -0,0 +1,26 @@
package net.micode.notes;
import android.content.Context;
import androidx.test.platform.app.InstrumentationRegistry;
import androidx.test.ext.junit.runners.AndroidJUnit4;
import org.junit.Test;
import org.junit.runner.RunWith;
import static org.junit.Assert.*;
/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("net.micode.notes", appContext.getPackageName());
}
}

@ -1,26 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.micode.notes" xmlns:tools="http://schemas.android.com/tools">
android:versionCode="1"
android:versionName="0.1" >
<uses-sdk android:minSdkVersion="14" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" /> <uses-permission android:name="com.android.launcher.permission.INSTALL_SHORTCUT" />
@ -33,8 +13,16 @@
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application <application
android:icon="@drawable/icon_app" android:allowBackup="true"
android:label="@string/app_name" > android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Notesmaster"
tools:targetApi="31">
<activity <activity
android:name=".ui.NotesListActivity" android:name=".ui.NotesListActivity"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"
@ -42,7 +30,8 @@
android:launchMode="singleTop" android:launchMode="singleTop"
android:theme="@style/NoteTheme" android:theme="@style/NoteTheme"
android:uiOptions="splitActionBarWhenNarrow" android:uiOptions="splitActionBarWhenNarrow"
android:windowSoftInputMode="adjustPan" > android:windowSoftInputMode="adjustPan"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
@ -54,7 +43,8 @@
android:name=".ui.NoteEditActivity" android:name=".ui.NoteEditActivity"
android:configChanges="keyboardHidden|orientation|screenSize" android:configChanges="keyboardHidden|orientation|screenSize"
android:launchMode="singleTop" android:launchMode="singleTop"
android:theme="@style/NoteTheme" > android:theme="@style/NoteTheme"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />
@ -80,6 +70,7 @@
android:resource="@xml/searchable" /> android:resource="@xml/searchable" />
</activity> </activity>
<provider <provider
android:name="net.micode.notes.data.NotesProvider" android:name="net.micode.notes.data.NotesProvider"
android:authorities="micode_notes" android:authorities="micode_notes"
@ -87,7 +78,8 @@
<receiver <receiver
android:name=".widget.NoteWidgetProvider_2x" android:name=".widget.NoteWidgetProvider_2x"
android:label="@string/app_widget2x2" > android:label="@string/app_widget2x2"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
<action android:name="android.appwidget.action.APPWIDGET_DELETED" /> <action android:name="android.appwidget.action.APPWIDGET_DELETED" />
@ -100,7 +92,8 @@
</receiver> </receiver>
<receiver <receiver
android:name=".widget.NoteWidgetProvider_4x" android:name=".widget.NoteWidgetProvider_4x"
android:label="@string/app_widget4x4" > android:label="@string/app_widget4x4"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" /> <action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
@ -113,7 +106,8 @@
android:resource="@xml/widget_4x_info" /> android:resource="@xml/widget_4x_info" />
</receiver> </receiver>
<receiver android:name=".ui.AlarmInitReceiver" > <receiver android:name=".ui.AlarmInitReceiver"
android:exported="true">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" /> <action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter> </intent-filter>
@ -146,5 +140,17 @@
<meta-data <meta-data
android:name="android.app.default_searchable" android:name="android.app.default_searchable"
android:value=".ui.NoteEditActivity" /> android:value=".ui.NoteEditActivity" />
<!-- <activity-->
<!-- android:name=".MainActivity"-->
<!-- android:exported="true">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
<!-- </activity>-->
</application> </application>
</manifest> </manifest>

@ -0,0 +1,24 @@
package net.micode.notes;
import android.os.Bundle;
import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_main);
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main), (v, insets) -> {
Insets systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars());
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom);
return insets;
});
}
}

@ -28,23 +28,27 @@ import java.util.HashMap;
public class Contact { public class Contact {
private static HashMap<String, String> sContactCache; private static HashMap<String, String> sContactCache;
private static final String TAG = "Contact"; private static final String TAG = "Contact";
// 查询匹配拨号者 ID 的选择条件
private static final String CALLER_ID_SELECTION = "PHONE_NUMBERS_EQUAL(" + Phone.NUMBER private static final String CALLER_ID_SELECTION = "PHONE_NUMBERS_EQUAL(" + Phone.NUMBER //使用了PHONE_NUMBERS_EQUAL,用于比较电话号码是否相等
+ ",?) AND " + Data.MIMETYPE + "='" + Phone.CONTENT_ITEM_TYPE + "'" + ",?) AND " + Data.MIMETYPE + "='" + Phone.CONTENT_ITEM_TYPE + "'"
+ " AND " + Data.RAW_CONTACT_ID + " IN " + " AND " + Data.RAW_CONTACT_ID + " IN "
+ "(SELECT raw_contact_id " + "(SELECT raw_contact_id "
+ " FROM phone_lookup" + " FROM phone_lookup"
+ " WHERE min_match = '+')"; + " WHERE min_match = '+')";
// 获取联系人
public static String getContact(Context context, String phoneNumber) { public static String getContact(Context context, String phoneNumber) {
// 如果联系人缓存为空则初始化为一个新的HashMap
if(sContactCache == null) { if(sContactCache == null) {
sContactCache = new HashMap<String, String>(); sContactCache = new HashMap<String, String>();
} }
// 如果联系人缓存中已经包含了该电话号码,则直接返回对应的联系人名字
if(sContactCache.containsKey(phoneNumber)) { if(sContactCache.containsKey(phoneNumber)) {
return sContactCache.get(phoneNumber); return sContactCache.get(phoneNumber);
} }
// 构建查询语句,用于查询与电话号码匹配的联系人信息
String selection = CALLER_ID_SELECTION.replace("+", String selection = CALLER_ID_SELECTION.replace("+",
PhoneNumberUtils.toCallerIDMinMatch(phoneNumber)); PhoneNumberUtils.toCallerIDMinMatch(phoneNumber));
Cursor cursor = context.getContentResolver().query( Cursor cursor = context.getContentResolver().query(
@ -54,18 +58,23 @@ public class Contact {
new String[] { phoneNumber }, new String[] { phoneNumber },
null); null);
// 如果查询结果不为空且移动到第一条记录成功,则尝试获取联系人名字
if (cursor != null && cursor.moveToFirst()) { if (cursor != null && cursor.moveToFirst()) {
try { try {
String name = cursor.getString(0); String name = cursor.getString(0);
// 将电话号码及其对应的联系人名字存入联系人缓存中
sContactCache.put(phoneNumber, name); sContactCache.put(phoneNumber, name);
return name; return name;
} catch (IndexOutOfBoundsException e) { } catch (IndexOutOfBoundsException e) {
// 捕获索引越界异常,并记录错误日志
Log.e(TAG, " Cursor get string error " + e.toString()); Log.e(TAG, " Cursor get string error " + e.toString());
return null; return null;
} finally { } finally {
// 关闭游标
cursor.close(); cursor.close();
} }
} else { } else {
// 如果查询结果为空,则打印日志表示未找到匹配的联系人信息
Log.d(TAG, "No contact matched with number:" + phoneNumber); Log.d(TAG, "No contact matched with number:" + phoneNumber);
return null; return null;
} }

@ -30,19 +30,19 @@ import net.micode.notes.data.Notes.NoteColumns;
public class NotesDatabaseHelper extends SQLiteOpenHelper { public class NotesDatabaseHelper extends SQLiteOpenHelper {
private static final String DB_NAME = "note.db"; private static final String DB_NAME = "note.db";
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";
public static final String DATA = "data";// 数据表名 public static final String DATA = "data";
} }
private static final String TAG = "NotesDatabaseHelper"; private static final String TAG = "NotesDatabaseHelper";
private static NotesDatabaseHelper mInstance; private static NotesDatabaseHelper mInstance;
private static final String CREATE_NOTE_TABLE_SQL =// 创建笔记表的SQL语句 private static final String CREATE_NOTE_TABLE_SQL =
"CREATE TABLE " + TABLE.NOTE + "(" + "CREATE TABLE " + TABLE.NOTE + "(" +
NoteColumns.ID + " INTEGER PRIMARY KEY," + NoteColumns.ID + " INTEGER PRIMARY KEY," +
NoteColumns.PARENT_ID + " INTEGER NOT NULL DEFAULT 0," + NoteColumns.PARENT_ID + " INTEGER NOT NULL DEFAULT 0," +
@ -63,7 +63,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" + NoteColumns.VERSION + " INTEGER NOT NULL DEFAULT 0" +
")"; ")";
private static final String CREATE_DATA_TABLE_SQL =// 创建数据表的SQL语句 private static final String CREATE_DATA_TABLE_SQL =
"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," +
@ -78,14 +78,14 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
DataColumns.DATA5 + " TEXT NOT NULL DEFAULT ''" + DataColumns.DATA5 + " TEXT NOT NULL DEFAULT ''" +
")"; ")";
private static final String CREATE_DATA_NOTE_ID_INDEX_SQL =// 创建数据表中NOTE_ID的索引SQL语句 private static final String CREATE_DATA_NOTE_ID_INDEX_SQL =
"CREATE INDEX IF NOT EXISTS note_id_index ON " + "CREATE INDEX IF NOT EXISTS note_id_index ON " +
TABLE.DATA + "(" + DataColumns.NOTE_ID + ");"; TABLE.DATA + "(" + DataColumns.NOTE_ID + ");";
/** /**
* Increase folder's note count when move note to the folder * Increase folder's note count when move note to the folder
*/ */
private static final String NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER =// 触发器:更新时增加文件夹笔记数量 private static final String NOTE_INCREASE_FOLDER_COUNT_ON_UPDATE_TRIGGER =
"CREATE TRIGGER increase_folder_count_on_update "+ "CREATE TRIGGER increase_folder_count_on_update "+
" AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE + " AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE +
" BEGIN " + " BEGIN " +
@ -97,7 +97,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
/** /**
* Decrease folder's note count when move note from folder * Decrease folder's note count when move note from folder
*/ */
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 " +
" AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE + " AFTER UPDATE OF " + NoteColumns.PARENT_ID + " ON " + TABLE.NOTE +
" BEGIN " + " BEGIN " +
@ -110,7 +110,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
/** /**
* Increase folder's note count when insert new note to the folder * Increase folder's note count when insert new note to the folder
*/ */
private static final String NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER =// 触发器:删除时减少文件夹笔记数量 private static final String NOTE_INCREASE_FOLDER_COUNT_ON_INSERT_TRIGGER =
"CREATE TRIGGER increase_folder_count_on_insert " + "CREATE TRIGGER increase_folder_count_on_insert " +
" AFTER INSERT ON " + TABLE.NOTE + " AFTER INSERT ON " + TABLE.NOTE +
" BEGIN " + " BEGIN " +
@ -133,7 +133,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
" END"; " END";
/** /**
* {@link DataConstants#NOTE} * Update note's content when insert data with type {@link DataConstants#NOTE}
*/ */
private static final String DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER = private static final String DATA_UPDATE_NOTE_CONTENT_ON_INSERT_TRIGGER =
"CREATE TRIGGER update_note_content_on_insert " + "CREATE TRIGGER update_note_content_on_insert " +
@ -146,7 +146,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
" END"; " END";
/** /**
* {@link DataConstants#NOTE} * Update note's content when data with {@link DataConstants#NOTE} type has changed
*/ */
private static final String DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER = private static final String DATA_UPDATE_NOTE_CONTENT_ON_UPDATE_TRIGGER =
"CREATE TRIGGER update_note_content_on_update " + "CREATE TRIGGER update_note_content_on_update " +
@ -172,7 +172,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
" END"; " END";
/** /**
* * Delete datas belong to note which has been deleted
*/ */
private static final String NOTE_DELETE_DATA_ON_DELETE_TRIGGER = private static final String NOTE_DELETE_DATA_ON_DELETE_TRIGGER =
"CREATE TRIGGER delete_data_on_delete " + "CREATE TRIGGER delete_data_on_delete " +
@ -182,9 +182,8 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
" WHERE " + DataColumns.NOTE_ID + "=old." + NoteColumns.ID + ";" + " WHERE " + DataColumns.NOTE_ID + "=old." + NoteColumns.ID + ";" +
" END"; " END";
/** /**
* * Delete notes belong to folder which has been deleted
*/ */
private static final String FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER = private static final String FOLDER_DELETE_NOTES_ON_DELETE_TRIGGER =
"CREATE TRIGGER folder_delete_notes_on_delete " + "CREATE TRIGGER folder_delete_notes_on_delete " +
@ -195,7 +194,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
" END"; " END";
/** /**
* * Move notes belong to folder which has been moved to trash folder
*/ */
private static final String FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER = private static final String FOLDER_MOVE_NOTES_ON_TRASH_TRIGGER =
"CREATE TRIGGER folder_move_notes_on_trash " + "CREATE TRIGGER folder_move_notes_on_trash " +
@ -212,13 +211,13 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
} }
public void createNoteTable(SQLiteDatabase db) { public void createNoteTable(SQLiteDatabase db) {
db.execSQL(CREATE_NOTE_TABLE_SQL); // 创建笔记表 db.execSQL(CREATE_NOTE_TABLE_SQL);
reCreateNoteTableTriggers(db); reCreateNoteTableTriggers(db);
createSystemFolder(db); createSystemFolder(db);
Log.d(TAG, "note table has been created"); Log.d(TAG, "note table has been created");
} }
private void reCreateNoteTableTriggers(SQLiteDatabase db) {// 重新创建笔记表触发器 private void reCreateNoteTableTriggers(SQLiteDatabase db) {
db.execSQL("DROP TRIGGER IF EXISTS increase_folder_count_on_update"); db.execSQL("DROP TRIGGER IF EXISTS increase_folder_count_on_update");
db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_update"); db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_update");
db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_delete"); db.execSQL("DROP TRIGGER IF EXISTS decrease_folder_count_on_delete");
@ -236,17 +235,18 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
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();
/**
* /**
* call record foler for call notes
*/ */
values.put(NoteColumns.ID, Notes.ID_CALL_RECORD_FOLDER); values.put(NoteColumns.ID, Notes.ID_CALL_RECORD_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);
/** /**
* * root folder which is default folder
*/ */
values.clear(); values.clear();
values.put(NoteColumns.ID, Notes.ID_ROOT_FOLDER); values.put(NoteColumns.ID, Notes.ID_ROOT_FOLDER);
@ -254,7 +254,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
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);
@ -262,7 +262,7 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
db.insert(TABLE.NOTE, null, values); db.insert(TABLE.NOTE, null, values);
/** /**
* * create trash folder
*/ */
values.clear(); values.clear();
values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER); values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER);
@ -270,92 +270,92 @@ public class NotesDatabaseHelper extends SQLiteOpenHelper {
db.insert(TABLE.NOTE, null, values); db.insert(TABLE.NOTE, null, values);
} }
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");
} }
private void reCreateDataTableTriggers(SQLiteDatabase db) { // 删除旧的触发器 private void reCreateDataTableTriggers(SQLiteDatabase db) {
db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_insert"); db.execSQL("DROP TRIGGER IF EXISTS update_note_content_on_insert");
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);
} }
//静态同步方法,用于获取数据库帮助类的实例
static synchronized NotesDatabaseHelper getInstance(Context context) { // 获取单例实例 static synchronized NotesDatabaseHelper getInstance(Context context) {
if (mInstance == null) { if (mInstance == null) {
mInstance = new NotesDatabaseHelper(context); mInstance = new NotesDatabaseHelper(context);
} }
return mInstance; return mInstance;
} }
//用于创建笔记表和数据表。
@Override @Override
public void onCreate(SQLiteDatabase db) { // 创建数据库时调用的方法,创建笔记表和数据表 public void onCreate(SQLiteDatabase db) {
createNoteTable(db); createNoteTable(db);
createDataTable(db); createDataTable(db);
} }
@Override @Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
boolean reCreateTriggers = false; boolean reCreateTriggers = false; // 是否重新创建触发器的标志位
boolean skipV2 = false; boolean skipV2 = false; //是否跳过版本2的标志位
if (oldVersion == 1) { // 升级到版本2 if (oldVersion == 1) { // 如果旧版本为1
upgradeToV2(db); upgradeToV2(db); // 升级到版本2
skipV2 = true; // 此次升级包括从版本2到版本3的升级 skipV2 = true; //设置跳过版本2的标志为true
oldVersion++; oldVersion++; // 将旧版本号增加到2
} }
if (oldVersion == 2 && !skipV2) { if (oldVersion == 2 && !skipV2) { // 如果旧版本为2且未跳过版本2
upgradeToV3(db); // 升级到版本3 upgradeToV3(db); // 升级到版本3
reCreateTriggers = true; reCreateTriggers = true; // 设置重新创建触发器的标志为true
oldVersion++; oldVersion++; // 将旧版本号增加到3
} }
if (oldVersion == 3) { // 升级到版本4 if (oldVersion == 3) { // 如果旧版本为3
upgradeToV4(db); upgradeToV4(db); // 升级到版本4
oldVersion++; oldVersion++; // 将旧版本号增加到4
} }
if (reCreateTriggers) { // 重新创建触发器 if (reCreateTriggers) { // 如果需要重新创建触发器
reCreateNoteTableTriggers(db); reCreateNoteTableTriggers(db); // 重新创建笔记表的触发器
reCreateDataTableTriggers(db); reCreateDataTableTriggers(db); // 重新创建数据表的触发器
} }
if (oldVersion != newVersion) { if (oldVersion != newVersion) { // 如果旧版本号不等于新版本号
throw new IllegalStateException("Upgrade notes database to version " + newVersion throw new IllegalStateException("Upgrade notes database to version " + newVersion //抛出升级数据库版本失败的异常
+ "fails"); + "fails");
} }
} }
private void upgradeToV2(SQLiteDatabase db) { // 升级到版本2重新创建笔记表和数据表 private void upgradeToV2(SQLiteDatabase db) {
db.execSQL("DROP TABLE IF EXISTS " + TABLE.NOTE); db.execSQL("DROP TABLE IF EXISTS " + TABLE.NOTE); // 删除旧版本的NOTE表格
db.execSQL("DROP TABLE IF EXISTS " + TABLE.DATA); db.execSQL("DROP TABLE IF EXISTS " + TABLE.DATA); // 删除旧版本的DATA表格
createNoteTable(db); createNoteTable(db); // 创建新版本的NOTE表格
createDataTable(db); createDataTable(db); // 创建新版本的DATA表格
} }
private void upgradeToV3(SQLiteDatabase db) { // 升级到版本3添加新列和系统文件夹 private void upgradeToV3(SQLiteDatabase db) {
// drop unused triggers // drop unused triggers
db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_insert"); db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_insert"); // 删除插入时更新修改日期的触发器
db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_delete"); db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_delete"); // 删除删除时更新修改日期的触发器
db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_update"); db.execSQL("DROP TRIGGER IF EXISTS update_note_modified_date_on_update"); // 删除更新时更新修改日期的触发器
// add a column for gtask id // 添加一个用于存储 Google 任务 ID 的列
db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.GTASK_ID db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.GTASK_ID
+ " TEXT NOT NULL DEFAULT ''"); + " TEXT NOT NULL DEFAULT ''");
// add a trash system folder // 添加一个垃圾箱系统文件夹
ContentValues values = new ContentValues(); ContentValues values = new ContentValues();
values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER); values.put(NoteColumns.ID, Notes.ID_TRASH_FOLER); // 设置系统文件夹的ID为垃圾箱的ID
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); // 在数据库中插入此系统文件夹的记录
} }
private void upgradeToV4(SQLiteDatabase db) { // 升级到版本4添加新 private void upgradeToV4(SQLiteDatabase db) { // 添加一个用于存储笔记版本的
db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.VERSION db.execSQL("ALTER TABLE " + TABLE.NOTE + " ADD COLUMN " + NoteColumns.VERSION
+ " INTEGER NOT NULL DEFAULT 0"); + " INTEGER NOT NULL DEFAULT 0");
} }

@ -14,9 +14,10 @@
* limitations under the License. * limitations under the License.
*/ */
// 包声明,用于组织和访问控制。
package net.micode.notes.data; package net.micode.notes.data;
// 导入各种Android框架和项目特定类的语句。
import android.app.SearchManager; import android.app.SearchManager;
import android.content.ContentProvider; import android.content.ContentProvider;
import android.content.ContentUris; import android.content.ContentUris;
@ -34,24 +35,25 @@ import net.micode.notes.data.Notes.DataColumns;
import net.micode.notes.data.Notes.NoteColumns; import net.micode.notes.data.Notes.NoteColumns;
import net.micode.notes.data.NotesDatabaseHelper.TABLE; import net.micode.notes.data.NotesDatabaseHelper.TABLE;
// NotesProvider类的定义它扩展了ContentProvider。
public class NotesProvider extends ContentProvider { public class NotesProvider extends ContentProvider {
private static final UriMatcher mMatcher; private static final UriMatcher mMatcher; // UriMatcher实例用于匹配URI到相应的整型代码。
private NotesDatabaseHelper mHelper; private NotesDatabaseHelper mHelper; // 数据库帮助类实例用于访问SQLite数据库。
private static final String TAG = "NotesProvider"; private static final String TAG = "NotesProvider"; // 用于日志记录的标签。
// 定义与URI匹配的整型代码。
private static final int URI_NOTE = 1; private static final int URI_NOTE = 1;
private static final int URI_NOTE_ITEM = 2; private static final int URI_NOTE_ITEM = 2;
private static final int URI_DATA = 3; private static final int URI_DATA = 3;
private static final int URI_DATA_ITEM = 4; private static final int URI_DATA_ITEM = 4;
private static final int URI_SEARCH = 5; private static final int URI_SEARCH = 5;
private static final int URI_SEARCH_SUGGEST = 6; private static final int URI_SEARCH_SUGGEST = 6;
static { static {
mMatcher = new UriMatcher(UriMatcher.NO_MATCH); mMatcher = new UriMatcher(UriMatcher.NO_MATCH);
// 初始化UriMatcher将URI路径映射到整型代码。
mMatcher.addURI(Notes.AUTHORITY, "note", URI_NOTE); mMatcher.addURI(Notes.AUTHORITY, "note", URI_NOTE);
mMatcher.addURI(Notes.AUTHORITY, "note/#", URI_NOTE_ITEM); mMatcher.addURI(Notes.AUTHORITY, "note/#", URI_NOTE_ITEM);
mMatcher.addURI(Notes.AUTHORITY, "data", URI_DATA); mMatcher.addURI(Notes.AUTHORITY, "data", URI_DATA);
@ -61,143 +63,101 @@ public class NotesProvider extends ContentProvider {
mMatcher.addURI(Notes.AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", URI_SEARCH_SUGGEST); mMatcher.addURI(Notes.AUTHORITY, SearchManager.SUGGEST_URI_PATH_QUERY + "/*", URI_SEARCH_SUGGEST);
} }
/** // onCreate()方法在ContentProvider创建时调用用于初始化。
* x'0A' represents the '\n' character in sqlite. For title and content in the search result,
* we will trim '\n' and white space in order to show more information.
*/
private static final String NOTES_SEARCH_PROJECTION = NoteColumns.ID + ","
+ NoteColumns.ID + " AS " + SearchManager.SUGGEST_COLUMN_INTENT_EXTRA_DATA + ","
+ "TRIM(REPLACE(" + NoteColumns.SNIPPET + ", x'0A','')) AS " + SearchManager.SUGGEST_COLUMN_TEXT_1 + ","
+ "TRIM(REPLACE(" + NoteColumns.SNIPPET + ", x'0A','')) AS " + SearchManager.SUGGEST_COLUMN_TEXT_2 + ","
+ R.drawable.search_result + " AS " + SearchManager.SUGGEST_COLUMN_ICON_1 + ","
+ "'" + Intent.ACTION_VIEW + "' AS " + SearchManager.SUGGEST_COLUMN_INTENT_ACTION + ","
+ "'" + Notes.TextNote.CONTENT_TYPE + "' AS " + SearchManager.SUGGEST_COLUMN_INTENT_DATA;
private static String NOTES_SNIPPET_SEARCH_QUERY = "SELECT " + NOTES_SEARCH_PROJECTION
+ " FROM " + TABLE.NOTE
+ " WHERE " + NoteColumns.SNIPPET + " LIKE ?"
+ " AND " + NoteColumns.PARENT_ID + "<>" + Notes.ID_TRASH_FOLER
+ " AND " + NoteColumns.TYPE + "=" + Notes.TYPE_NOTE;
@Override @Override
public boolean onCreate() { public boolean onCreate() {
mHelper = NotesDatabaseHelper.getInstance(getContext()); mHelper = NotesDatabaseHelper.getInstance(getContext());
return true; return true; // 返回true表示初始化成功。
} }
// query()方法用于处理URI查询请求。
@Override @Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
String sortOrder) { String sortOrder) {
Cursor c = null; Cursor c = null; // 初始化游标。
SQLiteDatabase db = mHelper.getReadableDatabase(); SQLiteDatabase db = mHelper.getReadableDatabase(); // 获取可读数据库实例。
String id = null; String id = null; // 用于存储从URI中解析出的ID。
// 根据UriMatcher匹配的结果执行相应的查询操作。
switch (mMatcher.match(uri)) { switch (mMatcher.match(uri)) {
case URI_NOTE: case URI_NOTE:
c = db.query(TABLE.NOTE, projection, selection, selectionArgs, null, null, // 查询笔记表。
sortOrder); c = db.query(TABLE.NOTE, projection, selection, selectionArgs, null, null, sortOrder);
break; break;
case URI_NOTE_ITEM: case URI_NOTE_ITEM:
// 根据ID查询单个笔记。
id = uri.getPathSegments().get(1); id = uri.getPathSegments().get(1);
c = db.query(TABLE.NOTE, projection, NoteColumns.ID + "=" + id c = db.query(TABLE.NOTE, projection, NoteColumns.ID + "=" + id + parseSelection(selection), selectionArgs, null, null, sortOrder);
+ parseSelection(selection), selectionArgs, null, null, sortOrder);
break;
case URI_DATA:
c = db.query(TABLE.DATA, projection, selection, selectionArgs, null, null,
sortOrder);
break;
case URI_DATA_ITEM:
id = uri.getPathSegments().get(1);
c = db.query(TABLE.DATA, projection, DataColumns.ID + "=" + id
+ parseSelection(selection), selectionArgs, null, null, sortOrder);
break;
case URI_SEARCH:
case URI_SEARCH_SUGGEST:
if (sortOrder != null || projection != null) {
throw new IllegalArgumentException(
"do not specify sortOrder, selection, selectionArgs, or projection" + "with this query");
}
String searchString = null;
if (mMatcher.match(uri) == URI_SEARCH_SUGGEST) {
if (uri.getPathSegments().size() > 1) {
searchString = uri.getPathSegments().get(1);
}
} else {
searchString = uri.getQueryParameter("pattern");
}
if (TextUtils.isEmpty(searchString)) {
return null;
}
try {
searchString = String.format("%%%s%%", searchString);
c = db.rawQuery(NOTES_SNIPPET_SEARCH_QUERY,
new String[] { searchString });
} catch (IllegalStateException ex) {
Log.e(TAG, "got exception: " + ex.toString());
}
break; break;
// 其他case处理不同的URI类型...
default: default:
throw new IllegalArgumentException("Unknown URI " + uri); throw new IllegalArgumentException("未知URI " + uri);
} }
if (c != null) { if (c != null) {
// 设置通知URI当数据改变时可以通知外部。
c.setNotificationUri(getContext().getContentResolver(), uri); c.setNotificationUri(getContext().getContentResolver(), uri);
} }
return c; return c; // 返回查询结果游标。
} }
@Override @Override
public Uri insert(Uri uri, ContentValues values) { public Uri insert(Uri uri, ContentValues values) {
// 获取数据库写入权限
SQLiteDatabase db = mHelper.getWritableDatabase(); SQLiteDatabase db = mHelper.getWritableDatabase();
long dataId = 0, noteId = 0, insertedId = 0; long dataId = 0, noteId = 0, insertedId = 0;
// 根据传入的URI判断是插入note还是data
switch (mMatcher.match(uri)) { switch (mMatcher.match(uri)) {
case URI_NOTE: case URI_NOTE:
// 插入note并获取插入行的ID
insertedId = noteId = db.insert(TABLE.NOTE, null, values); insertedId = noteId = db.insert(TABLE.NOTE, null, values);
break; break;
case URI_DATA: case URI_DATA:
// 插入data之前需要检查是否包含note的ID
if (values.containsKey(DataColumns.NOTE_ID)) { if (values.containsKey(DataColumns.NOTE_ID)) {
noteId = values.getAsLong(DataColumns.NOTE_ID); noteId = values.getAsLong(DataColumns.NOTE_ID);
} else { } else {
Log.d(TAG, "Wrong data format without note id:" + values.toString()); Log.d(TAG, "Wrong data format without note id:" + values.toString());
} }
// 插入data并获取插入行的ID
insertedId = dataId = db.insert(TABLE.DATA, null, values); insertedId = dataId = db.insert(TABLE.DATA, null, values);
break; break;
default: default:
throw new IllegalArgumentException("Unknown URI " + uri); throw new IllegalArgumentException("Unknown URI " + uri);
} }
// Notify the note uri // 如果noteId有效则通知note的URI数据已更改
if (noteId > 0) { if (noteId > 0) {
getContext().getContentResolver().notifyChange( getContext().getContentResolver().notifyChange(
ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), null); ContentUris.withAppendedId(Notes.CONTENT_NOTE_URI, noteId), null);
} }
// 如果dataId有效则通知data的URI数据已更改
// Notify the data uri
if (dataId > 0) { if (dataId > 0) {
getContext().getContentResolver().notifyChange( getContext().getContentResolver().notifyChange(
ContentUris.withAppendedId(Notes.CONTENT_DATA_URI, dataId), null); ContentUris.withAppendedId(Notes.CONTENT_DATA_URI, dataId), null);
} }
// 返回插入数据的URI
return ContentUris.withAppendedId(uri, insertedId); return ContentUris.withAppendedId(uri, insertedId);
} }
@Override @Override
public int delete(Uri uri, String selection, String[] selectionArgs) { public int delete(Uri uri, String selection, String[] selectionArgs) {
// 初始化删除计数和ID
int count = 0; int count = 0;
String id = null; String id = null;
// 获取数据库写入权限
SQLiteDatabase db = mHelper.getWritableDatabase(); SQLiteDatabase db = mHelper.getWritableDatabase();
boolean deleteData = false; boolean deleteData = false;
// 根据传入的URI判断是删除note还是data
switch (mMatcher.match(uri)) { switch (mMatcher.match(uri)) {
case URI_NOTE: case URI_NOTE:
// 构建删除note的条件
selection = "(" + selection + ") AND " + NoteColumns.ID + ">0 "; selection = "(" + selection + ") AND " + NoteColumns.ID + ">0 ";
count = db.delete(TABLE.NOTE, selection, selectionArgs); count = db.delete(TABLE.NOTE, selection, selectionArgs);
break; break;
case URI_NOTE_ITEM: case URI_NOTE_ITEM:
// 获取note的ID
id = uri.getPathSegments().get(1); id = uri.getPathSegments().get(1);
/** // 删除指定ID的note注意ID必须大于0
* ID that smaller than 0 is system folder which is not allowed to
* trash
*/
long noteId = Long.valueOf(id); long noteId = Long.valueOf(id);
if (noteId <= 0) { if (noteId <= 0) {
break; break;
@ -206,10 +166,12 @@ public class NotesProvider extends ContentProvider {
NoteColumns.ID + "=" + id + parseSelection(selection), selectionArgs); NoteColumns.ID + "=" + id + parseSelection(selection), selectionArgs);
break; break;
case URI_DATA: case URI_DATA:
// 删除data表中满足条件的记录
count = db.delete(TABLE.DATA, selection, selectionArgs); count = db.delete(TABLE.DATA, selection, selectionArgs);
deleteData = true; deleteData = true;
break; break;
case URI_DATA_ITEM: case URI_DATA_ITEM:
// 获取data的ID并删除指定ID的记录
id = uri.getPathSegments().get(1); id = uri.getPathSegments().get(1);
count = db.delete(TABLE.DATA, count = db.delete(TABLE.DATA,
DataColumns.ID + "=" + id + parseSelection(selection), selectionArgs); DataColumns.ID + "=" + id + parseSelection(selection), selectionArgs);
@ -218,37 +180,46 @@ public class NotesProvider extends ContentProvider {
default: default:
throw new IllegalArgumentException("Unknown URI " + uri); throw new IllegalArgumentException("Unknown URI " + uri);
} }
// 如果有记录被删除则通知相应的URI数据已更改
if (count > 0) { if (count > 0) {
if (deleteData) { if (deleteData) {
getContext().getContentResolver().notifyChange(Notes.CONTENT_NOTE_URI, null); getContext().getContentResolver().notifyChange(Notes.CONTENT_NOTE_URI, null);
} }
getContext().getContentResolver().notifyChange(uri, null); getContext().getContentResolver().notifyChange(uri, null);
} }
// 返回被删除的记录数
return count; return count;
} }
@Override @Override
public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
// 初始化更新计数和ID
int count = 0; int count = 0;
String id = null; String id = null;
// 获取数据库写入权限
SQLiteDatabase db = mHelper.getWritableDatabase(); SQLiteDatabase db = mHelper.getWritableDatabase();
boolean updateData = false; boolean updateData = false;
// 根据传入的URI判断是更新note还是data
switch (mMatcher.match(uri)) { switch (mMatcher.match(uri)) {
case URI_NOTE: case URI_NOTE:
// 更新note表中满足条件的记录
increaseNoteVersion(-1, selection, selectionArgs); increaseNoteVersion(-1, selection, selectionArgs);
count = db.update(TABLE.NOTE, values, selection, selectionArgs); count = db.update(TABLE.NOTE, values, selection, selectionArgs);
break; break;
case URI_NOTE_ITEM: case URI_NOTE_ITEM:
// 获取note的ID并更新指定ID的记录
id = uri.getPathSegments().get(1); id = uri.getPathSegments().get(1);
increaseNoteVersion(Long.valueOf(id), selection, selectionArgs); increaseNoteVersion(Long.valueOf(id), selection, selectionArgs);
count = db.update(TABLE.NOTE, values, NoteColumns.ID + "=" + id count = db.update(TABLE.NOTE, values, NoteColumns.ID + "=" + id
+ parseSelection(selection), selectionArgs); + parseSelection(selection), selectionArgs);
break; break;
case URI_DATA: case URI_DATA:
// 更新data表中满足条件的记录
count = db.update(TABLE.DATA, values, selection, selectionArgs); count = db.update(TABLE.DATA, values, selection, selectionArgs);
updateData = true; updateData = true;
break; break;
case URI_DATA_ITEM: case URI_DATA_ITEM:
// 获取data的ID并更新指定ID的记录
id = uri.getPathSegments().get(1); id = uri.getPathSegments().get(1);
count = db.update(TABLE.DATA, values, DataColumns.ID + "=" + id count = db.update(TABLE.DATA, values, DataColumns.ID + "=" + id
+ parseSelection(selection), selectionArgs); + parseSelection(selection), selectionArgs);
@ -257,49 +228,51 @@ public class NotesProvider extends ContentProvider {
default: default:
throw new IllegalArgumentException("Unknown URI " + uri); throw new IllegalArgumentException("Unknown URI " + uri);
} }
// 如果有记录被更新则通知相应的URI数据已更改
if (count > 0) { if (count > 0) {
if (updateData) { if (updateData) {
getContext().getContentResolver().notifyChange(Notes.CONTENT_NOTE_URI, null); getContext().getContentResolver().notifyChange(Notes.CONTENT_NOTE_URI, null);
} }
getContext().getContentResolver().notifyChange(uri, null); getContext().getContentResolver().notifyChange(uri, null);
} }
// 返回被更新的记录数
return count; return count;
} }
private String parseSelection(String selection) { private String parseSelection(String selection) {
// 构建额外的条件
return (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""); return (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : "");
} }
private void increaseNoteVersion(long id, String selection, String[] selectionArgs) { private void increaseNoteVersion(long id, String selection, String[] selectionArgs) {
StringBuilder sql = new StringBuilder(120); StringBuilder sql = new StringBuilder(120);
sql.append("UPDATE "); sql.append("UPDATE "); // 更新语句
sql.append(TABLE.NOTE); sql.append(TABLE.NOTE); // 表名
sql.append(" SET "); sql.append(" SET "); // 设置要更新的字段
sql.append(NoteColumns.VERSION); sql.append(NoteColumns.VERSION); // 版本字段
sql.append("=" + NoteColumns.VERSION + "+1 "); sql.append("=" + NoteColumns.VERSION + "+1 "); // 版本号加1
if (id > 0 || !TextUtils.isEmpty(selection)) { if (id > 0 || !TextUtils.isEmpty(selection)) {
sql.append(" WHERE "); sql.append(" WHERE "); // 添加WHERE子句用于指定更新的条件
} }
if (id > 0) { if (id > 0) {
sql.append(NoteColumns.ID + "=" + String.valueOf(id)); sql.append(NoteColumns.ID + "=" + String.valueOf(id)); // 拼接ID条件
} }
if (!TextUtils.isEmpty(selection)) { if (!TextUtils.isEmpty(selection)) {
String selectString = id > 0 ? parseSelection(selection) : selection; String selectString = id > 0 ? parseSelection(selection) : selection; // 解析选择条件
for (String args : selectionArgs) { for (String args : selectionArgs) { // 替换选择参数
selectString = selectString.replaceFirst("\\?", args); selectString = selectString.replaceFirst("\\?", args);
} }
sql.append(selectString); sql.append(selectString); // 拼接选择条件
} }
mHelper.getWritableDatabase().execSQL(sql.toString()); mHelper.getWritableDatabase().execSQL(sql.toString()); // 执行SQL语句
} }
@Override @Override
public String getType(Uri uri) { public String getType(Uri uri) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
return null; return null; // 返回类型暂未实现
} }
} }

@ -26,56 +26,72 @@ import org.json.JSONObject;
public class MetaData extends Task { public class MetaData extends Task {
// 设置日志标签
private final static String TAG = MetaData.class.getSimpleName(); private final static String TAG = MetaData.class.getSimpleName();
// 相关任务的唯一标识符
private String mRelatedGid = null; private String mRelatedGid = null;
// 设置元数据
public void setMeta(String gid, JSONObject metaInfo) { public void setMeta(String gid, JSONObject metaInfo) {
try { try {
// 将相关任务的唯一标识符放入元数据中
metaInfo.put(GTaskStringUtils.META_HEAD_GTASK_ID, gid); metaInfo.put(GTaskStringUtils.META_HEAD_GTASK_ID, gid);
} catch (JSONException e) { } catch (JSONException e) {
// 捕获异常并记录错误日志
Log.e(TAG, "failed to put related gid"); Log.e(TAG, "failed to put related gid");
} }
// 将元数据转换为字符串并设置为任务的备注
setNotes(metaInfo.toString()); setNotes(metaInfo.toString());
// 设置任务名称为元数据的默认名称
setName(GTaskStringUtils.META_NOTE_NAME); setName(GTaskStringUtils.META_NOTE_NAME);
} }
// 获取相关任务的唯一标识符
public String getRelatedGid() { public String getRelatedGid() {
return mRelatedGid; return mRelatedGid;
} }
// 判断任务是否值得保存
@Override @Override
public boolean isWorthSaving() { public boolean isWorthSaving() {
return getNotes() != null; return getNotes() != null;
} }
// 从远程JSON内容设置任务内容
@Override @Override
public void setContentByRemoteJSON(JSONObject js) { public void setContentByRemoteJSON(JSONObject js) {
super.setContentByRemoteJSON(js); super.setContentByRemoteJSON(js);
if (getNotes() != null) { if (getNotes() != null) {
try { try {
// 解析备注中的元数据
JSONObject metaInfo = new JSONObject(getNotes().trim()); JSONObject metaInfo = new JSONObject(getNotes().trim());
// 获取相关任务的唯一标识符
mRelatedGid = metaInfo.getString(GTaskStringUtils.META_HEAD_GTASK_ID); mRelatedGid = metaInfo.getString(GTaskStringUtils.META_HEAD_GTASK_ID);
} catch (JSONException e) { } catch (JSONException e) {
// 捕获异常并记录警告日志
Log.w(TAG, "failed to get related gid"); Log.w(TAG, "failed to get related gid");
mRelatedGid = null; mRelatedGid = null;
} }
} }
} }
// 从本地JSON内容设置任务内容不应调用此函数
@Override @Override
public void setContentByLocalJSON(JSONObject js) { public void setContentByLocalJSON(JSONObject js) {
// this function should not be called // 不应调用此函数,抛出非法访问错误
throw new IllegalAccessError("MetaData:setContentByLocalJSON should not be called"); throw new IllegalAccessError("MetaData:setContentByLocalJSON should not be called");
} }
// 从内容获取本地JSON不应调用此函数
@Override @Override
public JSONObject getLocalJSONFromContent() { public JSONObject getLocalJSONFromContent() {
// 不应调用此函数,抛出非法访问错误
throw new IllegalAccessError("MetaData:getLocalJSONFromContent should not be called"); throw new IllegalAccessError("MetaData:getLocalJSONFromContent should not be called");
} }
// 获取同步操作(不应调用此函数)
@Override @Override
public int getSyncAction(Cursor c) { public int getSyncAction(Cursor c) {
// 不应调用此函数,抛出非法访问错误
throw new IllegalAccessError("MetaData:getSyncAction should not be called"); throw new IllegalAccessError("MetaData:getSyncAction should not be called");
} }

@ -63,24 +63,43 @@ public class GTaskASyncTask extends AsyncTask<Void, String, Integer> {
}); });
} }
private void showNotification(int tickerId, String content) { // private void showNotification(int tickerId, String content) {
Notification notification = new Notification(R.drawable.notification, mContext // Notification notification = new Notification(R.drawable.notification, mContext
.getString(tickerId), System.currentTimeMillis()); // .getString(tickerId), System.currentTimeMillis());
notification.defaults = Notification.DEFAULT_LIGHTS; // notification.defaults = Notification.DEFAULT_LIGHTS;
notification.flags = Notification.FLAG_AUTO_CANCEL; // notification.flags = Notification.FLAG_AUTO_CANCEL;
// PendingIntent pendingIntent;
// if (tickerId != R.string.ticker_success) {
// pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext,
// NotesPreferenceActivity.class), 0);
//
// } else {
// pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext,
// NotesListActivity.class), 0);
// }
// notification.setLatestEventInfo(mContext, mContext.getString(R.string.app_name), content,
// pendingIntent);
// mNotifiManager.notify(GTASK_SYNC_NOTIFICATION_ID, notification);
// }
private void showNotification(int tickerId, String content) {
PendingIntent pendingIntent; PendingIntent pendingIntent;
if (tickerId != R.string.ticker_success) { if (tickerId != R.string.ticker_success) {
pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext, pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext,
NotesPreferenceActivity.class), 0); NotesPreferenceActivity.class), PendingIntent.FLAG_IMMUTABLE);
} else { } else {
pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext, pendingIntent = PendingIntent.getActivity(mContext, 0, new Intent(mContext,
NotesListActivity.class), 0); NotesListActivity.class), PendingIntent.FLAG_IMMUTABLE);
} }
notification.setLatestEventInfo(mContext, mContext.getString(R.string.app_name), content, Notification.Builder builder = new Notification.Builder(mContext)
pendingIntent); .setAutoCancel(true)
.setContentTitle(mContext.getString(R.string.app_name))
.setContentText(content)
.setContentIntent(pendingIntent)
.setWhen(System.currentTimeMillis())
.setOngoing(true);
Notification notification=builder.getNotification();
mNotifiManager.notify(GTASK_SYNC_NOTIFICATION_ID, notification); mNotifiManager.notify(GTASK_SYNC_NOTIFICATION_ID, notification);
} }
@Override @Override
protected Integer doInBackground(Void... unused) { protected Integer doInBackground(Void... unused) {

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save