From 2f280d06396d7b8234197a3b1a35d5319f7d6951 Mon Sep 17 00:00:00 2001 From: Stefan Kuhne Date: Thu, 18 Jun 2015 07:20:33 -1000 Subject: Fixing voice panel centering issues in landscape on phone The new assist panel (long press on home) was not centered in landscape mode on phones. This was caused by ignoring the stable insets in the PhoneWindowManager. bug: 21708971 Change-Id: I97a968a41c2966b09eba496fbe57c840affdf9ec --- core/java/android/service/voice/VoiceInteractionSession.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/java/android/service') diff --git a/core/java/android/service/voice/VoiceInteractionSession.java b/core/java/android/service/voice/VoiceInteractionSession.java index d5ee7e7..18a5327 100644 --- a/core/java/android/service/voice/VoiceInteractionSession.java +++ b/core/java/android/service/voice/VoiceInteractionSession.java @@ -1098,7 +1098,8 @@ public class VoiceInteractionSession implements KeyEvent.Callback, ComponentCall WindowManager.LayoutParams.TYPE_VOICE_INTERACTION, Gravity.BOTTOM, true); mWindow.getWindow().addFlags( WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED | - WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN); + WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN | + WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR); initViews(); mWindow.getWindow().setLayout(MATCH_PARENT, MATCH_PARENT); mWindow.setToken(mToken); -- cgit v1.1