Add a keep annotation to the ImeSyncDeferringInsetsCallback.AnimationCallback inner class (flutter/engine#23545)

Fixes https://github.com/flutter/flutter/issues/72787
This commit is contained in:
Jason Simmons
2021-01-08 14:54:09 -08:00
committed by GitHub
parent 570f3f023c
commit 58c6293ae2

View File

@@ -101,6 +101,7 @@ class ImeSyncDeferringInsetsCallback {
// WindowInsetsAnimation.Callback was introduced in API level 30. The callback
// subclass is separated into an inner class in order to avoid warnings from
// the Android class loader on older platforms.
@Keep
private class AnimationCallback extends WindowInsetsAnimation.Callback {
AnimationCallback() {
super(WindowInsetsAnimation.Callback.DISPATCH_MODE_CONTINUE_ON_SUBTREE);