summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2013-10-09 10:46:50 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 10:46:50 -0700
commitc3a5ed3faae9f0bbe5cbe459a0e7d04545b8d912 (patch)
tree0c9c7d673b021a835f95d9ab96c6e19be0c44933
parent495a9d7a18d4de7e6f784dbabe024287a35a0f7f (diff)
parenta47a477ae4a26bf76b654ae3f0c12fd687b0ec8c (diff)
am cf4cef20: am 9c2901eb: am 8f7a4eb3: Merge "update dialpad state more often." into klp-dev
* commit 'cf4cef2070be1c0ad20299e6b15dfc0ebf0d6ff4': update dialpad state more often.
-rw-r--r--InCallUI/src/com/android/incallui/CallButtonPresenter.java6
-rw-r--r--InCallUI/src/com/android/incallui/InCallActivity.java2
2 files changed, 2 insertions, 6 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java
index 36426302f..3b1411be1 100644
--- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java
+++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java
@@ -33,7 +33,6 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
implements InCallStateListener, AudioModeListener, IncomingCallListener {
private Call mCall;
- private ProximitySensor mProximitySensor;
private boolean mAutomaticallyMuted = false;
private boolean mPreviousMuteState = false;
@@ -49,7 +48,6 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
public void onUiReady(CallButtonUi ui) {
super.onUiReady(ui);
- mProximitySensor = InCallPresenter.getInstance().getProximitySensor();
AudioModeProvider.getInstance().addListener(this);
// register for call state changes last
@@ -64,8 +62,6 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
InCallPresenter.getInstance().removeListener(this);
AudioModeProvider.getInstance().removeListener(this);
InCallPresenter.getInstance().removeIncomingCallListener(this);
-
- mProximitySensor = null;
}
@Override
@@ -210,8 +206,6 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto
public void showDialpadClicked(boolean checked) {
Log.v(this, "Show dialpad " + String.valueOf(checked));
getUi().displayDialpad(checked);
- mProximitySensor.onDialpadVisible(checked);
-
updateExtraButtonRow();
}
diff --git a/InCallUI/src/com/android/incallui/InCallActivity.java b/InCallUI/src/com/android/incallui/InCallActivity.java
index ac21d52a2..58db132a6 100644
--- a/InCallUI/src/com/android/incallui/InCallActivity.java
+++ b/InCallUI/src/com/android/incallui/InCallActivity.java
@@ -389,6 +389,8 @@ public class InCallActivity extends Activity {
mDialpadFragment.setVisible(false);
mCallCardFragment.setVisible(true);
}
+
+ InCallPresenter.getInstance().getProximitySensor().onDialpadVisible(showDialpad);
}
public boolean isDialpadVisible() {