Anki-android: Disable button animation

Created on 17 Sep 2020  Â·  10Comments  Â·  Source: ankidroid/Anki-Android

Feature request

In Ankidroid 2.13 the buttons animate which slows down the flow. I prefer the practice session to be snappy and the animations are a distraction. I'd like this feature to be switched off.

Reproduction Steps


    1. 2.
  1. 3.
Expected Result
Actual Result
Debug info

Refer to the support page if you are unsure where to get the "debug info".

Research

Enter an [x] character to confirm the points below:

  • [ ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid
  • [ ] I have checked the manual and the FAQ and could not find a solution to my issue
  • [ ] I have searched for similar existing issues here and on the user forum
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)
2.13.x Accepted Help Wanted

All 10 comments

@unusualstranger Is there a good way to go about this (disabling the ripple effect)? My UI knowledge is limited.

Potential thoughts:

  • Might be a way to simulate changing the animation duration developer option per app
  • Custom button View class
  • Disable the animation programatically in the Viewer

@tilusnet

For now, you can disable this animation temporarily in the Android Developer Settings

  • Go to Settings - About Phone
  • Tap the build button 7 times
  • Developer Options - "Display".

You could also install a parallel 2.12.1 APK alongside 2.13.0 while we get this resolved: https://github.com/ankidroid/Anki-Android/releases/download/v2.12.1/AnkiDroid-2.12.1.parallel.A.apk

Thanks for the report,

David

@unusualstranger Is there a good way to go about this (disabling the ripple effect)? My UI knowledge is limited.

Potential thoughts:

  • Might be a way to simulate changing the animation duration developer option per app
  • Custom button View class
  • Disable the animation programatically in the Viewer

Sorry for late response, I'm fairly sure there should be a way to get resources from custom SDK folder though my Android UI knowledge is more limited than yours. Another way would be changing names for old background resources and new ripple background resources to be able to change them pro grammatically. Fade animation can be disabled in code. I can get onto this issue

@david-allison-1 should I use the existing Safe Display option or make a new one? (sorry for asking stupid questions)

@unusualstranger Use 'Safe Display' (or AnkiActivity.animationEnabled - they do the same thing). Thanks so much for the help on this one

I've went through all project files with Find tool and I don't see any mention of eInkDisplay preference key elsewhere, may that be a bug or it gets set outside of AnkiDroid? So I think I'm going with safeDisplay for now

Thanks guys for looking into this.

Also I may say something utterly obvious, but the previous version worked just fine for me.

I've went through all project files with Find tool and I don't see any mention of eInkDisplay preference key elsewhere, may that be a bug or it gets set outside of AnkiDroid? So I think I'm going with safeDisplay for now

I've fixed that in the latest version of master, animationEnabled() now uses safeDisplay. Ref: #7092

I've fixed that in the latest version of master, animationEnabled() now uses safeDisplay. Ref: #7092

I must have not pulled changes from upstream properly, sorry! Looks like telling Android Studio to pull from upstream wasn't enough…

Good job, thanks for the prompt update in 2.13.1! :ok_hand:

Was this page helpful?
0 / 5 - 0 ratings