New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No ticking after resuming from non-FlutterActivity #15777
Comments
The attached activity waits for onPostResume() to return the result, which makes the counters increment synchronously. |
This is possibly related to #11906 |
This should also be fixed by a combination of flutter/engine#4848 and #16261 |
@jonahwilliams @najeira I'm guessing the issue I've raised #16636 is a dupe of this? |
@MaikuB that does sound similar to the issue that I fixed - the changes have been rolled into master so you should be able to confirm. Otherwise I can look at your issue as a follow up. |
@jonahwilliams brilliant, confirmed it's fixed on master so i'll close the issue i've raised. thanks |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
When passing a result from Android back to Flutter through MethodChannel.Result directly from a FlutterActivity::onActivityResult without waiting for the call to FlutterActivity::onResume(), some things go wrong. For example, showing a snack bar or starting an animation doesn't work.
I've attached a repro. The app is supposed to increment both counters at the same rate, but the second one only increments at half the rate.
Logs
I tapped the FAB twice and the screen now says (2 forward / 1 completed).
Flutter Doctor
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Christian\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Android Studio (version 3.0)
• Android Studio at C:\Program Files\Android\Android Studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[√] Connected devices (1 available)
• Pixel 2 XL • 710KPYR0349426 • android-arm64 • Android 8.1.0 (API 27)
• No issues found!
animation.zip
The text was updated successfully, but these errors were encountered: