报告和截图

ZhengLiJie_branch
zlj 3 months ago
parent 120dc034e5
commit d57631c49e

Binary file not shown.

After

Width:  |  Height:  |  Size: 243 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

@ -15,7 +15,7 @@
*/ */
package net.micode.notes.data; package net.micode.notes.data;
// Notes 类是整个笔记系统的核心数据结构定义类
import android.net.Uri; import android.net.Uri;
public class Notes { public class Notes {
/** /**

@ -117,7 +117,7 @@ public class GTaskClient {
} }
return mInstance; return mInstance;
} }
// 登录 Google Tasks 服务,检查是否需要重新登录或切换账户,尝试通过 Google 账户授权 Token 登录
public boolean login(Activity activity) { public boolean login(Activity activity) {
// we suppose that the cookie would expire after 5 minutes // we suppose that the cookie would expire after 5 minutes
// then we need to re-login // then we need to re-login
@ -172,7 +172,7 @@ public class GTaskClient {
mLoggedin = true; mLoggedin = true;
return true; return true;
} }
// 获取当前设备上配置的 Google 账户及其认证 Token若需要则使旧 Token 失效并重新获取
private String loginGoogleAccount(Activity activity, boolean invalidateToken) { private String loginGoogleAccount(Activity activity, boolean invalidateToken) {
String authToken; String authToken;
AccountManager accountManager = AccountManager.get(activity); AccountManager accountManager = AccountManager.get(activity);

Loading…
Cancel
Save