confetti
confetti copied to clipboard
does not work on honor/huawei
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()); }
I was having the same problem, even the CommonConfetti
wasn’t working.
Try using a Handler().postDelayed()
with 500/1000 ms
, it helped me.