mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2024-12-18 11:39:10 +01:00
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,
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user