summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2014-09-23 17:25:01 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-09-23 17:25:01 +0000
commitfd7785da07edd9aa6daec753b5963a565ed2474e (patch)
tree259600d3ddf55d07a591ae27c772cc94ee975002
parent87c71a6a2c1ffd40dffe4e6020cf604f62ce9e76 (diff)
parent01409f7ae47bda458144a5805bfd2c22202d7b72 (diff)
am 01409f7a: am e8dc29f5: Merge "Hide the FAB if the dialpad chooser is shown." into lmp-dev
* commit '01409f7ae47bda458144a5805bfd2c22202d7b72': Hide the FAB if the dialpad chooser is shown.
-rw-r--r--src/com/android/dialer/dialpad/DialpadFragment.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/android/dialer/dialpad/DialpadFragment.java b/src/com/android/dialer/dialpad/DialpadFragment.java
index 9a34fa51e..7faed07ad 100644
--- a/src/com/android/dialer/dialpad/DialpadFragment.java
+++ b/src/com/android/dialer/dialpad/DialpadFragment.java
@@ -225,7 +225,7 @@ public class DialpadFragment extends AnalyticsFragment
public void onCallStateChanged(int state, String incomingNumber) {
// Log.i(TAG, "PhoneStateListener.onCallStateChanged: "
// + state + ", '" + incomingNumber + "'");
- if ((state == TelephonyManager.CALL_STATE_IDLE) && dialpadChooserVisible()) {
+ if ((state == TelephonyManager.CALL_STATE_IDLE) && isDialpadChooserVisible()) {
// Log.i(TAG, "Call ended with dialpad chooser visible! Taking it down...");
// Note there's a race condition in the UI here: the
// dialpad chooser could conceivably disappear (on its
@@ -1210,7 +1210,7 @@ public class DialpadFragment extends AnalyticsFragment
}
if (enabled) {
- // Log.i(TAG, "Showing dialpad chooser!");
+ Log.i(TAG, "Showing dialpad chooser!");
if (mDialpadView != null) {
mDialpadView.setVisibility(View.GONE);
}
@@ -1225,7 +1225,7 @@ public class DialpadFragment extends AnalyticsFragment
}
mDialpadChooser.setAdapter(mDialpadChooserAdapter);
} else {
- // Log.i(TAG, "Displaying normal Dialer UI.");
+ Log.i(TAG, "Displaying normal Dialer UI.");
if (mDialpadView != null) {
mDialpadView.setVisibility(View.VISIBLE);
} else {
@@ -1240,7 +1240,7 @@ public class DialpadFragment extends AnalyticsFragment
/**
* @return true if we're currently showing the "dialpad chooser" UI.
*/
- private boolean dialpadChooserVisible() {
+ private boolean isDialpadChooserVisible() {
return mDialpadChooser.getVisibility() == View.VISIBLE;
}
@@ -1603,7 +1603,7 @@ public class DialpadFragment extends AnalyticsFragment
final DialtactsActivity activity = (DialtactsActivity) getActivity();
final DialpadView dialpadView = (DialpadView) getView().findViewById(R.id.dialpad_view);
if (activity == null) return;
- if (!hidden) {
+ if (!hidden && !isDialpadChooserVisible()) {
if (mAnimate) {
dialpadView.animateShow();
}