Repository: flutter
Issue: [Android]WidgetsBindingObserver.didChangeAppLifecycleState is triggered by selecting an Autofill option
Labels: a: text input,platform-android,framework,engine,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-design,triaged-design

## Issue
When I select an autofill option from the keyboard in Android (see screenshot), `WidgetsBindingObserver.didChangeAppLifecycleState` is triggered. The application state shouldn't change because an input has been inserted into a TextField.

<details>
  <summary>Screenshot</summary>
<img width="369" alt="Android-keyboard-candidate" src="https://user-images.githubusercontent.com/1706728/156337401-2b8389f4-0262-468f-9769-2f4695dab52d.png">
</details>

<details>
  <summary>Code sample</summary>

- [Download the sample app](https://github.com/flutter/flutter/files/8168727/textfield_bug.zip). This is just a `flutter create my_app` listening to WidgetsBindingObserver.
- Run with a Android device/emulator with Autofill activated (on Android: Settings -> Password & accounts -> Autofill service)
- Tap on the TextField and select a candidate (see 1st screenshot)
- `WidgetsBindingObserver.didChangeAppLifecycleState()` is triggered (a print is done on the console in `_MyHomePageState` class)

</details>


<details>
  <summary>flutter doctor -v</summary>

```
[✓] Flutter (Channel stable, 2.10.2, on macOS 12.2.1 21D62 darwin-arm, locale fr-FR)
    • Flutter version 2.10.2 at /Users/erwan/Documents/Tools/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 097d3313d8 (11 days ago), 2022-02-18 19:33:08 -0600
    • Engine revision a83ed0e5e3
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/erwan/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • 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 11.0.11+0-b60-7772763)

[✓] VS Code (version 1.64.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.36.0

[✓] Connected device (2 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 32) (emulator)
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 99.0.4844.51

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!
```
</details>