зеркало из https://github.com/DeGsoft/maui-linux.git
[Android] Java.Lang.RuntimeException: Animators may only be run on Lo… (#4177)
* [Android] Java.Lang.RuntimeException: Animators may only be run on Looper threads on Battery Saver Mode https://github.com/xamarin/Xamarin.Forms/issues/4176 * rewrite code to BeginInvokeOnMainThread - fixes #4176
This commit is contained in:
Родитель
1e116658a1
Коммит
19ac6e7b1f
|
@ -58,7 +58,10 @@ namespace Xamarin.Forms.Platform.Android
|
|||
|
||||
protected override void DisableTimer()
|
||||
{
|
||||
_val?.Cancel();
|
||||
Device.BeginInvokeOnMainThread(new Action(() =>
|
||||
{
|
||||
_val?.Cancel();
|
||||
}));
|
||||
}
|
||||
|
||||
protected override void EnableTimer()
|
||||
|
|
Загрузка…
Ссылка в новой задаче