From bfd46b4614f4c3b4cb7273ae895b92140191f280 Mon Sep 17 00:00:00 2001 From: ziji Wu <2193177243@qq.com> Date: Thu, 12 Sep 2019 09:27:10 +0800 Subject: [PATCH] ziji wu comment --- .../executionHistory/executionHistory.lock | Bin 17 -> 17 bytes src/.gradle/5.4.1/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../buildOutputCleanup.lock | Bin 17 -> 17 bytes src/.idea/workspace.xml | 278 +++++++++--------- .../java/net/micode/notes/data/Contact.java | 1 - .../java/net/micode/notes/data/Notes.java | 15 +- 6 files changed, 154 insertions(+), 140 deletions(-) diff --git a/src/.gradle/5.4.1/executionHistory/executionHistory.lock b/src/.gradle/5.4.1/executionHistory/executionHistory.lock index c8fcbe3ddd7caee67763c80352ce9f091c5cf481..41eb9fd94754d5f2d2b127fbe52595680a7ab937 100644 GIT binary patch literal 17 UcmZRMdf@e>LT%?K1_+1*06F^w4gdfE literal 17 UcmZRMdf@e>LT%?K1_%fQ06Fso1^@s6 diff --git a/src/.gradle/5.4.1/fileHashes/fileHashes.lock b/src/.gradle/5.4.1/fileHashes/fileHashes.lock index 917149f565deb96a0c1e8f3d42839dba084bb61e..cd85a9b47f0b896b589b1dfd6e30ba41302259e5 100644 GIT binary patch literal 17 VcmZR+pgrSz(_gE93}C>t6aYbX1?&I- literal 17 VcmZR+pgrSz(_gE93}C>t5CB1P1?T_( diff --git a/src/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/src/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 1eb464c481e069ef820310a26356b5cdb6765dc9..9d3f598a948b2d6191160a6e027b76660f13dd68 100644 GIT binary patch literal 17 UcmZRM`Mf=SLigq@1_(F~06Vq?Z~y=R literal 17 UcmZRM`Mf=SLigq@1_(F|06Ve;YybcN diff --git a/src/.idea/workspace.xml b/src/.idea/workspace.xml index 9122742..65025ac 100644 --- a/src/.idea/workspace.xml +++ b/src/.idea/workspace.xml @@ -6,25 +6,13 @@ - - + - - - - - - - - - - - - - + + @@ -149,7 +143,6 @@ - @@ -243,12 +236,13 @@ + - + @@ -395,9 +389,10 @@ + - + @@ -405,24 +400,24 @@ - - + - + - + + @@ -485,25 +480,6 @@ - - - - - - - - - - - - - - - - - - - @@ -511,13 +487,6 @@ - - - - - - - @@ -525,36 +494,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -565,25 +507,25 @@ - - + - - - - + - - + + + + + + - + @@ -599,8 +541,68 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/app/src/main/java/net/micode/notes/data/Contact.java b/src/app/src/main/java/net/micode/notes/data/Contact.java index ca2ad5b..ec34a3f 100644 --- a/src/app/src/main/java/net/micode/notes/data/Contact.java +++ b/src/app/src/main/java/net/micode/notes/data/Contact.java @@ -52,7 +52,6 @@ public class Contact { if(sContactCache.containsKey(phoneNumber)) { return sContactCache.get(phoneNumber); } -//todo:不符合但入口但出口原则 String selection = CALLER_ID_SELECTION.replace("+", PhoneNumberUtils.toCallerIDMinMatch(phoneNumber)); diff --git a/src/app/src/main/java/net/micode/notes/data/Notes.java b/src/app/src/main/java/net/micode/notes/data/Notes.java index f240604..6f9a420 100644 --- a/src/app/src/main/java/net/micode/notes/data/Notes.java +++ b/src/app/src/main/java/net/micode/notes/data/Notes.java @@ -20,6 +20,7 @@ import android.net.Uri; public class Notes { public static final String AUTHORITY = "micode_notes"; public static final String TAG = "Notes"; + //todo:参数含义 public static final int TYPE_NOTE = 0; public static final int TYPE_FOLDER = 1; public static final int TYPE_SYSTEM = 2; @@ -54,13 +55,19 @@ public class Notes { /** * Uri to query all notes and folders */ + //获取便签存放位置的URI,用于查找notes和folders public static final Uri CONTENT_NOTE_URI = Uri.parse("content://" + AUTHORITY + "/note"); /** * Uri to query data */ + //获取数据存放位置URI,用于查找数据 public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data"); + + /** + *该类声明了一系列关于便签的final变量,没有定义方法 + */ public interface NoteColumns { /** * The unique ID for a row @@ -167,6 +174,9 @@ public class Notes { public static final String VERSION = "version"; } + /* + * 该类声明了一系列关于数据的final变量,没有定义方法 + * */ public interface DataColumns { /** * The unique ID for a row @@ -241,12 +251,15 @@ public class Notes { public static final String DATA5 = "data5"; } + /* + * 该类是对接口DataColumns的实现,没有声明方法 + * */ public static final class TextNote implements DataColumns { /** * Mode to indicate the text in check list mode or not *

Type: Integer 1:check list mode 0: normal mode

*/ - public static final String MODE = DATA1; + public static final String MODE = DATA1;//DATA1-DataColumns中声明 public static final int MODE_CHECK_LIST = 1;