fixed crashes caused by dummy status adapter

This commit is contained in:
Mariotaku Lee 2015-04-06 13:58:25 +08:00
parent ab3b4fc171
commit f146c2c246
1 changed files with 3 additions and 2 deletions

View File

@ -526,9 +526,10 @@ public class StatusViewHolder extends RecyclerView.ViewHolder implements Constan
final SharedPreferencesWrapper preferences = SharedPreferencesWrapper.getInstance(context,
SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
loader = TwidereApplication.getInstance(context).getMediaLoaderWrapper();
final TwidereApplication app = TwidereApplication.getInstance(context);
loader = app.getMediaLoaderWrapper();
handler = new ImageLoadingHandler(R.id.media_preview_progress);
twitter = getTwitterWrapper();
twitter = app.getTwitterWrapper();
linkify = new TwidereLinkify(null);
profileImageStyle = Utils.getProfileImageStyle(preferences.getString(KEY_PROFILE_IMAGE_STYLE, null));