diff --git a/doc/646b6e4791192bb5736c95aad918dc0.png b/doc/646b6e4791192bb5736c95aad918dc0.png new file mode 100644 index 0000000..88e1589 Binary files /dev/null and b/doc/646b6e4791192bb5736c95aad918dc0.png differ diff --git a/doc/f805c8bf94dba786aa454f432118a29.png b/doc/f805c8bf94dba786aa454f432118a29.png new file mode 100644 index 0000000..1d3431b Binary files /dev/null and b/doc/f805c8bf94dba786aa454f432118a29.png differ diff --git a/doc/小米便签开源代码的泛读报告.docx b/doc/小米便签开源代码的泛读报告.docx new file mode 100644 index 0000000..6330602 Binary files /dev/null and b/doc/小米便签开源代码的泛读报告.docx differ diff --git a/doc/小米便签质量分析报告.docx b/doc/小米便签质量分析报告.docx new file mode 100644 index 0000000..fe80546 Binary files /dev/null and b/doc/小米便签质量分析报告.docx differ diff --git a/src/net/micode/notes/data/Notes.java b/src/net/micode/notes/data/Notes.java index f2cf06d..71db248 100644 --- a/src/net/micode/notes/data/Notes.java +++ b/src/net/micode/notes/data/Notes.java @@ -15,7 +15,7 @@ */ package net.micode.notes.data; - +// Notes 类是整个笔记系统的核心数据结构定义类 import android.net.Uri; public class Notes { /** diff --git a/src/net/micode/notes/gtask/remote/GTaskClient.java b/src/net/micode/notes/gtask/remote/GTaskClient.java index 76ecdbe..6640e34 100644 --- a/src/net/micode/notes/gtask/remote/GTaskClient.java +++ b/src/net/micode/notes/gtask/remote/GTaskClient.java @@ -117,7 +117,7 @@ public class GTaskClient { } return mInstance; } - +// 登录 Google Tasks 服务,检查是否需要重新登录或切换账户,尝试通过 Google 账户授权 Token 登录 public boolean login(Activity activity) { // we suppose that the cookie would expire after 5 minutes // then we need to re-login @@ -172,7 +172,7 @@ public class GTaskClient { mLoggedin = true; return true; } - +// 获取当前设备上配置的 Google 账户及其认证 Token,若需要则使旧 Token 失效并重新获取 private String loginGoogleAccount(Activity activity, boolean invalidateToken) { String authToken; AccountManager accountManager = AccountManager.get(activity);