OSDN Git Service

Uncanonicalize URIs when searching for audio-coupled haptics.
authorMichael Wright <michaelwr@google.com>
Tue, 4 Jun 2019 14:26:25 +0000 (15:26 +0100)
committerMichael Wright <michaelwr@google.com>
Tue, 4 Jun 2019 14:26:25 +0000 (15:26 +0100)
commit8b1f3c970ceb5f54f4a31871c15e9bc72c23ebcb
tree5fac8b6d46d00812ff19b36e468847dfcad26b2a
parent35e5db7a3f137acaa118aed805d616510dbc2dbe
Uncanonicalize URIs when searching for audio-coupled haptics.

It's possible that the Ringtone URIs will be pre-canonicalized, which
don't maintain equality when compared to uncanonicalized URIs. In order
to handle this case, we just need to uncanonicalize both URIs before
comparing.

Fixes: 134394754
Test: manual, verified audio-coupled haptics works again on B1C1
Change-Id: I2e216db1013d5bc0db0a1622e0670853663f0db8
core/java/android/os/VibrationEffect.java