-
Notifications
You must be signed in to change notification settings - Fork 242
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
Fixes intent handling and adds sample app, test for it. #238
Conversation
Test is ugly in one respect: it creates a new instance of the activity. Worth fixing? I suppose I could make the activity single instance, but that's not really required. |
Ideally we'd test both getting an intent to an existing activity and creating a new activity with an intent, since those code paths are so damn different. Maybe I should make two activities with different manifests. |
~ limitations under the License. | ||
--> | ||
|
||
<flow.sample.intents.HelloView |
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.
Oops, copy pasta
69841c4
to
9efc93e
Compare
@@ -0,0 +1,36 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<!-- | |||
~ Copyright 2016 Square Inc. |
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.
2017
@@ -0,0 +1,19 @@ | |||
package flow.sample.intents; |
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.
Missing copyright
@@ -0,0 +1,42 @@ | |||
package flow.sample.basic; |
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.
@loganj None of the test classes or gradle files have copyright blocks. Is that intentional?
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.
Yeah.
9efc93e
to
4e0f3b9
Compare
Cool, if I make the activity singleInstance your built in intent handling breaks. Investigating. |
4e0f3b9
to
4dba440
Compare
Fixed, moar tests. |
LG! |
#180