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

AutofillFramework sample's SettingsActivity FindViewById always returns null #334

Open
ROODAY opened this issue Jun 10, 2022 · 0 comments
Open

Comments

@ROODAY
Copy link

ROODAY commented Jun 10, 2022

Sample link

AutofillFramework

Issue description

After setting the Multi-Dataset Autofill Service as the autofill service for my emulator, I tried clicking it's setting to populate some autofill data, and I run into an error on this line. For some reason, FindViewById is returning null. I have absolutely no clue why it's doing that, as no other activity has this issue. The only changes I made to the code were changing the min and target API versions to 30 as per VS 2022 warnings (I tried making a Pixel 5 emulator on API 27, but that ran into a host of it's own issues, including this one again).

Steps to reproduce the issue

  1. Clone down the sample.
  2. Open with VS 2022.
  3. Fix warnings about targeting too low an API version.
  4. Run the app, and set it as the Autofill Service in settings.
  5. Try to click the gear icon next to the service in the Autofill Settings and get the error.

What's the expected result?

  • Be able to view the SettingsActivity page.

What's the actual result?

  • App crashes due to FindViewById returning null.
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