Skip to content
Commit 525a89b2 authored by Pinyao Ting's avatar Pinyao Ting
Browse files

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
parent 00475ff2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment