diff options
author | Hui Wang <huiwang@google.com> | 2021-05-07 01:50:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-05-07 01:50:24 +0000 |
commit | 4769fd369bb63ac0d9f42d10a96768e2c1d3870c (patch) | |
tree | 9d17b2cc4f528e14292dd37b1ef157092ee88351 | |
parent | b73fa47929aba7d6f15c40e58125dc85863827b4 (diff) | |
parent | 82b59178a477cb258073e74ad5b96c4accc13aa8 (diff) |
Merge "Process rcsVolteSingleRegistration if it is not provided or roaming" into sc-dev
-rw-r--r-- | telephony/java/android/telephony/ims/RcsConfig.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/ims/RcsConfig.java b/telephony/java/android/telephony/ims/RcsConfig.java index 6867c866cd94..fd8d8a76353b 100644 --- a/telephony/java/android/telephony/ims/RcsConfig.java +++ b/telephony/java/android/telephony/ims/RcsConfig.java @@ -357,9 +357,9 @@ public final class RcsConfig { /** * Check whether Rcs Volte single registration is supported by the config. */ - public boolean isRcsVolteSingleRegistrationSupported() { - return getBoolean(PARM_SINGLE_REGISTRATION, false) - || getInteger(PARM_SINGLE_REGISTRATION, 0) != 0; + public boolean isRcsVolteSingleRegistrationSupported(boolean isRoaming) { + int val = getInteger(PARM_SINGLE_REGISTRATION, 1); + return isRoaming ? val == 1 : val > 0; } @Override |