From 58c6293ae28c4618ed46626994857c4561bc245c Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Fri, 8 Jan 2021 14:54:09 -0800 Subject: [PATCH] Add a keep annotation to the ImeSyncDeferringInsetsCallback.AnimationCallback inner class (flutter/engine#23545) Fixes https://github.com/flutter/flutter/issues/72787 --- .../flutter/plugin/editing/ImeSyncDeferringInsetsCallback.java | 1 + 1 file changed, 1 insertion(+) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/plugin/editing/ImeSyncDeferringInsetsCallback.java b/engine/src/flutter/shell/platform/android/io/flutter/plugin/editing/ImeSyncDeferringInsetsCallback.java index a768ec6eb8..1fb2e72036 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/plugin/editing/ImeSyncDeferringInsetsCallback.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/plugin/editing/ImeSyncDeferringInsetsCallback.java @@ -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);