Add context in AudioManager.hasHapticChannels.
A context will be required for resolving a Uri. Using the context in AudioService may not always work and it may cause not oneway binder call issue. In that case, using the context in RingtoneManager could help. In AudioManager, caching a static context so that it can be used when there is not context provided. Test: atest RingtoneManagerTest Bug: 187842281 Change-Id: Ia2f514cb8f821926cf3d353cf912a44aeb584ab6
Loading
Please register or sign in to comment