Loading java/com/android/dialer/oem/res/values-mcc724/motorola_config.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2018 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License --> <resources> <!-- Flag to control whether to disable phone number formatting --> <bool name="motorola_disable_phone_number_formatting">true</bool> </resources> java/com/android/incallui/InCallServiceImpl.java +2 −4 Original line number Diff line number Diff line Loading @@ -111,10 +111,8 @@ public class InCallServiceImpl extends InCallService { InCallPresenter.getInstance().onServiceBind(); InCallPresenter.getInstance().maybeStartRevealAnimation(intent); TelecomAdapter.getInstance().setInCallService(this); if (ReturnToCallController.isEnabled(this)) { returnToCallController = new ReturnToCallController(this, ContactInfoCache.getInstance(context)); } feedbackListener = FeedbackComponent.get(context).getCallFeedbackListener(); CallList.getInstance().addListener(feedbackListener); Loading java/com/android/incallui/ReturnToCallController.java +21 −2 Original line number Diff line number Diff line Loading @@ -108,6 +108,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onUiShowing(boolean showing) { if (!isEnabled(context)) { hide(); return; } LogUtil.i("ReturnToCallController.onUiShowing", "showing: " + showing); if (showing) { LogUtil.i("ReturnToCallController.onUiShowing", "going to hide"); Loading Loading @@ -155,8 +160,7 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio canShowBubblesForTesting = canShowBubbles; } @VisibleForTesting public Bubble startBubble() { private Bubble startBubble() { if (!canShowBubbles(context)) { LogUtil.i("ReturnToCallController.startBubble", "can't show bubble, no permission"); return null; Loading @@ -178,6 +182,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onCallListChange(CallList callList) { if (!isEnabled(context)) { hide(); return; } if ((bubble == null || !bubble.isVisible()) && getCall() != null && !InCallPresenter.getInstance().isShowingInCallUi()) { Loading @@ -188,6 +197,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onDisconnect(DialerCall call) { if (!isEnabled(context)) { hide(); return; } LogUtil.enterBlock("ReturnToCallController.onDisconnect"); if (bubble != null && bubble.isVisible() && (getCall() == null)) { // Show "Call ended" and hide bubble when there is no outgoing, active or background call Loading @@ -214,6 +228,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onAudioStateChanged(CallAudioState audioState) { if (!isEnabled(context)) { hide(); return; } this.audioState = audioState; if (bubble != null) { bubble.updateActions(generateActions()); Loading Loading
java/com/android/dialer/oem/res/values-mcc724/motorola_config.xml 0 → 100644 +21 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <!-- ~ Copyright (C) 2018 The Android Open Source Project ~ ~ Licensed under the Apache License, Version 2.0 (the "License"); ~ you may not use this file except in compliance with the License. ~ You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 ~ ~ Unless required by applicable law or agreed to in writing, software ~ distributed under the License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ~ See the License for the specific language governing permissions and ~ limitations under the License --> <resources> <!-- Flag to control whether to disable phone number formatting --> <bool name="motorola_disable_phone_number_formatting">true</bool> </resources>
java/com/android/incallui/InCallServiceImpl.java +2 −4 Original line number Diff line number Diff line Loading @@ -111,10 +111,8 @@ public class InCallServiceImpl extends InCallService { InCallPresenter.getInstance().onServiceBind(); InCallPresenter.getInstance().maybeStartRevealAnimation(intent); TelecomAdapter.getInstance().setInCallService(this); if (ReturnToCallController.isEnabled(this)) { returnToCallController = new ReturnToCallController(this, ContactInfoCache.getInstance(context)); } feedbackListener = FeedbackComponent.get(context).getCallFeedbackListener(); CallList.getInstance().addListener(feedbackListener); Loading
java/com/android/incallui/ReturnToCallController.java +21 −2 Original line number Diff line number Diff line Loading @@ -108,6 +108,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onUiShowing(boolean showing) { if (!isEnabled(context)) { hide(); return; } LogUtil.i("ReturnToCallController.onUiShowing", "showing: " + showing); if (showing) { LogUtil.i("ReturnToCallController.onUiShowing", "going to hide"); Loading Loading @@ -155,8 +160,7 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio canShowBubblesForTesting = canShowBubbles; } @VisibleForTesting public Bubble startBubble() { private Bubble startBubble() { if (!canShowBubbles(context)) { LogUtil.i("ReturnToCallController.startBubble", "can't show bubble, no permission"); return null; Loading @@ -178,6 +182,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onCallListChange(CallList callList) { if (!isEnabled(context)) { hide(); return; } if ((bubble == null || !bubble.isVisible()) && getCall() != null && !InCallPresenter.getInstance().isShowingInCallUi()) { Loading @@ -188,6 +197,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onDisconnect(DialerCall call) { if (!isEnabled(context)) { hide(); return; } LogUtil.enterBlock("ReturnToCallController.onDisconnect"); if (bubble != null && bubble.isVisible() && (getCall() == null)) { // Show "Call ended" and hide bubble when there is no outgoing, active or background call Loading @@ -214,6 +228,11 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio @Override public void onAudioStateChanged(CallAudioState audioState) { if (!isEnabled(context)) { hide(); return; } this.audioState = audioState; if (bubble != null) { bubble.updateActions(generateActions()); Loading