Merge "IMS-VT: Handle configuration changes on low battery Video call" into atel.lnx.2.0-dev
diff --git a/InCallUI/src/com/android/incallui/InCallLowBatteryListener.java b/InCallUI/src/com/android/incallui/InCallLowBatteryListener.java
index 95da595..bdc46e1 100644
--- a/InCallUI/src/com/android/incallui/InCallLowBatteryListener.java
+++ b/InCallUI/src/com/android/incallui/InCallLowBatteryListener.java
@@ -205,10 +205,6 @@
return;
}
- if (InCallPresenter.getInstance().isChangingConfigurations()) {
- onConfigurationChanging(call);
- }
-
maybeProcessLowBatteryIndication(call);
}
@@ -298,26 +294,6 @@
}
/**
- * This API handles configuration changes done on low battery video call
- *
- * @param call The call on which configuration changes happened
- */
- private void onConfigurationChanging(Call call) {
- if (call == null || !mPrimaryCallTracker.isPrimaryCall(call)) {
- return;
- }
-
- Log.d(this, "onConfigurationChanging call = " + call);
- /* If UE orientation changes with low battery dialog showing, then we need to
- re-process the low battery indication to ensure that the low battery dialog
- will be shown to user when the InCallActivity is recreated */
- if (isLowBatteryDialogShowing()) {
- dismissPendingDialogs();
- mLowBatteryMap.replace(call, PROCESS_LOW_BATTERY);
- }
- }
-
- /**
* Handles changes to the details of the call.
*
* @param call The call for which the details changed.
@@ -421,8 +397,6 @@
alertDialog.setOnDismissListener(new OnDismissListener() {
@Override
public void onDismiss(final DialogInterface dialog) {
- Log.i(this, "displayLowBatteryAlert onDismiss");
- mAlert = null;
}
});