fixup! IMS: Add Motorola specific API for VT
Change-Id: Id8b647eaecf9e3261b261f67bee774752eb7aebe
diff --git a/ims/ims-ext-common/src/org/codeaurora/ims/QtiVideoCallDataUsage.java b/ims/ims-ext-common/src/org/codeaurora/ims/QtiVideoCallDataUsage.java
index 5756ea3..e59065e 100644
--- a/ims/ims-ext-common/src/org/codeaurora/ims/QtiVideoCallDataUsage.java
+++ b/ims/ims-ext-common/src/org/codeaurora/ims/QtiVideoCallDataUsage.java
@@ -102,8 +102,15 @@
* This method returns WWAN Data Usage
*/
public long getWwanDataUsage() {
- return mDataUsage.length > DATA_USAGE_WWAN ? mDataUsage[DATA_USAGE_WWAN] :
- DATA_USAGE_INVALID_VALUE;
+ if (mUseMotoExt) {
+ return mDataUsage.length > DATA_USAGE_LTE_RX
+ ? mDataUsage[DATA_USAGE_LTE_TX] + mDataUsage[DATA_USAGE_LTE_RX]
+ : DATA_USAGE_INVALID_VALUE;
+ } else {
+ return mDataUsage.length > DATA_USAGE_WWAN
+ ? mDataUsage[DATA_USAGE_WWAN]
+ : DATA_USAGE_INVALID_VALUE;
+ }
}
/*