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

CameraXBasic - Buttons onClick events are not triggered the very first time the app is launched #305

Open
AlonsoPaulino opened this issue Sep 21, 2020 · 2 comments
Assignees

Comments

@AlonsoPaulino
Copy link

AlonsoPaulino commented Sep 21, 2020

Long story short: You need to click anywhere in the screen at least once, prior to have any click listener event to work.

Steps to reproduce:

  • Start the Camera Activity from the scratch.
  • Make sure the first thing you click within that screen is any of the control buttons (switch/capture/gallery).

Actual Result:

  • Nothing happens, it is just like if you haven't even clicked anything.

Expected Result:

  • The events should be triggered.

Some additional details:

  • I tried commenting out the PreviewView and launch the same activity. The issue is not happening when I do that, so that might point out that it is something related to PreviewView.
  • It happens for absolutely any kind of button: (Button/MaterialButton/AppCompatButton and so on). I haven't tried with any other kind of views, but I suspect the result would end up the same.
  • Once you have clicked one time anywhere, all the events start working as expected.

Affected Versions:

  • CameraX 1.0.0-beta09/1.0.0-beta08
  • CameraX Extensions 1.0.0-alpha16/1.0.0-alpha15
@owahltinez
Copy link
Contributor

Thanks for reporting this! Are you seeing it in physical devices, or is this observed in an emulator?

@AlonsoPaulino
Copy link
Author

@owahltinez I observed this in emulators, haven't tested out in physical devices, but I can give it a try and specify whether it could be reproduced that way or not.

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

2 participants