add code comment

This commit is contained in:
ziji Wu 2019-11-01 23:46:02 +08:00
parent 725ca453f6
commit 3ab01a9a0e
43 changed files with 232 additions and 200 deletions

View File

@ -1,36 +1,36 @@
f squid:S1126"BReplace this if-then-else statement by a single method invocation.(玒¦ýÿÿÿÿ8˜í÷”â-
D squid:S3398Å"%Move this method into "ModeCallback".(ãìîí8˜í÷”â-
Q squid:S1199Î"-Extract this nested code block into a method.(ãÍ€ôÿÿÿÿÿ8˜í÷”â-
V squid:S1135¦"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
f squid:S1126œ"BReplace this if-then-else statement by a single method invocation.(玒¦ýÿÿÿÿ8˜í÷”â-
V squid:S1135ÿ"2Complete the task associated to this TODO comment.(ÕÌ<C395>®þÿÿÿÿ8˜í÷”â-
Q squid:S1199â"-Extract this nested code block into a method.(Á¬å¯ûÿÿÿÿ8˜í÷”â-
G squid:S1148ø"#Use a logger to log this exception.(€ÉÔ…ýÿÿÿÿ8˜í÷”â-
V squid:S1135ö"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
o squid:S1301­"KReplace this "switch" statement by "if" statements to increase readability.(ד¾ñùÿÿÿÿ8˜í÷”â-
L squid:S1199Â"-Extract this nested code block into a method.(ŒãÈ“8˜í÷”â-
Q squid:S1199È"-Extract this nested code block into a method.(Ú¿–€úÿÿÿÿ8˜í÷”â-
Rsquid:EmptyStatementUsageChecki"Remove this empty statement.(ôŸŽìúÿÿÿÿ8¾ûÑá-
v squid:S3776á"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(áé–Þÿÿÿÿÿ8˜í÷”â-
: squid:S3626ô"Remove this redundant jump.(ûÁÝ…8˜í÷”â-
q squid:S3776Å"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ãìîí8˜í÷”â-
Q squid:S1199¹"-Extract this nested code block into a method.(µ˜ÇÃøÿÿÿÿ8˜í÷”â-
Q squid:S1199á"-Extract this nested code block into a method.(Á¬å¯ûÿÿÿÿ8˜í÷”â-
wsquid:ModifiersOrderCheck"EReorder the modifiers to comply with the Java Language Specification.(¹úæµûÿÿÿÿ8¾ûÑá-
L squid:S1199Á"-Extract this nested code block into a method.(ŒãÈ“8˜í÷”â-
w squid:S1450¹"XRemove the "mMoveMenu" field and declare it as a local variable in the relevant methods.(ž¢—ò8˜í÷”â-
V squid:S1135ð"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
O squid:S3398Š"0Move this method into "OnListItemClickListener".(‘ðð¡8£òÊ•â-
Q squid:S1199Í"-Extract this nested code block into a method.(ãÍ€ôÿÿÿÿÿ8˜í÷”â-
I squid:S00108Ì")Either remove or fill this block of code.(žûÊ¥8˜í÷”â-
o squid:S1301¬"KReplace this "switch" statement by "if" statements to increase readability.(ד¾ñùÿÿÿÿ8˜í÷”â-
G squid:S1148ÿ"#Use a logger to log this exception.(€ÉÔ…ýÿÿÿÿ8˜í÷”â-
G squid:S1148÷"#Use a logger to log this exception.(€ÉÔ…ýÿÿÿÿ8˜í÷”â-
: squid:S3626<18>"Remove this redundant jump.(ûÁÝ…8˜í÷”â-
V squid:S1135¥"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
I squid:S3398Ü"%Move this method into "ModeCallback".(“ðÉçýÿÿÿÿ8˜í÷”â-
N squid:S2093æ"*Change this "try" to a try-with-resources.(¡»¢üùÿÿÿÿ8˜í÷”â-
qsquid:ModifiersOrderCheckš"EReorder the modifiers to comply with the Java Language Specification.(ìѾk8¾ûÑá-
: squid:S3626ø"Remove this redundant jump.(ûÁÝ…8˜í÷”â-
Q squid:S1199æ"-Extract this nested code block into a method.(Η­Šþÿÿÿÿ8˜í÷”â-
Q squid:S1199Þ"-Extract this nested code block into a method.(ê¶ôÐùÿÿÿÿ8˜í÷”â-
p squid:S3776¬"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.(ôŒùb8˜í÷”â-
V squid:S1135õ"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
Q squid:S1199Ç"-Extract this nested code block into a method.(Ú¿–€úÿÿÿÿ8˜í÷”â-
V squid:S1135"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
V squid:S1135þ"2Complete the task associated to this TODO comment.(ÕÌ<C395>®þÿÿÿÿ8˜í÷”â-
Ssquid:EmptyStatementUsageCheckò"Remove this empty statement.(ôŸŽìúÿÿÿÿ8˜í÷”â-
L squid:S1199Ý"-Extract this nested code block into a method.(Žÿõó8˜í÷”â-
x squid:S2293õ"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥ð8˜í÷”â-
p squid:S3776Ë"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(ÅôÉ#8˜í÷”â-
N squid:S2093ç"*Change this "try" to a try-with-resources.(¡»¢üùÿÿÿÿ8˜í÷”â-
p squid:S3776Ì"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(ÅôÉ#8˜í÷”â-
: squid:S3626õ"Remove this redundant jump.(ûÁÝ…8˜í÷”â-
w squid:S1450º"XRemove the "mMoveMenu" field and declare it as a local variable in the relevant methods.(ž¢—ò8˜í÷”â-
Q squid:S1199º"-Extract this nested code block into a method.(µ˜ÇÃøÿÿÿÿ8˜í÷”â-
v squid:S3776â"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(áé–Þÿÿÿÿÿ8˜í÷”â-
Q squid:S1199ß"-Extract this nested code block into a method.(ê¶ôÐùÿÿÿÿ8˜í÷”â-
G squid:S1148"#Use a logger to log this exception.(€ÉÔ…ýÿÿÿÿ8˜í÷”â-
I squid:S3398Ý"%Move this method into "ModeCallback".(“ðÉçýÿÿÿÿ8˜í÷”â-
V squid:S1135ñ"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-
p squid:S3776­"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.(ôŒùb8˜í÷”â-
D squid:S3398Æ"%Move this method into "ModeCallback".(ãìîí8˜í÷”â-
: squid:S3626<18>"Remove this redundant jump.(ûÁÝ…8˜í÷”â-
L squid:S1199Þ"-Extract this nested code block into a method.(Žÿõó8˜í÷”â-
O squid:S3398"0Move this method into "OnListItemClickListener".(‘ðð¡8£òÊ•â-
wsquid:ModifiersOrderCheck"EReorder the modifiers to comply with the Java Language Specification.(¹úæµûÿÿÿÿ8¾ûÑá-
Q squid:S1199ç"-Extract this nested code block into a method.(Η­Šþÿÿÿÿ8˜í÷”â-
x squid:S2293ö"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥ð8˜í÷”â-
: squid:S3626ù"Remove this redundant jump.(ûÁÝ…8˜í÷”â-
I squid:S00108Í")Either remove or fill this block of code.(žûÊ¥8˜í÷”â-
q squid:S3776Æ"RRefactor this method to reduce its Cognitive Complexity from 20 to the 15 allowed.(ãìîí8˜í÷”â-
Ssquid:EmptyStatementUsageCheckó"Remove this empty statement.(ôŸŽìúÿÿÿÿ8˜í÷”â-
V squid:S1135"2Complete the task associated to this TODO comment.(» æžÿÿÿÿÿ8˜í÷”â-

View File

@ -13,22 +13,49 @@
</component>
<component name="ChangeListManager">
<list default="true" id="c8515555-ebbc-49d5-889b-0c59bd6c3b6d" name="默认更改列表" comment="">
<change beforePath="$PROJECT_DIR$/.gradle/4.8/fileChanges/last-build.bin" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/4.8/fileHashes/fileHashes.bin" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/4.8/fileHashes/fileHashes.lock" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.bin" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/executionHistory/executionHistory.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/buildOutputCleanup/buildOutputCleanup.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/fileHashes/fileHashes.bin" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/javaCompile/classAnalysis.bin" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/javaCompile/classAnalysis.bin" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.gradle/5.4.1/javaCompile/javaCompile.lock" beforeDir="false" afterPath="$PROJECT_DIR$/.gradle/5.4.1/javaCompile/javaCompile.lock" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/f/a/faa5b9114b67165e5e7467e0adf7a86b9d4335af" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/sonarlint/issuestore/f/a/faa5b9114b67165e5e7467e0adf7a86b9d4335af" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/sonarlint/issuestore/index.pb" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/sonarlint/issuestore/index.pb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/incremental/mergeDebugResources/compile-file-map.properties" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/incremental/mergeDebugResources/compile-file-map.properties" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/incremental/packageDebug/tmp/debug/dex-renamer-state.txt" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardFragment.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardFragment.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardView.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardView.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/dex/debug/mergeDexDebug/out/classes.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$1.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$1.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$2.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$2.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$3.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$3.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$4.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$4.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$5.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$5.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$6.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$6.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$7.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$7.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$8.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$8.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$9.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$9.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$1.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$1.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$2.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback$2.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$ModeCallback.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity.class" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/javac/debug/classes/net/micode/notes/ui/NotesListActivity.class" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$1.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$1.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$2.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$2.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$3.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$3.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$4.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$4.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$5.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$5.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$6.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$6.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$7.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$7.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$8.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$8.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$9.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$9.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$BackgroundQueryHandler.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$ModeCallback$1.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$ModeCallback$1.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$ModeCallback$2.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$ModeCallback$2.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$ModeCallback.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$ModeCallback.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$NewNoteOnTouchListener.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity$OnListItemClickListener.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity.dex" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/intermediates/transforms/dexBuilder/debug/0/net/micode/notes/ui/NotesListActivity.dex" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/build/outputs/apk/debug/app-debug.apk" beforeDir="false" afterPath="$PROJECT_DIR$/app/build/outputs/apk/debug/app-debug.apk" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/CheckBoxAdapter.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/CheckBoxAdapter.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" beforeDir="false" afterPath="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="SHOW_DIALOG" value="false" />
@ -63,69 +90,36 @@
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/DropdownMenu.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="123">
<caret line="209" column="48" lean-forward="true" selection-start-line="209" selection-start-column="48" selection-end-line="209" selection-end-column="48" />
<folding>
<element signature="imports" expanded="true" />
</folding>
<state relative-caret-position="-71">
<caret line="29" column="13" selection-start-line="29" selection-start-column="13" selection-end-line="29" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-317">
<caret line="31" column="13" selection-start-line="31" selection-start-column="13" selection-end-line="31" selection-end-column="13" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardView.java">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="245">
<caret line="43" column="37" lean-forward="true" selection-start-line="43" selection-start-column="37" selection-end-line="43" selection-end-column="37" />
<state relative-caret-position="114">
<caret line="545" column="16" lean-forward="true" selection-start-line="545" selection-start-column="16" selection-end-line="545" selection-end-column="16" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/res/layout/white_board.xml">
<provider editor-type-id="android-designer2" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="300">
<caret line="15" column="29" selection-start-line="15" selection-start-column="29" selection-end-line="15" selection-end-column="29" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="230">
<caret line="76" column="52" lean-forward="true" selection-start-line="74" selection-start-column="3" selection-end-line="76" selection-end-column="52" />
<folding>
<element signature="imports" expanded="true" />
<element signature="method#showSoftInput#0;class#TodoFragment#0" />
<element signature="method#hideSoftInput#0;class#TodoFragment#0" />
</folding>
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
<caret line="21" column="63" selection-start-line="21" selection-start-column="63" selection-end-line="21" selection-end-column="63" />
</state>
</provider>
</entry>
</file>
<file pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardFragment.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="32" column="44" lean-forward="true" selection-start-line="32" selection-start-column="44" selection-end-line="32" selection-end-column="44" />
<folding>
<element signature="imports" expanded="true" />
<element signature="initializer##0;class#NoteEditActivity#0" />
<element signature="initializer##1;class#NoteEditActivity#0" />
<element signature="initializer##2;class#NoteEditActivity#0" />
<element signature="initializer##3;class#NoteEditActivity#0" />
<element signature="e#8684#8713#0" expanded="true" />
<element signature="e#13614#13641#0" expanded="true" />
<element signature="class#16833:17581" />
</folding>
</state>
</provider>
@ -228,7 +222,6 @@
<option value="$PROJECT_DIR$/app/src/main/res/layout/white.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoList.java" />
<option value="$PROJECT_DIR$/app/src/main/AndroidManifest.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" />
<option value="$PROJECT_DIR$/app/src/main/res/layout/todo_edit.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TabListener.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoEditFragment.java" />
@ -240,15 +233,16 @@
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoAdapter.java" />
<option value="$PROJECT_DIR$/app/src/main/res/layout/todo_item.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoCheckBox.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/CheckBoxAdapter.java" />
<option value="$PROJECT_DIR$/app/src/main/res/layout/todo_list_item.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/TodoDataBaseHelper.java" />
<option value="$PROJECT_DIR$/app/build.gradle" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java" />
<option value="$PROJECT_DIR$/app/src/main/res/layout/white_board.xml" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardFragment.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardView.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/CheckBoxAdapter.java" />
<option value="$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java" />
</list>
</option>
</component>
@ -264,12 +258,12 @@
<foldersAlwaysOnTop value="true" />
</navigator>
<panes>
<pane id="PackagesPane">
<pane id="AndroidView">
<subPane>
<expand>
<path>
<item name="src" type="58d84e3e:PackageViewProjectNode" />
<item name="app" type="616d4139:PackageViewModuleNode" />
<item name="src" type="1abcf292:AndroidViewProjectNode" />
<item name="Gradle Scripts" type="ae0cef3a:AndroidBuildScriptsGroupNode" />
</path>
</expand>
<select />
@ -435,12 +429,12 @@
<select />
</subPane>
</pane>
<pane id="AndroidView">
<pane id="PackagesPane">
<subPane>
<expand>
<path>
<item name="src" type="1abcf292:AndroidViewProjectNode" />
<item name="Gradle Scripts" type="ae0cef3a:AndroidBuildScriptsGroupNode" />
<item name="src" type="58d84e3e:PackageViewProjectNode" />
<item name="app" type="616d4139:PackageViewModuleNode" />
</path>
</expand>
<select />
@ -696,13 +690,6 @@
<option name="presentableId" value="Default" />
<updated>1568106571875</updated>
</task>
<task id="LOCAL-00003" summary="correct some error by sonarlint">
<created>1568108467671</created>
<option name="number" value="00003" />
<option name="presentableId" value="LOCAL-00003" />
<option name="project" value="LOCAL" />
<updated>1568108467671</updated>
</task>
<task id="LOCAL-00004" summary="none">
<created>1568109002344</created>
<option name="number" value="00004" />
@ -1039,7 +1026,14 @@
<option name="project" value="LOCAL" />
<updated>1572573379860</updated>
</task>
<option name="localTasksCounter" value="52" />
<task id="LOCAL-00052" summary="add whiteboard">
<created>1572620818170</created>
<option name="number" value="00052" />
<option name="presentableId" value="LOCAL-00052" />
<option name="project" value="LOCAL" />
<updated>1572620818171</updated>
</task>
<option name="localTasksCounter" value="53" />
<servers />
</component>
<component name="TodoView">
@ -1056,7 +1050,7 @@
<editor active="true" />
<layout>
<window_info id="Captures" order="0" sideWeight="0.5019305" side_tool="true" weight="0.16957104" />
<window_info content_ui="combo" id="Project" order="1" sideWeight="0.47717842" visible="true" weight="0.15261044" />
<window_info active="true" content_ui="combo" id="Project" order="1" sideWeight="0.47717842" visible="true" weight="0.15194109" />
<window_info id="设计器" order="2" />
<window_info id="Resources Explorer" order="3" weight="0.3297587" />
<window_info id="Structure" order="4" sideWeight="0.5228216" side_tool="true" weight="0.15281501" />
@ -1068,7 +1062,7 @@
<window_info anchor="bottom" id="SonarLint" order="1" weight="0.3297587" />
<window_info anchor="bottom" id="Logcat" order="2" sideWeight="0.49932975" weight="0.3538874" />
<window_info anchor="bottom" id="TODO" order="3" weight="0.3297587" />
<window_info anchor="bottom" id="Android Profiler" order="4" weight="0.9597855" />
<window_info anchor="bottom" id="Android Profiler" order="4" show_stripe_button="false" weight="0.9597855" />
<window_info anchor="bottom" id="Find" order="5" weight="0.3297587" />
<window_info anchor="bottom" id="Debug" order="6" />
<window_info anchor="bottom" id="Terminal" order="7" weight="0.3297587" />
@ -1166,36 +1160,10 @@
<MESSAGE value="add actionbar tabs" />
<MESSAGE value="add todo list" />
<MESSAGE value="add todo list view" />
<option name="LAST_COMMIT_MESSAGE" value="add todo list view" />
<MESSAGE value="add whiteboard" />
<option name="LAST_COMMIT_MESSAGE" value="add whiteboard" />
</component>
<component name="editorHistoryManager">
<entry file="file://$PROJECT_DIR$/app/src/main/res/xml/preferences.xml">
<provider editor-type-id="android-designer2" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="260">
<caret line="27" column="41" lean-forward="true" selection-start-line="27" selection-start-column="41" selection-end-line="27" selection-end-column="41" />
<folding>
<element signature="e#1005#1049#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/values/strings.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="172">
<caret line="116" column="28" selection-start-line="116" selection-start-column="28" selection-end-line="116" selection-end-column="28" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/layout/white.xml" />
<entry file="file://D:/Android_SDK/SDK/sources/android-23/android/view/View.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="20">
<caret line="21328" column="21" selection-start-line="21328" selection-start-column="21" selection-end-line="21328" selection-end-column="21" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoList.java" />
<entry file="file://$PROJECT_DIR$/app/src/main/AndroidManifest.xml">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="102">
@ -1362,16 +1330,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/CheckBoxAdapter.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="203">
<caret line="62" column="54" selection-start-line="62" selection-start-column="54" selection-end-line="62" selection-end-column="54" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/res/drawable-hdpi/list_footer_bg.9.png">
<provider editor-type-id="images" />
<provider selected="true" editor-type-id="ninepatcheditor" />
@ -1431,20 +1389,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="398">
<caret line="358" column="33" lean-forward="true" selection-start-line="358" selection-start-column="33" selection-end-line="358" selection-end-column="33" />
<folding>
<element signature="initializer##0;class#NoteEditActivity#0" />
<element signature="initializer##1;class#NoteEditActivity#0" />
<element signature="initializer##2;class#NoteEditActivity#0" />
<element signature="initializer##3;class#NoteEditActivity#0" />
<element signature="e#13079#13125#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/TodoDataBaseHelper.java" />
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/data/NotesDatabaseHelper.java">
<provider selected="true" editor-type-id="text-editor">
@ -1463,39 +1407,20 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="420">
<caret line="21" column="63" selection-start-line="21" selection-start-column="63" selection-end-line="21" selection-end-column="63" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="230">
<caret line="76" column="52" lean-forward="true" selection-start-line="74" selection-start-column="3" selection-end-line="76" selection-end-column="52" />
<folding>
<element signature="imports" expanded="true" />
<element signature="method#showSoftInput#0;class#TodoFragment#0" />
<element signature="method#hideSoftInput#0;class#TodoFragment#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NotesListActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="123">
<caret line="209" column="48" lean-forward="true" selection-start-line="209" selection-start-column="48" selection-end-line="209" selection-end-column="48" />
<state relative-caret-position="3820">
<caret line="209" column="48" selection-start-line="209" selection-start-column="48" selection-end-line="209" selection-end-column="48" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardFragment.java">
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardView.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="285">
<caret line="32" column="44" lean-forward="true" selection-start-line="32" selection-start-column="44" selection-end-line="32" selection-end-column="44" />
<state relative-caret-position="440">
<caret line="22" column="9" selection-start-line="22" selection-start-column="9" selection-end-line="22" selection-end-column="9" />
<folding>
<element signature="imports" expanded="true" />
</folding>
@ -1510,16 +1435,101 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardView.java">
<entry file="file://$PROJECT_DIR$/app/build.gradle">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="245">
<caret line="43" column="37" lean-forward="true" selection-start-line="43" selection-start-column="37" selection-end-line="43" selection-end-column="37" />
<state relative-caret-position="420">
<caret line="21" column="63" selection-start-line="21" selection-start-column="63" selection-end-line="21" selection-end-column="63" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/WhiteBoardFragment.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="640">
<caret line="32" column="44" selection-start-line="32" selection-start-column="44" selection-end-line="32" selection-end-column="44" />
<folding>
<element signature="imports" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/TodoFragment.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="78">
<caret line="8" column="29" selection-start-line="8" selection-start-column="29" selection-end-line="8" selection-end-column="29" />
<folding>
<element signature="method#showSoftInput#0;class#TodoFragment#0" />
<element signature="method#hideSoftInput#0;class#TodoFragment#0" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmAlertActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-1163">
<caret line="42" column="13" selection-start-line="42" selection-start-column="13" selection-end-line="42" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/AlarmInitReceiver.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="140">
<caret line="30" column="13" selection-start-line="30" selection-start-column="13" selection-end-line="30" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/CheckBoxAdapter.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="374">
<caret line="38" column="17" selection-start-line="38" selection-start-column="17" selection-end-line="38" selection-end-column="17" />
<folding>
<element signature="imports" expanded="true" />
<element signature="e#850#851#0" expanded="true" />
<element signature="e#884#885#0" expanded="true" />
<element signature="e#941#942#0" expanded="true" />
<element signature="e#982#983#0" expanded="true" />
<element signature="e#1039#1040#0" expanded="true" />
<element signature="e#1070#1071#0" expanded="true" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/DateTimePicker.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-692">
<caret line="30" column="13" selection-start-line="30" selection-start-column="13" selection-end-line="30" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/DropdownMenu.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-71">
<caret line="29" column="13" selection-start-line="29" selection-start-column="13" selection-end-line="29" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/FoldersListAdapter.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="-317">
<caret line="31" column="13" selection-start-line="31" selection-start-column="13" selection-end-line="31" selection-end-column="13" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/app/src/main/java/net/micode/notes/ui/NoteEditActivity.java">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="114">
<caret line="545" column="16" lean-forward="true" selection-start-line="545" selection-start-column="16" selection-end-line="545" selection-end-column="16" />
<folding>
<element signature="initializer##0;class#NoteEditActivity#0" />
<element signature="initializer##1;class#NoteEditActivity#0" />
<element signature="initializer##2;class#NoteEditActivity#0" />
<element signature="initializer##3;class#NoteEditActivity#0" />
<element signature="e#8684#8713#0" expanded="true" />
<element signature="e#13614#13641#0" expanded="true" />
<element signature="class#16833:17581" />
</folding>
</state>
</provider>
</entry>
</component>
<component name="masterDetails">
<states>

View File

@ -14,29 +14,38 @@ import android.widget.TextView;
import net.micode.notes.R;
/*
* 该类用于适配Todo中的勾选框
* */
public class CheckBoxAdapter extends BaseAdapter{
private Context context;
private List<HashMap<String,Object>> list;
private LayoutInflater layoutInflater;
//Todo下待办内容
private TextView tv;
//勾选框
private CheckBox cb;
public CheckBoxAdapter(Context context,List<HashMap<String, Object>> list) {
this.context = context;
this.list = list;//list中checkbox状态为false
//list中checkbox状态为false默认不勾选
this.list = list;
this.layoutInflater=LayoutInflater.from(context);
}
//获取待办数量的方法返回值类型-int
@Override
public int getCount() {
return list.size();
}
//获取待办项的方法返回值类型<string,boolean>
@Override
public Object getItem(int position) {
return list.get(position);
}
//获取位置的方法
@Override
public long getItemId(int position) {
return position;
@ -48,7 +57,9 @@ public class CheckBoxAdapter extends BaseAdapter{
convertView = layoutInflater.inflate(R.layout.todo_list_item, null);
ViewCache viewCache = new ViewCache();
//绑定文本框
tv = (TextView) convertView.findViewById(R.id.tv_todo_text);
//绑定勾选框
cb = (CheckBox) convertView.findViewById(R.id.cb_todo);
viewCache.tv = tv;

View File

@ -171,6 +171,7 @@ public class NoteEditActivity extends Activity implements OnClickListener,
private static final int SHORTCUT_ICON_TITLE_MAX_LEN = 10;
//清单模式中标识是否选中
public static final String TAG_CHECKED = String.valueOf('\u221A');
public static final String TAG_UNCHECKED = String.valueOf('\u25A1');
@ -347,18 +348,26 @@ public class NoteEditActivity extends Activity implements OnClickListener,
showAlertHeader();
}
/*
* 该方法用于在编辑模式下显示提醒样式
* */
private void showAlertHeader() {
//如果设置了提醒
if (mWorkingNote.hasClockAlert()) {
//获取当前时间
long time = System.currentTimeMillis();
if (time > mWorkingNote.getAlertDate()) {
//提醒已经过期
mNoteHeaderHolder.tvAlertDate.setText(R.string.note_alert_expired);
} else {
//没有过期显示还有多久提醒
mNoteHeaderHolder.tvAlertDate.setText(DateUtils.getRelativeTimeSpanString(
mWorkingNote.getAlertDate(), time, DateUtils.MINUTE_IN_MILLIS));
}
mNoteHeaderHolder.tvAlertDate.setVisibility(View.VISIBLE);
mNoteHeaderHolder.ivAlertIcon.setVisibility(View.VISIBLE);
} else {
//没有设置提醒隐藏图标
mNoteHeaderHolder.tvAlertDate.setVisibility(View.GONE);
mNoteHeaderHolder.ivAlertIcon.setVisibility(View.GONE);
};
@ -505,8 +514,10 @@ public class NoteEditActivity extends Activity implements OnClickListener,
setResult(RESULT_OK, intent);
}
//该方法用于实现点击事件处理
public void onClick(View v) {
int id = v.getId();
//如果点击设置背景色
if (id == R.id.btn_set_bg_color) {
mNoteBgColorSelector.setVisibility(View.VISIBLE);
findViewById(sBgSelectorSelectionMap.get(mWorkingNote.getBgColorId())).setVisibility( View.VISIBLE);