添加注释

b_branch
ynmlzdwsp 1 year ago
parent 795c5433b3
commit dd6bdb875e

@ -18,9 +18,9 @@ java:S1319S"`The type of "ids" should be an interface such as "Set" rather than
 
java:S1319È"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".(ÛëÈðýÿÿÿÿ java:S1319È"mThe return type of this method should be an interface such as "Set" rather than the implementation "HashSet".(ÛëÈðýÿÿÿÿ
S S
java:S2589>"8Remove this expression which always evaluates to "false"(ÎŽŽéûÿÿÿÿ
S
java:S2589e"8Remove this expression which always evaluates to "false"(ÎŽŽéûÿÿÿÿ java:S2589e"8Remove this expression which always evaluates to "false"(ÎŽŽéûÿÿÿÿ
S
java:S2589>"8Remove this expression which always evaluates to "false"(ÎŽŽéûÿÿÿÿ
U U
java:S1118&":Add a private constructor to hide the implicit public one.(³¡¸<C2A1>ÿÿÿÿÿ java:S1118&":Add a private constructor to hide the implicit public one.(³¡¸<C2A1>ÿÿÿÿÿ
T T

@ -7,5 +7,3 @@ C
java:S1604v"(Make this anonymous inner class a lambda(×ÉÑ‘úÿÿÿÿ java:S1604v"(Make this anonymous inner class a lambda(×ÉÑ‘úÿÿÿÿ
? ?
java:S1604"(Make this anonymous inner class a lambda(À¸èž java:S1604"(Make this anonymous inner class a lambda(À¸èž
V
java:S3398ß"?Move this method into the anonymous class declared at line 118.( šåš

@ -1,11 +1,11 @@
F F
java:S1066Á"/Merge this if statement with the enclosing one.(â<>®¾ java:S1066Ä"/Merge this if statement with the enclosing one.(â<>®¾
3 3
java:S2386A"Make this member "protected".(”µåÓ java:S2386A"Make this member "protected".(”µåÓ
8 8
java:S2386K"Make this member "protected".(Ñ㳎ýÿÿÿÿ java:S2386K"Make this member "protected".(Ñ㳎ýÿÿÿÿ
X X
java:S1126Ü"AReplace this if-then-else statement by a single return statement.(¶ø ˜ java:S1126ß"AReplace this if-then-else statement by a single return statement.(¶ø ˜
? ?
java:S1125ª"(Remove the unnecessary boolean literals.(ÍÛì• java:S1125­"(Remove the unnecessary boolean literals.(ÍÛì•

@ -7,9 +7,5 @@ java:S3776
\ \
java:S2147°"ECombine this catch with the one at line 301, which has the same body.(ß<>È´ java:S2147°"ECombine this catch with the one at line 301, which has the same body.(ß<>È´
\ \
java:S2147Ð"ECombine this catch with the one at line 334, which has the same body.(ï­£Ä java:S2147Ñ"ECombine this catch with the one at line 335, which has the same body.(ï­£Ä
] java:S899Ë"BDo something with the "boolean" value returned by "createNewFile".(Ð<>Íùÿÿÿÿ ] java:S899Ì"BDo something with the "boolean" value returned by "createNewFile".(Ð<>Íùÿÿÿÿ
?
java:S3398»"#Move this method into "TextExport".(¨ä¿ÿýÿÿÿÿ
9
java:S3398H"#Move this method into "TextExport".(…´<C2B4>

@ -12,11 +12,11 @@ java:S2293b"YReplace the type specification in this constructor call with the d
t t
java:S2293c"YReplace the type specification in this constructor call with the diamond operator ("<>").(ž’»Ðýÿÿÿÿ java:S2293c"YReplace the type specification in this constructor call with the diamond operator ("<>").(ž’»Ðýÿÿÿÿ
] ]
java:S1192©"FDefine a constant instead of duplicating this literal " DESC" 3 times.(©ÍÔ± java:S1192­"FDefine a constant instead of duplicating this literal " DESC" 3 times.(©ÍÔ±
K K
java:S1066ˆ"/Merge this if statement with the enclosing one.(¾¶†–þÿÿÿÿ java:S1066ˆ"/Merge this if statement with the enclosing one.(¾¶†–þÿÿÿÿ
K K
java:S1066Õ"/Merge this if statement with the enclosing one.(˼֓ùÿÿÿÿ java:S1066Ù"/Merge this if statement with the enclosing one.(˼֓ùÿÿÿÿ
i i
java:S3776«"RRefactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed.(«Ã¾á java:S3776«"RRefactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed.(«Ã¾á
I I
@ -24,20 +24,20 @@ java:S1905
C C
java:S1905ç"-Remove this unnecessary cast to "JSONObject".(Ø›¶ java:S1905ç"-Remove this unnecessary cast to "JSONObject".(Ø›¶
i i
java:S3776ú"RRefactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed.(ðúæŠ java:S3776þ"RRefactor this method to reduce its Cognitive Complexity from 28 to the 15 allowed.(ðúæŠ
n n
java:S3776â"RRefactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed.(…Ë°±ýÿÿÿÿ java:S3776æ"RRefactor this method to reduce its Cognitive Complexity from 41 to the 15 allowed.(…Ë°±ýÿÿÿÿ
n n
java:S3776<EFBFBD>"RRefactor this method to reduce its Cognitive Complexity from 34 to the 15 allowed.(ÿ»É¸ûÿÿÿÿ java:S3776"RRefactor this method to reduce its Cognitive Complexity from 34 to the 15 allowed.(ÿ»É¸ûÿÿÿÿ
5 5
java:S2129â"Remove this "Long" constructor(Ï­¨Ã java:S2129æ"Remove this "Long" constructor(Ï­¨Ã
C C
java:S1874â",Remove this use of "Long"; it is deprecated.(Ï­¨Ã java:S1874æ",Remove this use of "Long"; it is deprecated.(Ï­¨Ã
n n
java:S3776î"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ƶؠüÿÿÿÿ java:S3776ò"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ƶؠüÿÿÿÿ
G G
java:S1172î"+Remove this unused method parameter "node".(ƶؠüÿÿÿÿ java:S1172ò"+Remove this unused method parameter "node".(ƶؠüÿÿÿÿ
C C
java:S1905ƒ"'Remove this unnecessary cast to "Node".(±¼ÇÒûÿÿÿÿ java:S1905"'Remove this unnecessary cast to "Node".(±¼ÇÒûÿÿÿÿ
> >
java:S1905©"'Remove this unnecessary cast to "Node".(íé¥Ç java:S1905­"'Remove this unnecessary cast to "Node".(íé¥Ç

@ -1,107 +1,95 @@
p w
java:S2293 "YReplace the type specification in this constructor call with the diamond operator ("<>").(艥ð java:S2293Ð"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥ð8êÿŒ†¬1
> E
java:S1604Š"(Make this anonymous inner class a lambda(—̺V java:S1604"(Make this anonymous inner class a lambda(—̺V8þµó€¬1
?
java:S1604æ"(Make this anonymous inner class a lambda(ά¯”
?
java:S1604Ý"(Make this anonymous inner class a lambda(¿Ü´ã
D
java:S1604÷"(Make this anonymous inner class a lambda(ˆÐï<C390>øÿÿÿÿ
?
java:S1604ÿ"(Make this anonymous inner class a lambda(øÄì‡
?
java:S1604è"(Make this anonymous inner class a lambda(Û±¼ 
?
java:S1604"(Make this anonymous inner class a lambda(ά¯”
g
java:S1301Ï"KReplace this "switch" statement by "if" statements to increase readability.(ד¾ñùÿÿÿÿ
7
java:S1116`"Remove this empty statement.(ôŸŽìúÿÿÿÿ
a
java:S1124ˆ"EReorder the modifiers to comply with the Java Language Specification.(¹úæµûÿÿÿÿ
[
java:S1124"EReorder the modifiers to comply with the Java Language Specification.(ìѾk
n
java:S3776¡"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(áé–Þÿÿÿÿÿ
2
java:S3626²"Remove this redundant jump.(ûÁÝ…
2
java:S3626"Remove this redundant jump.(ûÁÝ…
2
java:S3626Ê"Remove this redundant jump.(ûÁÝ…
P
java:S1874¢"9Remove this use of "PreferenceManager"; it is deprecated.(­©Ð
Z
java:S1874¢"CRemove this use of "getDefaultSharedPreferences"; it is deprecated.(­©Ð
N
java:S1135¼"2Complete the task associated to this TODO comment.(ÕÌ<C395>®þÿÿÿÿ
F F
java:S2093¦"*Change this "try" to a try-with-resources.(¡»¢üùÿÿÿÿ java:S1604ø"(Make this anonymous inner class a lambda(ά¯”8¶—†<E28094>¬1
o F
java:S1450ð"XRemove the "mMoveMenu" field and declare it as a local variable in the relevant methods.(ž¢—ò java:S1604"(Make this anonymous inner class a lambda(¿Ü´ã8ìÿŒ†¬1
j K
java:S1450ï"SRemove the "menu" field and declare it as a local variable in the relevant methods.(î·öÁ java:S1604¯"(Make this anonymous inner class a lambda(ˆÐï<C390>øÿÿÿÿ8íÿŒ†¬1
F
java:S1604·"(Make this anonymous inner class a lambda(øÄì‡8íÿŒ†¬1
F
java:S1604¦"(Make this anonymous inner class a lambda(Û±¼ 8íÿŒ†¬1
F
java:S1604É"(Make this anonymous inner class a lambda(ά¯”8íÿŒ†¬1
n n
java:S3252ì"RUse static access with "android.widget.AbsListView" for "MultiChoiceModeListener".(¦Ûî„úÿÿÿÿ java:S1301ÿ"KReplace this "switch" statement by "if" statements to increase readability.(ד¾ñùÿÿÿÿ8íÿŒ†¬1
N h
java:S1135§"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ java:S1124"EReorder the modifiers to comply with the Java Language Specification.(¹úæµûÿÿÿÿ8²·ó€¬1
N b
java:S1135¬"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ java:S1124Š"EReorder the modifiers to comply with the Java Language Specification.(ìѾk8²·ó€¬1
F java:S106·"+Replace this use of System.out by a logger.(×â…Ðþÿÿÿÿ u
R java:S125¹"<This block of commented-out lines of code should be removed.(Õ͉ß java:S3776¦"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(áé–Þÿÿÿÿÿ8´·ó€¬1
Q java:S125À"<This block of commented-out lines of code should be removed.(÷Í® 9
W java:S125Â"<This block of commented-out lines of code should be removed.(Ðýÿÿÿÿ java:S3626·"Remove this redundant jump.(ûÁÝ…8´·ó€¬1
9
java:S3626»"Remove this redundant jump.(ûÁÝ…8´·ó€¬1
9
java:S3626Ï"Remove this redundant jump.(ûÁÝ…8´·ó€¬1
W
java:S1874§"9Remove this use of "PreferenceManager"; it is deprecated.(­©Ð8µ·ó€¬1
a
java:S1874§"CRemove this use of "getDefaultSharedPreferences"; it is deprecated.(­©Ð8µ·ó€¬1
U U
java:S1874ÿ"9Remove this use of "getDefaultDisplay"; it is deprecated.(ĸ¬Ìýÿÿÿÿ java:S1135Á"2Complete the task associated to this TODO comment.(ÕÌ<C395>®þÿÿÿÿ8··ó€¬1
M M
java:S1874"1Remove this use of "getHeight"; it is deprecated.(·¡ªÃýÿÿÿÿ java:S2093«"*Change this "try" to a try-with-resources.(¡»¢üùÿÿÿÿ8··ó€¬1
8 v
java:S1116"Remove this empty statement.(ôŸŽìúÿÿÿÿ java:S1450ø"XRemove the "mMoveMenu" field and declare it as a local variable in the relevant methods.(ž¢—ò8¼·ó€¬1
i q
java:S3776õ"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ãìîí java:S1450÷"SRemove the "menu" field and declare it as a local variable in the relevant methods.(î·öÁ8¼·ó€¬1
C u
java:S1874ö".Remove this use of "<init>"; it is deprecated.(ýî? java:S3252ô"RUse static access with "android.widget.AbsListView" for "MultiChoiceModeListener".(¦Ûî„úÿÿÿÿ8¼·ó€¬1
? java:S108ü")Either remove or fill this block of code.(žûÊ¥ U
a java:S1135µ"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8À·ó€¬1
java:S1874Œ"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(§Í¿Â U
K java:S1135º"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8À·ó€¬1
java:S1874"/Remove this use of "execute"; it is deprecated.( å«<C3A5>ûÿÿÿÿ M java:S106Æ"+Replace this use of System.out by a logger.(×â…Ðþÿÿÿÿ8Á·ó€¬1
S Y java:S125È"<This block of commented-out lines of code should be removed.(Õ͉ß8Á·ó€¬1
java:S1874Û"7Remove this use of "toggleSoftInput"; it is deprecated.(© …áúÿÿÿÿ X java:S125Ï"<This block of commented-out lines of code should be removed.(÷Í®8Á·ó€¬1
O ^ java:S125Ñ"<This block of commented-out lines of code should be removed.(Ðýÿÿÿÿ8Á·ó€¬1
java:S1874Û"3Remove this use of "SHOW_FORCED"; it is deprecated.(© …áúÿÿÿÿ \
h java:S1874œ"9Remove this use of "getDefaultDisplay"; it is deprecated.(ĸ¬Ìýÿÿÿÿ8Å·ó€¬1
java:S3776ä"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(ÅôÉ# T
N java:S1874<18>"1Remove this use of "getHeight"; it is deprecated.(·¡ªÃýÿÿÿÿ8ߨ”<C2A8>¬1
java:S1135¦"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ p
^ java:S3776¥"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ãìîí8®„Øž®1
java:S1126«"BReplace this if-then-else statement by a single method invocation.(玒¦ýÿÿÿÿ
N
java:S1135³"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ
f
java:S1874º"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(œƒƒ©ùÿÿÿÿ
A java:S106¼"+Replace this use of System.out by a logger.(›ÚΊ
F java:S106Í"+Replace this use of System.out by a logger.(™‘‹£þÿÿÿÿ
Q
java:S1874Î"5Remove this use of "onBackPressed"; it is deprecated.(<28>Ñàÿÿÿÿÿ
J J
java:S1874ß".Remove this use of "<init>"; it is deprecated.(ЧðÛýÿÿÿÿ java:S1874¦".Remove this use of "<init>"; it is deprecated.(ýî?8¯„Øž®1
f F java:S108¬")Either remove or fill this block of code.(žûÊ¥8°„Øž®1
java:S1874ç"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(÷ችûÿÿÿÿ
K
java:S1874"/Remove this use of "execute"; it is deprecated.( å«<C3A5>ûÿÿÿÿ
h h
java:S3776"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.(ôŒùb java:S1874¼"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(§Í¿Â8±„Øž®1
d java:S100Ý"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.( •ÒŽ R
B java:S1874Ç"/Remove this use of "execute"; it is deprecated.( å«<C3A5>ûÿÿÿÿ8²„Øž®1
java:S1172Ý"+Remove this unused method parameter "view".( •ÒŽ Z
K java:S1874Ž"7Remove this use of "toggleSoftInput"; it is deprecated.(© …áúÿÿÿÿ8¸„Øž®1
java:S3398Ù"/Move this method into "BackgroundQueryHandler".(—÷õŽüÿÿÿÿ V
G java:S1874Ž"3Remove this use of "SHOW_FORCED"; it is deprecated.(© …áúÿÿÿÿ8¸„Øž®1
java:S3398µ"0Move this method into "OnListItemClickListener".(‘ðð¡ o
< java:S3776œ"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(ÅôÉ#8º„Øž®1
java:S3398õ"%Move this method into "ModeCallback".(ãìîí U
A java:S1135Þ"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8„؞®1
java:S3398º"%Move this method into "ModeCallback".(“ðÉçýÿÿÿÿ e
java:S1126ã"BReplace this if-then-else statement by a single method invocation.(玒¦ýÿÿÿÿ8Ä؞®1
U
java:S1135ë"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8Ä؞®1
m
java:S1874ò"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(œƒƒ©ùÿÿÿÿ8Ä„Øž®1
H java:S106ô"+Replace this use of System.out by a logger.(›ÚΊ8Ä„Øž®1
M java:S106"+Replace this use of System.out by a logger.(™‘‹£þÿÿÿÿ8Å„Øž®1
X
java:S1874"5Remove this use of "onBackPressed"; it is deprecated.(<28>Ñàÿÿÿÿÿ8Æ„Øž®1
Q
java:S1874¦".Remove this use of "<init>"; it is deprecated.(ЧðÛýÿÿÿÿ8Ñ„Øž®1
m
java:S1874®"JDon't override a deprecated method or explicitly mark it as "@Deprecated".(÷ችûÿÿÿÿ8Ò„Øž®1
R
java:S1874Ë"/Remove this use of "execute"; it is deprecated.( å«<C3A5>ûÿÿÿÿ8Ô„Øž®1
o
java:S3776Ú"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.(ôŒùb8Ö„Øž®1
k java:S100§"NRename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'.( •ÒŽ8Ú„Øž®1
I
java:S1172§"+Remove this unused method parameter "view".( •ÒŽ8Ú„Øž®1

@ -169,3 +169,49 @@ p
@app/src/main/java/net/micode/notes/gtask/remote/GTaskClient.java,4\5\4529b3a97b0f3b19b895aa06f23bed63ff38a312 @app/src/main/java/net/micode/notes/gtask/remote/GTaskClient.java,4\5\4529b3a97b0f3b19b895aa06f23bed63ff38a312
q q
Aapp/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java,a\b\ab153b0256bc5f6c194e188cec0b8e327e347a90 Aapp/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java,a\b\ab153b0256bc5f6c194e188cec0b8e327e347a90
u
Eapp/src/main/java/net/micode/notes/gtask/remote/GTaskSyncService.java,f\0\f087b1ba1b9c91b7293fea0fb071eaed62a42137
b
2app/src/main/java/net/micode/notes/model/Note.java,d\d\dd970bd8ce083850fca1d4d159647ccd110e57cb
f
6app/src/main/java/net/micode/notes/tool/DataUtils.java,3\2\32360bf24febc78f20db52498c7576b3d8650d56
m
=app/src/main/java/net/micode/notes/tool/GTaskStringUtils.java,c\4\c42ad3cd6e664963fa1849c760a57d417d500ee7
k
;app/src/main/java/net/micode/notes/tool/ResourceParser.java,c\6\c65f5dc8218ef1da6f6bfb5d1b14aea855a54d7f
P
app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
h
8app/src/main/java/net/micode/notes/tool/BackupUtils.java,a\4\a446c87b1013132f8adaf83656b582028e8809af
i
9app/src/main/java/net/micode/notes/model/WorkingNote.java,8\7\876016634c6642b35109680ccac740dc8271b236
l
<app/src/main/java/net/micode/notes/ui/NotesListActivity.java,a\d\ad72331a1bed265bb9c0fe838faa74dbf69fce32
g
7app/src/main/java/net/micode/notes/ui/NoteItemData.java,0\8\08c35f02f11c35ae9ebf8db0a482054dfa1cf493
g
7app/src/main/java/net/micode/notes/ui/NoteEditText.java,5\0\503adcf2a0be1ecdb94a15efba4433b6589877b9
k
;app/src/main/java/net/micode/notes/ui/NoteEditActivity.java,5\7\577f30d26378ec8a2bd2e4a43f3c79b3f04c402c
m
=app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java,f\9\f9f49497f95afd327db7a7a512612aa1089003d4
g
7app/src/main/java/net/micode/notes/ui/DropdownMenu.java,d\1\d1cc822fa9d783a8d4563bf6e139b7ae10de2fb1
o
?app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java,2\b\2bfc771e07e87c37d3a76a2c815bc8fb30649798
i
9app/src/main/java/net/micode/notes/ui/DateTimePicker.java,6\c\6cbf8bd9aa98eff862b1dc067330ba66ba4493aa
h
8app/src/main/java/net/micode/notes/ui/AlarmReceiver.java,5\8\5836a695995df8fadacfa6409fe8d21d88946842
l
<app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java,0\2\0268ec648e2fc0139b30ed13396174b7392c1ae2
k
;app/src/main/java/net/micode/notes/ui/NotesListAdapter.java,2\8\283f16cc23da56ca65616082bc810304d3511d0a
h
8app/src/main/java/net/micode/notes/ui/NotesListItem.java,5\d\5dfe6902d8ec740690f88d644e74362c3be08fad
r
Bapp/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java,d\a\da57ce446af85bbd9aefee65e969869f0cff78b0
t
Dapp/src/main/java/net/micode/notes/widget/NoteWidgetProvider_2x.java,1\7\175d8fa829f0a7ced6aa11970f112de6ad144628
q
Aapp/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java,5\8\58052a8597c5f01595e1c849728bcae66c27a1a6

@ -169,3 +169,49 @@ s
Capp/src/main/java/net/micode/notes/gtask/remote/GTaskASyncTask.java,0\2\023468cfdd0b71d4098903b9070e364658e2fbcf Capp/src/main/java/net/micode/notes/gtask/remote/GTaskASyncTask.java,0\2\023468cfdd0b71d4098903b9070e364658e2fbcf
q q
Aapp/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java,a\b\ab153b0256bc5f6c194e188cec0b8e327e347a90 Aapp/src/main/java/net/micode/notes/gtask/remote/GTaskManager.java,a\b\ab153b0256bc5f6c194e188cec0b8e327e347a90
u
Eapp/src/main/java/net/micode/notes/gtask/remote/GTaskSyncService.java,f\0\f087b1ba1b9c91b7293fea0fb071eaed62a42137
b
2app/src/main/java/net/micode/notes/model/Note.java,d\d\dd970bd8ce083850fca1d4d159647ccd110e57cb
f
6app/src/main/java/net/micode/notes/tool/DataUtils.java,3\2\32360bf24febc78f20db52498c7576b3d8650d56
m
=app/src/main/java/net/micode/notes/tool/GTaskStringUtils.java,c\4\c42ad3cd6e664963fa1849c760a57d417d500ee7
k
;app/src/main/java/net/micode/notes/tool/ResourceParser.java,c\6\c65f5dc8218ef1da6f6bfb5d1b14aea855a54d7f
P
app/src/main/AndroidManifest.xml,8\c\8c55c3ccc257e5907959013f99656e4c8ec3903e
i
9app/src/main/java/net/micode/notes/model/WorkingNote.java,8\7\876016634c6642b35109680ccac740dc8271b236
h
8app/src/main/java/net/micode/notes/tool/BackupUtils.java,a\4\a446c87b1013132f8adaf83656b582028e8809af
l
<app/src/main/java/net/micode/notes/ui/NotesListActivity.java,a\d\ad72331a1bed265bb9c0fe838faa74dbf69fce32
g
7app/src/main/java/net/micode/notes/ui/NoteItemData.java,0\8\08c35f02f11c35ae9ebf8db0a482054dfa1cf493
g
7app/src/main/java/net/micode/notes/ui/NoteEditText.java,5\0\503adcf2a0be1ecdb94a15efba4433b6589877b9
k
;app/src/main/java/net/micode/notes/ui/NoteEditActivity.java,5\7\577f30d26378ec8a2bd2e4a43f3c79b3f04c402c
m
=app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java,f\9\f9f49497f95afd327db7a7a512612aa1089003d4
g
7app/src/main/java/net/micode/notes/ui/DropdownMenu.java,d\1\d1cc822fa9d783a8d4563bf6e139b7ae10de2fb1
o
?app/src/main/java/net/micode/notes/ui/DateTimePickerDialog.java,2\b\2bfc771e07e87c37d3a76a2c815bc8fb30649798
i
9app/src/main/java/net/micode/notes/ui/DateTimePicker.java,6\c\6cbf8bd9aa98eff862b1dc067330ba66ba4493aa
h
8app/src/main/java/net/micode/notes/ui/AlarmReceiver.java,5\8\5836a695995df8fadacfa6409fe8d21d88946842
l
<app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java,0\2\0268ec648e2fc0139b30ed13396174b7392c1ae2
k
;app/src/main/java/net/micode/notes/ui/NotesListAdapter.java,2\8\283f16cc23da56ca65616082bc810304d3511d0a
h
8app/src/main/java/net/micode/notes/ui/NotesListItem.java,5\d\5dfe6902d8ec740690f88d644e74362c3be08fad
r
Bapp/src/main/java/net/micode/notes/ui/NotesPreferenceActivity.java,d\a\da57ce446af85bbd9aefee65e969869f0cff78b0
t
Dapp/src/main/java/net/micode/notes/widget/NoteWidgetProvider_2x.java,1\7\175d8fa829f0a7ced6aa11970f112de6ad144628
q
Aapp/src/main/java/net/micode/notes/widget/NoteWidgetProvider.java,5\8\58052a8597c5f01595e1c849728bcae66c27a1a6

@ -94,7 +94,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
private enum ListEditState { private enum ListEditState {
NOTE_LIST, SUB_FOLDER, CALL_RECORD_FOLDER NOTE_LIST, SUB_FOLDER, CALL_RECORD_FOLDER
}; }
private ListEditState mState; private ListEditState mState;
@ -247,6 +247,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
private Menu menu; private Menu menu;
private MenuItem mMoveMenu; private MenuItem mMoveMenu;
public boolean onCreateActionMode(ActionMode mode, Menu menu) { public boolean onCreateActionMode(ActionMode mode, Menu menu) {
getMenuInflater().inflate(R.menu.note_list_options, menu); getMenuInflater().inflate(R.menu.note_list_options, menu);
this.menu = menu; this.menu = menu;
@ -265,6 +266,8 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
mAddNewNote.setVisibility(View.GONE); mAddNewNote.setVisibility(View.GONE);
mMenuSet.setVisibility(View.GONE); mMenuSet.setVisibility(View.GONE);
//取一个自定义的视图设置给ActionMode
// 并创建一个DropdownMenu自定义的下拉菜单对象并设置下拉菜单项的点击监听器。
View customView = LayoutInflater.from(NotesListActivity.this).inflate( View customView = LayoutInflater.from(NotesListActivity.this).inflate(
R.layout.note_list_dropdown_menu, null); R.layout.note_list_dropdown_menu, null);
mode.setCustomView(customView); mode.setCustomView(customView);
@ -282,6 +285,9 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
return true; return true;
} }
/**
*
*/
private void updateMenu() { private void updateMenu() {
int selectedCount = mNotesListAdapter.getSelectedCount(); int selectedCount = mNotesListAdapter.getSelectedCount();
// Update dropdown menu // Update dropdown menu
@ -309,6 +315,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
return false; return false;
} }
//取消选择模式,清除选择项,恢复一些视图的可见性,并通知适配器数据集变化
public void onDestroyActionMode(ActionMode mode) { public void onDestroyActionMode(ActionMode mode) {
mNotesListAdapter.setChoiceMode(false); mNotesListAdapter.setChoiceMode(false);
mNotesListView.clearChoices(); mNotesListView.clearChoices();
@ -349,6 +356,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
public boolean onMenuItemClick(MenuItem item) { public boolean onMenuItemClick(MenuItem item) {
//判断是否有选中的项如果没有则弹出一个Toast提示用户选择项为空
if (mNotesListAdapter.getSelectedCount() == 0) { if (mNotesListAdapter.getSelectedCount() == 0) {
Toast.makeText(NotesListActivity.this, getString(R.string.menu_select_none), Toast.makeText(NotesListActivity.this, getString(R.string.menu_select_none),
Toast.LENGTH_SHORT).show(); Toast.LENGTH_SHORT).show();
@ -357,11 +365,13 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
switch (item.getItemId()) { switch (item.getItemId()) {
case R.id.delete: case R.id.delete:
//创建一个对话框,并设置标题、图标和正文信息
AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this);
builder.setTitle(getString(R.string.alert_title_delete)); builder.setTitle(getString(R.string.alert_title_delete));
builder.setIcon(android.R.drawable.ic_dialog_alert); builder.setIcon(android.R.drawable.ic_dialog_alert);
builder.setMessage(getString(R.string.alert_message_delete_notes, builder.setMessage(getString(R.string.alert_message_delete_notes,
mNotesListAdapter.getSelectedCount())); mNotesListAdapter.getSelectedCount()));
//确认按钮被点击时调用batchDelete()方法批量删除选中的项;取消按钮则关闭对话框。
builder.setPositiveButton(android.R.string.ok, builder.setPositiveButton(android.R.string.ok,
new DialogInterface.OnClickListener() { new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, public void onClick(DialogInterface dialog,
@ -372,6 +382,9 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
builder.setNegativeButton(android.R.string.cancel, null); builder.setNegativeButton(android.R.string.cancel, null);
builder.show(); builder.show();
break; break;
//如果是移动菜单项则调用startQueryDestinationFolders()方法,
// 该方法会开启异步线程,并查询所有的目标文件夹,
// 查询结果会在回调函数onQueryComplete()中得到处理和展示
case R.id.move: case R.id.move:
startQueryDestinationFolders(); startQueryDestinationFolders();
break; break;
@ -383,10 +396,18 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
/**
*便
*/
private class NewNoteOnTouchListener implements OnTouchListener { private class NewNoteOnTouchListener implements OnTouchListener {
public boolean onTouch(View v, MotionEvent event) { public boolean onTouch(View v, MotionEvent event) {
switch (event.getAction()) { switch (event.getAction()) {
//当用户按下手指时触发。
// 根据屏幕和"New Note"视图的高度计算出开始位置和事件Y坐标。
// 如果当前状态是ListEditState.SUB_FOLDER列表编辑状态为子文件夹
// 则减去标题栏的高度。然后检查是否点击了"New Note"按钮的透明部分,
// 如果是,则将事件分派给按钮后面的列表视图。
case MotionEvent.ACTION_DOWN: { case MotionEvent.ACTION_DOWN: {
Display display = getWindowManager().getDefaultDisplay(); Display display = getWindowManager().getDefaultDisplay();
int screenHeight = display.getHeight(); int screenHeight = display.getHeight();
@ -423,6 +444,8 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
break; break;
} }
//当用户滑动手指时触发。如果之前已经分派了事件即mDispatch为true
// 则更新分派Y坐标并将事件重新定位然后将其分派给列表视图。
case MotionEvent.ACTION_MOVE: { case MotionEvent.ACTION_MOVE: {
if (mDispatch) { if (mDispatch) {
mDispatchY += (int) event.getY() - mOriginY; mDispatchY += (int) event.getY() - mOriginY;
@ -431,6 +454,8 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
break; break;
} }
//当用户释放手指时触发。
// 如果之前已经分派了事件即mDispatch为true则将事件重新定位并取消分派。
default: { default: {
if (mDispatch) { if (mDispatch) {
event.setLocation(event.getX(), mDispatchY); event.setLocation(event.getX(), mDispatchY);
@ -443,8 +468,11 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
return false; return false;
} }
}; }
/**
* 便
*/
private void startAsyncNotesListQuery() { private void startAsyncNotesListQuery() {
String selection = (mCurrentFolderId == Notes.ID_ROOT_FOLDER) ? ROOT_FOLDER_SELECTION String selection = (mCurrentFolderId == Notes.ID_ROOT_FOLDER) ? ROOT_FOLDER_SELECTION
: NORMAL_SELECTION; : NORMAL_SELECTION;
@ -454,6 +482,10 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}, NoteColumns.TYPE + " DESC," + NoteColumns.MODIFIED_DATE + " DESC"); }, NoteColumns.TYPE + " DESC," + NoteColumns.MODIFIED_DATE + " DESC");
} }
/**
*
*/
@SuppressLint("HandlerLeak")
private final class BackgroundQueryHandler extends AsyncQueryHandler { private final class BackgroundQueryHandler extends AsyncQueryHandler {
public BackgroundQueryHandler(ContentResolver contentResolver) { public BackgroundQueryHandler(ContentResolver contentResolver) {
super(contentResolver); super(contentResolver);
@ -478,6 +510,10 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
} }
/**
* 便
* @param cursor
*/
private void showFolderListMenu(Cursor cursor) { private void showFolderListMenu(Cursor cursor) {
AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this); AlertDialog.Builder builder = new AlertDialog.Builder(NotesListActivity.this);
builder.setTitle(R.string.menu_title_select_folder); builder.setTitle(R.string.menu_title_select_folder);
@ -506,6 +542,9 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
this.startActivityForResult(intent, REQUEST_CODE_NEW_NODE); this.startActivityForResult(intent, REQUEST_CODE_NEW_NODE);
} }
/**
* 便
*/
@SuppressLint("StaticFieldLeak") @SuppressLint("StaticFieldLeak")
private void batchDelete() { private void batchDelete() {
new AsyncTask<Void, Void, HashSet<AppWidgetAttribute>>() { new AsyncTask<Void, Void, HashSet<AppWidgetAttribute>>() {
@ -606,6 +645,9 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
} }
/**
*
*/
private void showSoftInput() { private void showSoftInput() {
InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE); InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
if (inputMethodManager != null) { if (inputMethodManager != null) {
@ -618,6 +660,11 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0); inputMethodManager.hideSoftInputFromWindow(view.getWindowToken(), 0);
} }
/**
*
* @param create
*/
private void showCreateOrModifyFolderDialog(final boolean create) { private void showCreateOrModifyFolderDialog(final boolean create) {
final AlertDialog.Builder builder = new AlertDialog.Builder(this); final AlertDialog.Builder builder = new AlertDialog.Builder(this);
View view = LayoutInflater.from(this).inflate(R.layout.dialog_edit_text, null); View view = LayoutInflater.from(this).inflate(R.layout.dialog_edit_text, null);
@ -731,6 +778,11 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
} }
/**
*
* @param appWidgetId
* @param appWidgetType
*/
private void updateWidget(int appWidgetId, int appWidgetType) { private void updateWidget(int appWidgetId, int appWidgetType) {
Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE); Intent intent = new Intent(AppWidgetManager.ACTION_APPWIDGET_UPDATE);
if (appWidgetType == Notes.TYPE_WIDGET_2X) { if (appWidgetType == Notes.TYPE_WIDGET_2X) {
@ -750,6 +802,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
setResult(RESULT_OK, intent); setResult(RESULT_OK, intent);
} }
private final OnCreateContextMenuListener mFolderOnCreateContextMenuListener = new OnCreateContextMenuListener() { private final OnCreateContextMenuListener mFolderOnCreateContextMenuListener = new OnCreateContextMenuListener() {
public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
if (mFocusNoteDataItem != null) { if (mFocusNoteDataItem != null) {
@ -803,6 +856,11 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
return true; return true;
} }
/**
* mState
* @param menu
* @return
*/
@Override @Override
public boolean onPrepareOptionsMenu(Menu menu) { public boolean onPrepareOptionsMenu(Menu menu) {
menu.clear(); menu.clear();
@ -867,6 +925,10 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
return true; return true;
} }
/**
*
*/
@SuppressLint("StaticFieldLeak")
private void exportNoteToText() { private void exportNoteToText() {
final BackupUtils backup = BackupUtils.getInstance(NotesListActivity.this); final BackupUtils backup = BackupUtils.getInstance(NotesListActivity.this);
new AsyncTask<Void, Void, Integer>() { new AsyncTask<Void, Void, Integer>() {
@ -960,6 +1022,9 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
} }
/**
*
*/
private void startQueryDestinationFolders() { private void startQueryDestinationFolders() {
String selection = NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>? AND " + NoteColumns.ID + "<>?"; String selection = NoteColumns.TYPE + "=? AND " + NoteColumns.PARENT_ID + "<>? AND " + NoteColumns.ID + "<>?";
selection = (mState == ListEditState.NOTE_LIST) ? selection: selection = (mState == ListEditState.NOTE_LIST) ? selection:

Loading…
Cancel
Save