diff options
author | Vasyl Gello <vasek.gello@gmail.com> | 2018-07-12 19:50:43 +0300 |
---|---|---|
committer | Vasyl Gello <vasek.gello@gmail.com> | 2018-07-12 19:58:15 +0300 |
commit | 72c4775b68c0a714e24301d52916754e4f452f7e (patch) | |
tree | 271ed7343e548bc438817998fe992fa01a6f1a93 | |
parent | 40685d9152bff972cd7c3c18685cbcee43725713 (diff) | |
download | android_packages_apps_Dialer-72c4775b68c0a714e24301d52916754e4f452f7e.tar.gz android_packages_apps_Dialer-72c4775b68c0a714e24301d52916754e4f452f7e.tar.bz2 android_packages_apps_Dialer-72c4775b68c0a714e24301d52916754e4f452f7e.zip |
InCallUI: Keep button states in sync with call properties
In change I9359aaaa44b89f5937cc1a7d9fbd5fe25c71133d the interface
update logic was introduced to reflect the supported audio route
change. However, on devices with call recorder support, this
change has introduced a regression hiding the "More" button from
the CallButtonFragment. This change fixes that regression.
Reported-By: Evgen Stenkin <stenkinevgeniy@gmail.com>
Signed-off-by: Vasyl Gello <vasek.gello@gmail.com>
Verified-By: ShevT <shev_t@mail.ru>
Change-Id: I3b022005dfd0ea7b23ec4c351f65ac07b6604956
-rw-r--r-- | InCallUI/src/com/android/incallui/CallButtonPresenter.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/InCallUI/src/com/android/incallui/CallButtonPresenter.java b/InCallUI/src/com/android/incallui/CallButtonPresenter.java index 621281610..400d3e3cf 100644 --- a/InCallUI/src/com/android/incallui/CallButtonPresenter.java +++ b/InCallUI/src/com/android/incallui/CallButtonPresenter.java @@ -195,10 +195,9 @@ public class CallButtonPresenter extends Presenter<CallButtonPresenter.CallButto if (getUi() != null) { getUi().setSupportedAudio(mask); - // toggle the visibility of audio button - getUi().showButton(BUTTON_AUDIO, shouldAudioButtonShow()); - getUi().updateButtonStates(); - getUi().updateColors(); + if (mCall != null) { + updateButtonsState(mCall); + } } } |