Skip to content

Commit

Permalink
[transaction] now transaction builder provides execute so we dont hav…
Browse files Browse the repository at this point in the history
…e to call build.
  • Loading branch information
agrosner committed Jan 1, 2017
1 parent 1a5e08f commit 0aa5b47
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -238,5 +238,12 @@ public Builder runCallbacksOnSameThread(boolean runCallbacksOnSameThread) {
public Transaction build() {
return new Transaction(this);
}

/**
* Convenience method to simply execute a transaction.
*/
public void execute() {
build().execute();
}
}
}

0 comments on commit 0aa5b47

Please sign in to comment.