-
Notifications
You must be signed in to change notification settings - Fork 625
Add shake for feedback to test app #4138
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
Conversation
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected Products
Test Logs |
335ac81
to
59d4b55
Compare
59d4b55
to
fcc4fe8
Compare
import android.app.Application | ||
|
||
class AppDistroTestApplication : Application() { | ||
override fun onCreate() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR, but should we move more initialization code from MainActiviry.onCreate()
to here?
Also, I'm curious: Would this also work if we added it to MainActivity.onCreate()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to this PR, but should we move more initialization code from MainActiviry.onCreate() to here?
Yes I think so. I'm interested in trying to make the screenshot trigger work this way: you enable it in the Application class, and then it listens to lifecycle callbacks and attached to each Activity as it starts.
Also, I'm curious: Would this also work if we added it to MainActivity.onCreate()?
If we just picked this up and moved it there, then you run the risk of calling enable()
multiple times if there are other activities in the app. I believe that would register multiple lifecycle callbacks on the Application. We could prevent that from happening by only allowing it to be enabled once. But I think it makes sense to initialize this in the Application since it enables application-wide functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, makes sense. Let's explore moving the initialization code here in a separate PR once this one is merged.
Also, I think we should restore the button to launch the second activity so we can test those scenarios. Maybe you can do that when adding the radio buttons.
No description provided.