rcs_service: Change rcs_enabled property.
- Change rcs_enabled property from int to boolean.
CRs-Fixed: 949194
Change-Id: Icea4ed037eb35a01b25617923a22baeea8655635
diff --git a/rcs_service_api/src/com/suntek/mway/rcs/client/api/support/SupportApi.java b/rcs_service_api/src/com/suntek/mway/rcs/client/api/support/SupportApi.java
index 0efd733..74611b7 100644
--- a/rcs_service_api/src/com/suntek/mway/rcs/client/api/support/SupportApi.java
+++ b/rcs_service_api/src/com/suntek/mway/rcs/client/api/support/SupportApi.java
@@ -84,10 +84,6 @@
private static final int DMS_VERSION_UNKNOWN = -999;
- private static final int RCS_DISABLED = 0;
-
- private static final int RCS_ENABLED = 1;
-
private static final String PROPERTY_NAME_RCS_ENABLED = "persist.sys.rcs.enabled";
private static final String PROPERTY_NAME_DM_VERSION = "persist.sys.rcs.dm.version";
@@ -248,9 +244,8 @@
}
private boolean isRcsEnabled() {
- int rcsEnabled = SystemProperties.getInt(PROPERTY_NAME_RCS_ENABLED, RCS_ENABLED);
- boolean isRcsEnabled = RCS_ENABLED == rcsEnabled;
- Log.d(TAG, "isRcsEnabled(): " + isRcsEnabled + ", rcsEnabled: " + rcsEnabled);
+ boolean isRcsEnabled = SystemProperties.getBoolean(PROPERTY_NAME_RCS_ENABLED, false);
+ Log.d(TAG, "isRcsEnabled(): " + isRcsEnabled);
return isRcsEnabled;
}
}