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

Fix Intent bug between ChecklistActivity <-> ChecklistItemActivity #53

Merged
merged 2 commits into from
Aug 20, 2016

Conversation

zhiqiao
Copy link
Contributor

@zhiqiao zhiqiao commented Aug 19, 2016

I think the issue was a race condition between when the onClick listener was added
and when the getRef() call was completed w.r.t. to position of the Adapater.

…ity.

I think the issue was a race condition between when the onClick listener was added
and when the getRef() call was completed w.r.t. to position of the Adapater.
@zhiqiao zhiqiao changed the title Fix bug with Intents between ChecklistActivity <-> ChecklistItemActiv… Fix Intent bug between ChecklistActivity <-> ChecklistItemActivity Aug 19, 2016
itemHolder.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(ChecklistActivity.this, ChecklistItemActivity.class);
intent.putExtra("databaseRefUrl", getRef(position).toString());
intent.putExtra("databaseRefUrl", itemHolder.databaseRefUrl);
startActivity(intent);
Copy link
Contributor

@aaronj1335 aaronj1335 Aug 20, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like there are two startActivity's. extra call?

@aaronj1335 aaronj1335 merged commit f69c243 into g11x:master Aug 20, 2016
aaronj1335 added a commit that referenced this pull request Aug 20, 2016
@aaronj1335
Copy link
Contributor

🚢'ing

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

Successfully merging this pull request may close these issues.

2 participants