diff options
author | sail <sail@google.com> | 2017-06-22 17:40:24 -0700 |
---|---|---|
committer | Usman Abdullah <uabdullah@google.com> | 2017-06-23 13:21:59 -0700 |
commit | 7038614cbe2dc19407bb0e573d3ca54c41fbd097 (patch) | |
tree | 7dab46df0d8277be47171ea532c46c3db755086b /java/com/android | |
parent | d27102e16a555fd140a8c1642e48d3c6d7cd9506 (diff) |
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
Diffstat (limited to 'java/com/android')
-rw-r--r-- | java/com/android/incallui/ReturnToCallController.java | 1 |
1 files changed, 0 insertions, 1 deletions
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()); |