stop buggy gif animation for now
This commit is contained in:
parent
51cf1a4ec5
commit
4d58ecb4ea
9 changed files with 15 additions and 1 deletions
|
@ -333,7 +333,11 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
|
||||||
DrawerImageLoader.init(new AbstractDrawerImageLoader() {
|
DrawerImageLoader.init(new AbstractDrawerImageLoader() {
|
||||||
@Override
|
@Override
|
||||||
public void set(ImageView imageView, Uri uri, Drawable placeholder, String tag) {
|
public void set(ImageView imageView, Uri uri, Drawable placeholder, String tag) {
|
||||||
Glide.with(MainActivity.this).load(uri).placeholder(placeholder).into(imageView);
|
Glide.with(MainActivity.this)
|
||||||
|
.asBitmap()
|
||||||
|
.load(uri)
|
||||||
|
.placeholder(placeholder)
|
||||||
|
.into(imageView);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -530,6 +534,7 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
|
||||||
ImageView background = headerResult.getHeaderBackgroundView();
|
ImageView background = headerResult.getHeaderBackgroundView();
|
||||||
|
|
||||||
Glide.with(MainActivity.this)
|
Glide.with(MainActivity.this)
|
||||||
|
.asBitmap()
|
||||||
.load(me.getHeader())
|
.load(me.getHeader())
|
||||||
.into(background);
|
.into(background);
|
||||||
|
|
||||||
|
|
|
@ -47,6 +47,7 @@ class AccountSelectionAdapter(context: Context): ArrayAdapter<AccountEntity>(con
|
||||||
displayName.text = CustomEmojiHelper.emojifyString(account.displayName, account.emojis, displayName)
|
displayName.text = CustomEmojiHelper.emojifyString(account.displayName, account.emojis, displayName)
|
||||||
if (!TextUtils.isEmpty(account.profilePictureUrl)) {
|
if (!TextUtils.isEmpty(account.profilePictureUrl)) {
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.profilePictureUrl)
|
.load(account.profilePictureUrl)
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar)
|
.into(avatar)
|
||||||
|
|
|
@ -39,6 +39,7 @@ class AccountViewHolder extends RecyclerView.ViewHolder {
|
||||||
CharSequence emojifiedName = CustomEmojiHelper.emojifyString(account.getName(), account.getEmojis(), displayName);
|
CharSequence emojifiedName = CustomEmojiHelper.emojifyString(account.getName(), account.getEmojis(), displayName);
|
||||||
displayName.setText(emojifiedName);
|
displayName.setText(emojifiedName);
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.getAvatar())
|
.load(account.getAvatar())
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar);
|
.into(avatar);
|
||||||
|
|
|
@ -86,6 +86,7 @@ public class BlocksAdapter extends AccountAdapter {
|
||||||
String formattedUsername = String.format(format, account.getUsername());
|
String formattedUsername = String.format(format, account.getUsername());
|
||||||
username.setText(formattedUsername);
|
username.setText(formattedUsername);
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.getAvatar())
|
.load(account.getAvatar())
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar);
|
.into(avatar);
|
||||||
|
|
|
@ -148,6 +148,7 @@ public class ComposeAutoCompleteAdapter extends BaseAdapter
|
||||||
accountViewHolder.displayName.setText(emojifiedName);
|
accountViewHolder.displayName.setText(emojifiedName);
|
||||||
if (!account.getAvatar().isEmpty()) {
|
if (!account.getAvatar().isEmpty()) {
|
||||||
Glide.with(accountViewHolder.avatar)
|
Glide.with(accountViewHolder.avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.getAvatar())
|
.load(account.getAvatar())
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(accountViewHolder.avatar);
|
.into(accountViewHolder.avatar);
|
||||||
|
|
|
@ -88,6 +88,7 @@ public class FollowRequestsAdapter extends AccountAdapter {
|
||||||
String formattedUsername = String.format(format, account.getUsername());
|
String formattedUsername = String.format(format, account.getUsername());
|
||||||
username.setText(formattedUsername);
|
username.setText(formattedUsername);
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.getAvatar())
|
.load(account.getAvatar())
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar);
|
.into(avatar);
|
||||||
|
|
|
@ -72,6 +72,7 @@ public class MutesAdapter extends AccountAdapter {
|
||||||
String formattedUsername = String.format(format, account.getUsername());
|
String formattedUsername = String.format(format, account.getUsername());
|
||||||
username.setText(formattedUsername);
|
username.setText(formattedUsername);
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.getAvatar())
|
.load(account.getAvatar())
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar);
|
.into(avatar);
|
||||||
|
|
|
@ -317,6 +317,7 @@ public class NotificationsAdapter extends RecyclerView.Adapter {
|
||||||
avatar.setImageResource(R.drawable.avatar_default);
|
avatar.setImageResource(R.drawable.avatar_default);
|
||||||
} else {
|
} else {
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(account.getAvatar())
|
.load(account.getAvatar())
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar);
|
.into(avatar);
|
||||||
|
|
|
@ -241,6 +241,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||||
avatarInset.setVisibility(View.VISIBLE);
|
avatarInset.setVisibility(View.VISIBLE);
|
||||||
avatarInset.setBackground(null);
|
avatarInset.setBackground(null);
|
||||||
Glide.with(avatarInset)
|
Glide.with(avatarInset)
|
||||||
|
.asBitmap()
|
||||||
.load(rebloggedUrl)
|
.load(rebloggedUrl)
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatarInset);
|
.into(avatarInset);
|
||||||
|
@ -250,6 +251,7 @@ public abstract class StatusBaseViewHolder extends RecyclerView.ViewHolder {
|
||||||
avatar.setImageResource(R.drawable.avatar_default);
|
avatar.setImageResource(R.drawable.avatar_default);
|
||||||
} else {
|
} else {
|
||||||
Glide.with(avatar)
|
Glide.with(avatar)
|
||||||
|
.asBitmap()
|
||||||
.load(url)
|
.load(url)
|
||||||
.placeholder(R.drawable.avatar_default)
|
.placeholder(R.drawable.avatar_default)
|
||||||
.into(avatar);
|
.into(avatar);
|
||||||
|
|
Loading…
Reference in a new issue