confetti icon indicating copy to clipboard operation
confetti copied to clipboard

does not work on honor/huawei

Open ilyaklyukin opened this issue 5 years ago • 1 comments

config: new ConfettiManager(this, this, source, container) .setEmissionDuration(ConfettiManager.INFINITE_DURATION) .setTTL(CONFETTI_LIFE_DURATION_MS) .setVelocityX(0, velocitySlow) .setVelocityY(velocityNormal, velocitySlow) .setRotationalVelocity(ROTATIONAL_VELOCITY, ROTATIONAL_DEVIATION) .setEmissionRate(CONFETTI_PER_SECOND); works on samsung/asus/etc. but shows nothing on honor 8x (android 9, JSN-L22) and huawei p20 pro (android 9, CLT-L29).

I've got similar issue with Huawei devices - there is not working rotation animation. For this case I have to use such workaround: DeviceHelper.isHuawei() ? ObjectAnimator.ofFloat(guestAvatarImage, View.ALPHA, 1, 0) : ObjectAnimator.ofFloat(guestAvatarImage, View.ROTATION_Y, 0, 90);

public static boolean isHuawei() { return "HUAWEI".equals(Build.MANUFACTURER.toUpperCase()); }

ilyaklyukin avatar Apr 23 '19 15:04 ilyaklyukin

I was having the same problem, even the CommonConfetti wasn’t working. Try using a Handler().postDelayed() with 500/1000 ms, it helped me.

ItzNotABug avatar Jul 31 '19 07:07 ItzNotABug