summaryrefslogtreecommitdiffstats
path: root/src/com/android/incallui/InCallActivity.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/incallui/InCallActivity.java')
-rw-r--r--src/com/android/incallui/InCallActivity.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/com/android/incallui/InCallActivity.java b/src/com/android/incallui/InCallActivity.java
index 043bec09..15335645 100644
--- a/src/com/android/incallui/InCallActivity.java
+++ b/src/com/android/incallui/InCallActivity.java
@@ -66,6 +66,7 @@ public class InCallActivity extends Activity {
/** Use to pass 'showDialpad' from {@link #onNewIntent} to {@link #onResume} */
private boolean mShowDialpadRequested;
+ private boolean mConferenceManagerShown;
// This enum maps to Phone.SuppService defined in telephony
private enum SuppService {
@@ -129,6 +130,7 @@ public class InCallActivity extends Activity {
mCallButtonFragment.displayDialpad(true);
mShowDialpadRequested = false;
}
+ updateSystemBarTranslucency();
}
// onPause is guaranteed to be called when the InCallActivity goes
@@ -244,6 +246,8 @@ public class InCallActivity extends Activity {
return;
} else if (mConferenceManagerFragment.isVisible()) {
mConferenceManagerFragment.setVisible(false);
+ mConferenceManagerShown = false;
+ updateSystemBarTranslucency();
return;
}
@@ -474,9 +478,30 @@ public class InCallActivity extends Activity {
public void displayManageConferencePanel(boolean showPanel) {
if (showPanel) {
mConferenceManagerFragment.setVisible(true);
+ mConferenceManagerShown = true;
+ updateSystemBarTranslucency();
}
}
+ public void onManageConferenceDoneClicked() {
+ if (mConferenceManagerShown && !mConferenceManagerFragment.isVisible()) {
+ mConferenceManagerShown = false;
+ updateSystemBarTranslucency();
+ }
+ }
+
+ private void updateSystemBarTranslucency() {
+ final boolean doTranslucency = !mConferenceManagerShown;
+ final Window window = getWindow();
+
+ if (doTranslucency) {
+ window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
+ } else {
+ window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
+ }
+ window.getDecorView().requestFitSystemWindows();
+ }
+
// The function is called when Modify Call button gets pressed.
// The function creates and displays modify call options.
public void displayModifyCallOptions(final int callId) {