Add legacy {get,set}AutoReject methods for backwards compat
* Many devices with older IMS APKs need this
Change-Id: Iece95a2ab9ef9090e4025542c9be52447b17a4fa
diff --git a/ims/ims-ext-common/src/org/codeaurora/ims/utils/QtiImsExtUtils.java b/ims/ims-ext-common/src/org/codeaurora/ims/utils/QtiImsExtUtils.java
index ded9d1b..5abf399 100644
--- a/ims/ims-ext-common/src/org/codeaurora/ims/utils/QtiImsExtUtils.java
+++ b/ims/ims-ext-common/src/org/codeaurora/ims/utils/QtiImsExtUtils.java
@@ -736,6 +736,13 @@
QtiCarrierConfigs.KEY_CARRIER_CANCEL_MODIFY_CALL_SUPPORTED));
}
+ // Compat method for legacy IMS APKs
+ public static void setAutoReject(ContentResolver contentResolver, int phoneId, boolean turnOn) {
+ setAutoRejectMode(contentResolver, phoneId,
+ turnOn ? QtiCallConstants.AR_MODE_AUTO_REJECT
+ : QtiCallConstants.AR_MODE_ALLOW_INCOMING);
+ }
+
// Supported for multi sim only. Allows user to set auto reject call mode for IMS MT calls
// when high priority data is on the other sub
public static void setAutoRejectMode(ContentResolver contentResolver, int phoneId,
@@ -744,6 +751,11 @@
QtiCallConstants.IMS_AUTO_REJECT_MODE + phoneId, arMode);
}
+ // Compat method for legacy IMS APKs
+ public static int getAutoReject(ContentResolver contentResolver, int phoneId) {
+ return getAutoRejectMode(contentResolver, phoneId);
+ }
+
// Supported for multi sim only.
public static int getAutoRejectMode(ContentResolver contentResolver, int phoneId) {
return android.provider.Settings.Global.getInt(contentResolver,