Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only animate with system animations enabled #88

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

eichbaum
Copy link
Contributor

@eichbaum eichbaum commented Oct 19, 2023

fixes #77

although this is a MAUI platform issue as documented here dotnet/maui#16476, a fix by the MAUI team seems to be in far future with .NET 8 SR3.

Recommend keeping this quick fix until the issue is solved in MAUI.

Credits to dotnet/maui#16476 (comment) for pointing out on how to check if animations are enabled.

@LuckyDucko LuckyDucko self-assigned this Nov 6, 2023
@LuckyDucko LuckyDucko merged commit 6ab0275 into LuckyDucko:master Nov 30, 2023
@DanielSCBO
Copy link

Hello in some devices i got this error

mono.java.lang.RunnableImplementor.run
RunnableImplementor.java, line 31
Java.Lang.IncompatibleClassChangeError: no static method "Landroid/animation/ValueAnimator;.areAnimatorsEnabled()Z"
Java.Interop.JniEnvironment.StaticMethods.GetStaticMethodID(JniObjectReference , String , String )
Java.Interop.JniType.GetStaticMethod(String , String )
Java.Interop.JniPeerMembers.JniStaticMethods.GetMethodInfo(String , String )
Java.Interop.JniPeerMembers.JniStaticMethods.GetMethodInfo(String )
Java.Interop.JniPeerMembers.JniStaticMethods.InvokeBooleanMethod(String , JniArgumentValue* )
Android.Animation.ValueAnimator.AreAnimatorsEnabled()
Mopups.Animations.AnimationHelper.get_SystemAnimationsEnabled()
Mopups.Services.PopupNavigation.PushAsync(PopupPage page, Boolean animate)
MAUI.Common.MVVM.PopupService.ShowDialogAsync[ServiceInterventionType](String Name, IDialogParameters parameters)
App.ViewModels.MainPage.SelectInterventionType()
App.ViewModels.MainPage.<.ctor>b__38_4()
System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
Android.App.SyncContext.<>c__DisplayClass2_0.<Post>b__0()
Java.Lang.Thread.RunnableImplementor.Run()
Java.Lang.IRunnableInvoker.n_Run(IntPtr jnienv, IntPtr native__this)
Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V(_JniMarshal_PP_V callback, IntPtr jnienv, IntPtr klazz)
java.lang.NoSuchMethodError: no static method "Landroid/animation/ValueAnimator;.areAnimatorsEnabled()Z"
mono.java.lang.RunnableImplementor.n_run(Native Method)
mono.java.lang.RunnableImplementor.run RunnableImplementor.java:31
android.os.Handler.handleCallback Handler.java:836
android.os.Handler.dispatchMessage Handler.java:103
android.os.Looper.loop Looper.java:203
android.app.ActivityThread.main ActivityThread.java:6251
java.lang.reflect.Method.invoke(Native Method)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run ZygoteInit.java:1063
com.android.internal.os.ZygoteInit.main ZygoteInit.java:924

Any hints?

@eichbaum
Copy link
Contributor Author

@LaBoss sorry, my bad. Fixed in #109

@DanielSCBO
Copy link

DanielSCBO commented Feb 21, 2024

thanks for help, tested and fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android: Sample not working when turning on accessibility features on Samsung devices
3 participants