commit | 525a89b21c1e8647eb129b6f576de34090ca96f1 | [log] [tgz] |
---|---|---|
author | Pinyao Ting <pinyaoting@google.com> | Mon Apr 26 09:50:21 2021 -0700 |
committer | Pinyao Ting <pinyaoting@google.com> | Mon Apr 26 09:50:21 2021 -0700 |
tree | 1fa36b7cefdd4bf30a5f14901518414b339f4dcb | |
parent | 00475ff23db79408610218c9627ab7547066df81 [diff] |
Fixes a potential error in setDynamicShortcut In the current implementation, ret.complete will still be called after ret.completeExceptionally is called. Although the second call doesn't do anything right now since the implementation of AndroidFuture ignores consecutive attempts at calling complete on an already completed future, it is better to avoid these kind of behaviors in the first place. Bug: 186237458 Test: manual Change-Id: I65e44c28ded947d499ba74aafd9a2686f02a9f18