fixed crashes caused by dummy status adapter
This commit is contained in:
parent
ab3b4fc171
commit
f146c2c246
|
@ -526,9 +526,10 @@ public class StatusViewHolder extends RecyclerView.ViewHolder implements Constan
|
||||||
|
|
||||||
final SharedPreferencesWrapper preferences = SharedPreferencesWrapper.getInstance(context,
|
final SharedPreferencesWrapper preferences = SharedPreferencesWrapper.getInstance(context,
|
||||||
SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
|
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);
|
handler = new ImageLoadingHandler(R.id.media_preview_progress);
|
||||||
twitter = getTwitterWrapper();
|
twitter = app.getTwitterWrapper();
|
||||||
linkify = new TwidereLinkify(null);
|
linkify = new TwidereLinkify(null);
|
||||||
|
|
||||||
profileImageStyle = Utils.getProfileImageStyle(preferences.getString(KEY_PROFILE_IMAGE_STYLE, null));
|
profileImageStyle = Utils.getProfileImageStyle(preferences.getString(KEY_PROFILE_IMAGE_STYLE, null));
|
||||||
|
|
Loading…
Reference in New Issue