From 9a086729eaee005ce628d21d17d167e9d035945a Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sun, 13 Mar 2016 11:13:47 +0800 Subject: [PATCH] fixed account key while login --- .../mariotaku/twidere/activity/support/SignInActivity.java | 2 +- .../twidere/loader/support/TwitterAPIStatusesLoader.java | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/twidere/src/main/java/org/mariotaku/twidere/activity/support/SignInActivity.java b/twidere/src/main/java/org/mariotaku/twidere/activity/support/SignInActivity.java index 1fff7632f..9844b4d60 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/activity/support/SignInActivity.java +++ b/twidere/src/main/java/org/mariotaku/twidere/activity/support/SignInActivity.java @@ -1092,7 +1092,7 @@ public class SignInActivity extends BaseAppCompatActivity implements OnClickList } } - values.put(Accounts.ACCOUNT_KEY, user.getId()); + values.put(Accounts.ACCOUNT_KEY, UserKeyUtils.fromUser(user).toString()); values.put(Accounts.SCREEN_NAME, user.getScreenName()); values.put(Accounts.NAME, user.getName()); values.put(Accounts.PROFILE_IMAGE_URL, TwitterContentUtils.getProfileImageUrl(user)); diff --git a/twidere/src/main/java/org/mariotaku/twidere/loader/support/TwitterAPIStatusesLoader.java b/twidere/src/main/java/org/mariotaku/twidere/loader/support/TwitterAPIStatusesLoader.java index 3f02509df..93afb16b3 100644 --- a/twidere/src/main/java/org/mariotaku/twidere/loader/support/TwitterAPIStatusesLoader.java +++ b/twidere/src/main/java/org/mariotaku/twidere/loader/support/TwitterAPIStatusesLoader.java @@ -75,10 +75,11 @@ public abstract class TwitterAPIStatusesLoader extends ParcelableStatusesLoader private final boolean mLoadingMore; // Statuses sorted descending by default private Comparator mComparator = ParcelableStatus.REVERSE_COMPARATOR; + @Inject - DiskCache mFileCache; + protected DiskCache mFileCache; @Inject - SharedPreferencesWrapper mPreferences; + protected SharedPreferencesWrapper mPreferences; public TwitterAPIStatusesLoader(@NonNull final Context context, @Nullable final UserKey accountKey,