From 873e1f31b5133be5d6331ccb940287a5e58c0160 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 4 Jun 2018 20:52:17 +0200 Subject: Revert "fade in images and avatars" because of strange flickering This reverts commit 6bf3ef887a57d7427d4b4cccac3a1c1adcb14377. --- src/main/java/de/pixart/messenger/ui/adapter/AccountAdapter.java | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/main/java/de/pixart/messenger/ui/adapter/AccountAdapter.java') diff --git a/src/main/java/de/pixart/messenger/ui/adapter/AccountAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/AccountAdapter.java index e2d63716e..37d15f782 100644 --- a/src/main/java/de/pixart/messenger/ui/adapter/AccountAdapter.java +++ b/src/main/java/de/pixart/messenger/ui/adapter/AccountAdapter.java @@ -10,8 +10,6 @@ import android.support.v7.widget.SwitchCompat; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; -import android.view.animation.Animation; -import android.view.animation.AnimationUtils; import android.widget.ArrayAdapter; import android.widget.ImageView; import android.widget.TextView; @@ -124,16 +122,12 @@ public class AccountAdapter extends ArrayAdapter { cancelPotentialWork(account, imageView); imageView.setImageBitmap(bm); imageView.setBackgroundColor(0x00000000); - Animation myFadeInAnimation = AnimationUtils.loadAnimation(activity, R.animator.fade_in); - imageView.startAnimation(myFadeInAnimation); } else { imageView.setBackgroundColor(UIHelper.getColorForName(account.getJid().asBareJid().toString())); imageView.setImageDrawable(null); final BitmapWorkerTask task = new BitmapWorkerTask(imageView); final AsyncDrawable asyncDrawable = new AsyncDrawable(activity.getResources(), null, task); imageView.setImageDrawable(asyncDrawable); - Animation myFadeInAnimation = AnimationUtils.loadAnimation(activity, R.animator.fade_in); - imageView.startAnimation(myFadeInAnimation); try { task.executeOnExecutor(BitmapWorkerTask.THREAD_POOL_EXECUTOR, account); } catch (final RejectedExecutionException ignored) { -- cgit v1.2.3