From 7038614cbe2dc19407bb0e573d3ca54c41fbd097 Mon Sep 17 00:00:00 2001 From: sail Date: Thu, 22 Jun 2017 17:40:24 -0700 Subject: Fix answer ui with no SYSTEM_ALERT_WINDOW permission If the user disallowed the "Display over other apps" permission then incoming calls would no longer show up on the lock screen. The problem was that if the permission was denied then we would attempt to ask the user to give us the permission. This causes us to start an activity while the in-call activity is starting which break things. Fix was to never prompt the user to give us this permission. This is ok because not having this functionlity doesn't break anything. PiperOrigin-RevId: 159901233 Change-Id: I3c06ba327ef265fd7981931f49c44e00d1c25350 --- java/com/android/incallui/ReturnToCallController.java | 1 - 1 file changed, 1 deletion(-) diff --git a/java/com/android/incallui/ReturnToCallController.java b/java/com/android/incallui/ReturnToCallController.java index 9972e6fbe..33154c5cf 100644 --- a/java/com/android/incallui/ReturnToCallController.java +++ b/java/com/android/incallui/ReturnToCallController.java @@ -113,7 +113,6 @@ public class ReturnToCallController implements InCallUiListener, Listener, Audio private Bubble startNewBubble() { if (!Bubble.canShowBubbles(context)) { LogUtil.i("ReturnToCallController.startNewBubble", "can't show bubble, no permission"); - context.startActivity(Bubble.getRequestPermissionIntent(context)); return null; } Bubble returnToCallBubble = Bubble.createBubble(context, generateBubbleInfo()); -- cgit v1.2.3