Repository: flutter
Issue: Keyboard Resets on emoji input on Android OPPO Find X5 Pro
Labels: a: text input,e: device-specific,platform-android,P2,team-android,triaged-android

### Steps to reproduce

1. Create a simple app with TextField
2. Run app on OPPO Find X5 Pro
3. When inputting an emoji, observe how keyboard resets back annyoingly from emoji selection to alphabetical
4. The problem can be reproduced even with a stateful widget and adding a textediting controller

### Expected results

 The keyboard should not reset back to normal state when inputting an emoji
 


### Actual results

The keyboard resets back on every emoji selection (even when deleting the emoji from the delete-icon in Emoji Selection Tab)

Furthermore, the blob that appears when selecting a text (long-pressing the textfield), that can be seen in the videos, is under the keyboard

### Code sample

<details open><summary>Code sample</summary>

```dart
import 'package:flutter/material.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: KeyboardTest(),
    );
  }
}

class KeyboardTest extends StatelessWidget {
  const KeyboardTest({
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: Column(mainAxisAlignment: MainAxisAlignment.center, children: [
          Padding(
            padding: EdgeInsets.symmetric(horizontal: 16),
            child: TextField(),
          ),
        ]),
      ),
    );
  }
}

```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://github.com/user-attachments/assets/fad3c593-b931-46d0-92d3-de0cb912451b


https://github.com/user-attachments/assets/a75dd685-295e-43db-8d34-fa6f4d952993



[Upload media here]

</details>


### Logs

<details open><summary>Logs</summary>

```console
<details open><summary>Doctor output</summary>

```console
I/ImeTracker( 2568): com.example.keyboard_emoji_input:765765a4: onCancelled at PHASE_CLIENT_ANIMATION_CANCEL

I/ImeTracker( 2568): com.example.app:a396bcb5: onCancelled at PHASE_CLIENT_APPLY_ANIMATION
3
W/VRI[MainActivity]( 2568): handleResized abandoned!
I/ImeTracker( 2568): com.example.app:8e6a31a4: onRequestShow at ORIGIN_CLIENT_SHOW_SOFT_INPUT reason SHOW_SOFT_INPUT
```

</details>

```

</details>


### Flutter Doctor output

[✓] Flutter (Channel stable, 3.24.1, on macOS 14.5 23F79 darwin-arm64, locale en-RO)
    • Flutter version 3.24.1 on channel stable at /Users/mihai/Programming/sdks/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 5874a72aa4 (3 weeks ago), 2024-08-20 16:46:00 -0500
    • Engine revision c9b9d5780d
    • Dart version 3.5.1
    • DevTools version 2.37.2

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at /Users/mihai/Library/Android/sdk
    • Platform android-34, build-tools 33.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15F31d
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.92.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.96.0

[✓] Connected device (4 available)            
    • iPhone (mobile)                 • 00008110-001229321EC1801E • ios            • iOS 17.5.1 21F90
    • macOS (desktop)                 • macos                     • darwin-arm64   • macOS 14.5 23F79
      darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad     • darwin         • macOS 14.5 23F79
      darwin-arm64
    • Chrome (web)                    • chrome                    • web-javascript • Google Chrome
      128.0.6613.120

[✓] Network resources
    • All expected network resources are available.

• No issues found!