Snackbar and other animations stopped working on some Android devices

前端 未结 3 571
情书的邮戳
情书的邮戳 2021-01-31 18:12

I have a very odd issue that I cannot figure out. I was not an issue until recently but I can\'t seem to revert back to prevent it. Also the other odd thing is it works on some

3条回答
  •  不要未来只要你来
    2021-01-31 19:09

    I found the reason why this is happening, but not how to fix yet.

    /**
     * Returns true if we should animate the Snackbar view in/out.
     */
    private boolean shouldAnimate() {
        return !mAccessibilityManager.isEnabled();
    }
    

    That is called by Snackbar class and is false on working devices, and true on devices not working. Does anyone know about this?

    So after i disabled lastpass in my system settings, accessibility the snackbar now animates as it should. That is crazy how that works. Nova launcher has the same affect. I guess any service in accessibility that is enabled will cause the snackbar animation to not work.

提交回复
热议问题