summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2020-04-23 10:16:26 -0700
committerTyler Gunn <tgunn@google.com>2020-04-23 10:16:26 -0700
commit753aa1063e431fca6445659c6308812a7227bd3d (patch)
tree287941af9492bf4910b02ed0241433a91a7917bc /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent53e927f890f08d7916ccf1ae2afeb2624561d107 (diff)
Fix createLaunchEmergencyDialerIntent API behavior when Telecom unavailable.
The API contract for createLaunchEmergencyDialerIntent indicates that the return value is @NonNull, however the code clearly can return a null value if either: 1. Telecom is unavailable. 2. There is a remote exception. Since the API just returns a new ACTION_EMERGENCY_DIAL intent with the package name of the emergency dialer (from Telecom string resources), we can provide a reasonable fallback behavior by just returning a new ACTION_EMERGENCY_DIAL intent with no targeted package. The system will still launch the emergency dialer in this case, but if there is a scenario where multiple emergency dialers are installed on a device, the AOSP one may get launched instead. This is, however, better than there being NO emergency dialer launched. Test: Comment out call to Telecom service and verify the AOSP emergency dialer still launches. Fixes: 152187752 Change-Id: I06f8a5bebace5b22822f7bb714e14915126b904f
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions