From 4231e1220ef583da511ae90726dbd46b5a369853 Mon Sep 17 00:00:00 2001 From: ziji Wu <2193177243@qq.com> Date: Thu, 10 Oct 2019 10:14:26 +0800 Subject: [PATCH] noteslistactivity --- .../executionHistory/executionHistory.bin | Bin 323601 -> 323601 bytes .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes src/.gradle/5.4.1/fileHashes/fileHashes.bin | Bin 43997 -> 43997 bytes src/.gradle/5.4.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes .../283f16cc23da56ca65616082bc810304d3511d0a | 20 +- .../3e688be40dc69cfd1062f41d0fc27fe261a26710 | 20 +- .../577f30d26378ec8a2bd2e4a43f3c79b3f04c402c | 28 +- .../6a65e747031f27aef20597b4181148a9fbf963d5 | 14 +- .../876016634c6642b35109680ccac740dc8271b236 | 10 +- .../ad72331a1bed265bb9c0fe838faa74dbf69fce32 | 58 +- src/.idea/workspace.xml | 568 +++++++++--------- .../micode/notes/ui/NotesListActivity.java | 39 +- 13 files changed, 382 insertions(+), 375 deletions(-) diff --git a/src/.gradle/5.4.1/executionHistory/executionHistory.bin b/src/.gradle/5.4.1/executionHistory/executionHistory.bin index dbfc715b0ff1c00471f3a0e2cf48683bbe7d6682..4abe340d7d6c30c17ba2c70509597f4577797b7a 100644 GIT binary patch delta 105 zcmbREKzQN<;SK&CN_pw|sYWHGsij#-=~LT%?K1~6bO1^_x21t|ak literal 17 VcmZRMdf@e>LT%?K1~6dE1OPe>1s?za diff --git a/src/.gradle/5.4.1/fileHashes/fileHashes.bin b/src/.gradle/5.4.1/fileHashes/fileHashes.bin index 8488858c30bddea8a250e17606d337c7eb98f82c..0968d755e4b066657593f12deb4a8716a7a341a3 100644 GIT binary patch delta 19 bcmcb6o$2m%rVW?lSyr2SUE6#;p3MgUXk`hI delta 19 bcmcb6o$2m%rVW?lSyrA|!M6E&Jev;yYOM*e diff --git a/src/.gradle/5.4.1/fileHashes/fileHashes.lock b/src/.gradle/5.4.1/fileHashes/fileHashes.lock index 18fa7d7dd45b002831a726f8918e231a9f89c1ea..545a808256451c1f33dcd87ec29d85745977dcab 100644 GIT binary patch literal 17 VcmZR+pgrSz(_gE93}C=r1pq-^1").( -G squid:S5411"*Use the primitive boolean expression here.( F squid:S5411"*Use the primitive boolean expression here.(ɯ +K squid:S1066e"/Merge this if statement with the enclosing one.(ڧ +u squid:S22931"YReplace the type specification in this constructor call with the diamond operator ("<>").(ə +G squid:S5411"*Use the primitive boolean expression here.( +"squid:ClassVariableVisibilityCheck,"VMake widgetType a static final constant or non-public and provide accessors if needed.(漬 +Ksquid:EmptyStatementUsageCheck-"Remove this empty statement.( +p squid:S2293m"YReplace the type specification in this constructor call with the diamond operator ("<>").( p squid:S2293}"YReplace the type specification in this constructor call with the diamond operator ("<>").(Ȫ D squid:S1125o"(Remove the literal "true" boolean value.(ɯ -Ksquid:EmptyStatementUsageCheck-"Remove this empty statement.( -u squid:S22931"YReplace the type specification in this constructor call with the diamond operator ("<>").(ə \ No newline at end of file +E squid:S1125"(Remove the literal "true" boolean value.( +K squid:S2864n"4Iterate over the "entrySet" instead of the "keySet".(਷ \ No newline at end of file diff --git a/src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 b/src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 index 1ae5eef..071a214 100644 --- a/src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 +++ b/src/.idea/sonarlint/issuestore/3/e/3e688be40dc69cfd1062f41d0fc27fe261a26710 @@ -1,14 +1,14 @@ -\ squid:S2147{"ECombine this catch with the one at line 114, which has the same body.(ﭣ -? squid:S1148P"#Use a logger to log this exception.(ԅ -? squid:S1148z"#Use a logger to log this exception.(ԅ +N squid:S1135|"2Complete the task associated to this TODO comment.(̐ ? squid:S1148w"#Use a logger to log this exception.(ԅ -? squid:S1148t"#Use a logger to log this exception.(ԅ -a squid:S2147u"ECombine this catch with the one at line 114, which has the same body.( +h squid:S1301"KReplace this "switch" statement by "if" statements to increase readability.(۫ +a squid:S2147x"ECombine this catch with the one at line 117, which has the same body.( N squid:S1135y"2Complete the task associated to this TODO comment.(̐ -N squid:S1135v"2Complete the task associated to this TODO comment.(̐ ? squid:S1148}"#Use a logger to log this exception.(ԅ -N squid:S1135s"2Complete the task associated to this TODO comment.(̐ -h squid:S1301"KReplace this "switch" statement by "if" statements to increase readability.(۫ -\ squid:S2147x"ECombine this catch with the one at line 114, which has the same body.( -N squid:S1135|"2Complete the task associated to this TODO comment.(̐ \ No newline at end of file +? squid:S1148z"#Use a logger to log this exception.(ԅ +? squid:S1148Q"#Use a logger to log this exception.(ԅ +@ squid:S1148"#Use a logger to log this exception.(ԅ +\ squid:S2147{"ECombine this catch with the one at line 117, which has the same body.( +N squid:S1135v"2Complete the task associated to this TODO comment.(̐ +\ squid:S2147~"ECombine this catch with the one at line 117, which has the same body.(ﭣ +N squid:S1135"2Complete the task associated to this TODO comment.(̐ \ No newline at end of file diff --git a/src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c b/src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c index d5a5c3f..2e3b8cc 100644 --- a/src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c +++ b/src/.idea/sonarlint/issuestore/5/7/577f30d26378ec8a2bd2e4a43f3c79b3f04c402c @@ -1,17 +1,17 @@ -o squid:S3776"RRefactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.(ݨ -Lsquid:EmptyStatementUsageCheck"Remove this empty statement.( -O squid:S1135"2Complete the task associated to this TODO comment.( -u squid:S2293l"YReplace the type specification in this constructor call with the diamond operator ("<>").( -"squid:ClassVariableVisibilityCheckP"VMake tvModified a static final constant or non-public and provide accessors if needed.(ԣ -Lsquid:EmptyStatementUsageCheck"Remove this empty statement.( -Y squid:S1126"AReplace this if-then-else statement by a single return statement.( "squid:ClassVariableVisibilityCheckV"XMake ibSetBgColor a static final constant or non-public and provide accessors if needed.( -q squid:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥 -o squid:S1450"WRemove the "mPattern" field and declare it as a local variable in the relevant methods.( -p squid:S2293t"YReplace the type specification in this constructor call with the diamond operator ("<>").( -"squid:ClassVariableVisibilityCheckR"WMake ivAlertIcon a static final constant or non-public and provide accessors if needed.(න -"squid:ClassVariableVisibilityCheckT"WMake tvAlertDate a static final constant or non-public and provide accessors if needed.( -L squid:S2864"4Iterate over the "entrySet" instead of the "keySet".(ԇ +"squid:ClassVariableVisibilityCheckP"VMake tvModified a static final constant or non-public and provide accessors if needed.(ԣ u squid:S2293Z"YReplace the type specification in this constructor call with the diamond operator ("<>").(ӏ -u squid:S2293c"YReplace the type specification in this constructor call with the diamond operator ("<>").( \ No newline at end of file +u squid:S2293l"YReplace the type specification in this constructor call with the diamond operator ("<>").( +q squid:S2293"YReplace the type specification in this constructor call with the diamond operator ("<>").(艥 +p squid:S2293t"YReplace the type specification in this constructor call with the diamond operator ("<>").( +o squid:S3776"RRefactor this method to reduce its Cognitive Complexity from 26 to the 15 allowed.(ݨ +L squid:S2864"4Iterate over the "entrySet" instead of the "keySet".(ԇ +O squid:S1135"2Complete the task associated to this TODO comment.( +"squid:ClassVariableVisibilityCheckR"WMake ivAlertIcon a static final constant or non-public and provide accessors if needed.(න +o squid:S1450"WRemove the "mPattern" field and declare it as a local variable in the relevant methods.( +u squid:S2293c"YReplace the type specification in this constructor call with the diamond operator ("<>").( +Y squid:S1126"AReplace this if-then-else statement by a single return statement.( +Lsquid:EmptyStatementUsageCheck"Remove this empty statement.( +"squid:ClassVariableVisibilityCheckT"WMake tvAlertDate a static final constant or non-public and provide accessors if needed.( +Lsquid:EmptyStatementUsageCheck"Remove this empty statement.( \ No newline at end of file diff --git a/src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 b/src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 index db346e6..f88c12b 100644 --- a/src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 +++ b/src/.idea/sonarlint/issuestore/6/a/6a65e747031f27aef20597b4181148a9fbf963d5 @@ -1,8 +1,8 @@ -U squid:S1153"1Directly append the argument of String.valueOf().(ߦ8ϵ- -V squid:S1135"2Complete the task associated to this TODO comment.(8ϵ- -H squid:S1659"$Declare "noteId" on a separate line.(ؘ8ϵ- -L squid:S1659"(Declare "insertedId" on a separate line.(ؘ8ϵ- -\ squid:S2130"8Use "Long.parseLong" for this string-to-long conversion.(8ϵ- -q squid:S1192"MDefine a constant instead of duplicating this literal "Unknown URI " 4 times.(8ϵ- - squid:S3008N"eRename this field "NOTES_SNIPPET_SEARCH_QUERY" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(8ϵ- \ No newline at end of file + squid:S3008N"eRename this field "NOTES_SNIPPET_SEARCH_QUERY" to match the regular expression '^[a-z][a-zA-Z0-9]*$'.(8ϵ- +V squid:S1135"2Complete the task associated to this TODO comment.(8ϵ- +\ squid:S2130"8Use "Long.parseLong" for this string-to-long conversion.(8ϵ- +U squid:S1153"1Directly append the argument of String.valueOf().(ߦ8ϵ- +q squid:S1192"MDefine a constant instead of duplicating this literal "Unknown URI " 4 times.(8ϵ- +H squid:S1659"$Declare "noteId" on a separate line.(ؘ8ϵ- +L squid:S1659"(Declare "insertedId" on a separate line.(ؘ8ϵ- \ No newline at end of file diff --git a/src/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 b/src/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 index bfee785..5c4cab5 100644 --- a/src/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 +++ b/src/.idea/sonarlint/issuestore/8/7/876016634c6642b35109680ccac740dc8271b236 @@ -1,6 +1,6 @@ -@ squid:S1125"(Remove the literal "true" boolean value.( -9 squid:S2386K"Make this member "protected".(㳎 -4 squid:S2386A"Make this member "protected".( -G squid:S1066"/Merge this if statement with the enclosing one.( -Y squid:S1126"AReplace this if-then-else statement by a single return statement.( \ No newline at end of file +4 squid:S2386F"Make this member "protected".( +@ squid:S1125"(Remove the literal "true" boolean value.( +G squid:S1066"/Merge this if statement with the enclosing one.( +Y squid:S1126"AReplace this if-then-else statement by a single return statement.( +9 squid:S2386P"Make this member "protected".(㳎 \ No newline at end of file diff --git a/src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 b/src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 index 656357f..ddc158d 100644 --- a/src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 +++ b/src/.idea/sonarlint/issuestore/a/d/ad72331a1bed265bb9c0fe838faa74dbf69fce32 @@ -1,36 +1,36 @@ -N squid:S2093"*Change this "try" to a try-with-resources.(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- -o squid:S1301"KReplace this "switch" statement by "if" statements to increase readability.(ד8- -V squid:S1135"2Complete the task associated to this TODO comment.(8- -Ksquid:EmptyStatementUsageCheckg"Remove this empty statement.( -V squid:S1135"2Complete the task associated to this TODO comment.(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Ļ- -L squid:S1199"-Extract this nested code block into a method.(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- -qsquid:ModifiersOrderCheck"EReorder the modifiers to comply with the Java Language Specification.(Ѿk8- -D squid:S3398"%Move this method into "ModeCallback".(8- -O squid:S3398"0Move this method into "OnListItemClickListener".(8- -I squid:S3398"%Move this method into "ModeCallback".(8Ļ- -: squid:S3626"Remove this redundant jump.(݅8- -V squid:S1135"2Complete the task associated to this TODO comment.(̐8- -: squid:S3626"Remove this redundant jump.(݅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- +D squid:S3398"%Move this method into "ModeCallback".(8- +I squid:S00108")Either remove or fill this block of code.(ʥ8- +V squid:S1135"2Complete the task associated to this TODO comment.(̐8- +: squid:S3626"Remove this redundant jump.(݅8- +N squid:S2093"*Change this "try" to a try-with-resources.(8- +V squid:S1135"2Complete the task associated to this TODO comment.(8- +Ssquid:EmptyStatementUsageCheck"Remove this empty statement.(8- +w squid:S1450"XRemove the "mMoveMenu" field and declare it as a local variable in the relevant methods.(8- +O squid:S3398"0Move this method into "OnListItemClickListener".(8- +V squid:S1135"2Complete the task associated to this TODO comment.(8- +I squid:S3398"%Move this method into "ModeCallback".(8Ļ- +f squid:S1126"BReplace this if-then-else statement by a single method invocation.(玒8- +: squid:S3626"Remove this redundant jump.(݅8- +V squid:S1135"2Complete the task associated to this TODO comment.(8- +V squid:S1135"2Complete the task associated to this TODO comment.(8- +G squid:S1148"#Use a logger to log this exception.(ԅ8- +wsquid:ModifiersOrderCheck"EReorder the modifiers to comply with the Java Language Specification.(8- p squid:S3776"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(#8- +p squid:S3776"RRefactor this method to reduce its Cognitive Complexity from 18 to the 15 allowed.(b8Ļ- +L squid:S1199"-Extract this nested code block into a method.(ȓ8- +L squid:S1199"-Extract this nested code block into a method.(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- +Ksquid:EmptyStatementUsageCheckg"Remove this empty statement.( +Q squid:S1199"-Extract this nested code block into a method.(Η8- +qsquid:ModifiersOrderCheck"EReorder the modifiers to comply with the Java Language Specification.(Ѿk8- +Q squid:S1199"-Extract this nested code block into a method.(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:S00108")Either remove or fill this block of code.(ʥ8- -G squid:S1148"#Use a logger to log this exception.(ԅ8- -Ssquid:EmptyStatementUsageCheck"Remove this empty statement.(8- v squid:S3776"RRefactor this method to reduce its Cognitive Complexity from 17 to the 15 allowed.(8- -f squid:S1126"BReplace this if-then-else statement by a single method invocation.(玒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- Q 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- -wsquid:ModifiersOrderCheck"EReorder the modifiers to comply with the Java Language Specification.(8- -V squid:S1135"2Complete the task associated to this TODO comment.(8- -: squid:S3626"Remove this redundant jump.(݅8- \ No newline at end of file +o squid:S1301"KReplace this "switch" statement by "if" statements to increase readability.(ד8- +Q squid:S1199"-Extract this nested code block into a method.(ڿ8- \ No newline at end of file diff --git a/src/.idea/workspace.xml b/src/.idea/workspace.xml index dcd5dec..1de928d 100644 --- a/src/.idea/workspace.xml +++ b/src/.idea/workspace.xml @@ -7,9 +7,20 @@ + + + + + + + + + + + - - + + - + - - - - - - - - - - - + + - - - + + - + - - - - - - - - - - - + + - + - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -105,8 +120,8 @@ - - + + @@ -122,19 +137,8 @@ - + - - - - - - - - - - - @@ -142,11 +146,8 @@ - + - - - @@ -212,7 +213,6 @@ @@ -235,159 +236,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -547,6 +395,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +