You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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()); }
The text was updated successfully, but these errors were encountered:
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()); }
The text was updated successfully, but these errors were encountered: