From 6ead832a819ef0910432fb2ef80a099985b1c588 Mon Sep 17 00:00:00 2001 From: Aleksandr Denisov Date: Thu, 1 Dec 2022 22:24:04 +0100 Subject: [PATCH] Remove glitches when scrolling on old Android TV devices (flutter/engine#37493) --- .../src/flutter/shell/platform/android/android_egl_surface.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/shell/platform/android/android_egl_surface.cc b/engine/src/flutter/shell/platform/android/android_egl_surface.cc index e610f505fe..ed03ced47d 100644 --- a/engine/src/flutter/shell/platform/android/android_egl_surface.cc +++ b/engine/src/flutter/shell/platform/android/android_egl_surface.cc @@ -72,8 +72,8 @@ static bool HasExtension(const char* extensions, const char* name) { class AndroidEGLSurfaceDamage { public: void init(EGLDisplay display, EGLContext context) { - if (GetAPILevel() < 28) { - // Disable partial repaint for devices older than Android 9. There + if (GetAPILevel() < 29) { + // Disable partial repaint for devices older than Android 10. There // are old devices that have extensions below available but the // implementation causes glitches (i.e. Xperia Z3 with Android 6). partial_redraw_supported_ = false;