Skip to content
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

Are there any plans to replace unsupported APIs (KEYCODE_BACK and #onBackPressed) to support Android's new Predictive back gesture? #909

Open
1 task done
dzuluaga opened this issue Aug 30, 2022 · 0 comments

Comments

@dzuluaga
Copy link

Version

Add the version of the litho packages you use. You can paste the dependency
section of the gradle file if you have one.

Issues and Steps to Reproduce

  1. EnableOnBackInvokedCallback=true in the AndroidManifest.xml of any given app
  2. TargetSdkVersion 33
  3. Enable Predictive Animations developer option
  4. Use the back gesture in an app that uses unsupported APIS:
    • OnBackPressed ExamplesLithoLabActivity, ViewPagerLifecycleActivity
  5. Either the codelab or app based on ViewPagerLifecycle Activity might crash due to usage of unsupported APIs.

Expected Behavior

The back gesture should work as intended. The predictive back animation when swiping in left or right to go back-to-home should display in Android 13.

Link to Code

The new APIs, docs, and samples are available from the above link. Please reply if you need more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant