diff options
| author | Danny Baumann <dannybaumann@web.de> | 2019-11-07 08:34:44 +0100 |
|---|---|---|
| committer | mosimchah <mosimchah@gmail.com> | 2019-11-26 23:28:47 -0500 |
| commit | 7137a582aaede843610c1e74ad028ebf7b0e96a5 (patch) | |
| tree | f387da5c94284dd467c1e96e0a6ef2212145a44b /java/com/android/incallui/CallButtonPresenter.java | |
| parent | 8b650e2cd9d417abd2790baeef3ed3f6f657e8d4 (diff) | |
Base 'call recording allowed' decision on current country.o8.1
Selection of resources by MCC happens via the SIM MCC, but what matters
for legislation is the current country, not the country the SIM origins
from. Because of that, move the decision about whether call recording is
allowed or not to the current country instead of SIM MCC.
Change-Id: I0ee365d7af8e3392716318e5a51e12e0efe7029a
Diffstat (limited to 'java/com/android/incallui/CallButtonPresenter.java')
| -rw-r--r-- | java/com/android/incallui/CallButtonPresenter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/incallui/CallButtonPresenter.java b/java/com/android/incallui/CallButtonPresenter.java index b51e933a3..3bdf4b90e 100644 --- a/java/com/android/incallui/CallButtonPresenter.java +++ b/java/com/android/incallui/CallButtonPresenter.java @@ -506,7 +506,7 @@ public class CallButtonPresenter && call.getState() != DialerCall.State.CONNECTING; final CallRecorder recorder = CallRecorder.getInstance(); - final boolean showCallRecordOption = recorder.isEnabled() + final boolean showCallRecordOption = recorder.canRecordInCurrentCountry() && !isVideo && call.getState() == DialerCall.State.ACTIVE; mInCallButtonUi.showButton(InCallButtonIds.BUTTON_AUDIO, true); |
