summaryrefslogtreecommitdiffstats
path: root/core/java/android/service
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2015-06-17 13:37:06 -0700
committerAdam Powell <adamp@google.com>2015-06-17 13:37:06 -0700
commit41607d5a2b8cc4a3fde4a2f75e33a00e8d957b1d (patch)
treee7ceb7de7f25509c385fe10c7ef5b5c47025ed06 /core/java/android/service
parent0e5dc780f00b6c91d0bcfd46512759c6e8a2a81b (diff)
downloadframeworks_base-41607d5a2b8cc4a3fde4a2f75e33a00e8d957b1d.zip
frameworks_base-41607d5a2b8cc4a3fde4a2f75e33a00e8d957b1d.tar.gz
frameworks_base-41607d5a2b8cc4a3fde4a2f75e33a00e8d957b1d.tar.bz2
Request application of WindowInsets when setting a content view
For both PhoneWindow and VoiceInteractionSession, call requestApplyInsets when the content view(s) change. This is generally what the developer expects if the new view tree responds to insets in any way. Bug 21620924 Change-Id: I60a88af55bf85217c3587aa37f03fdc3fdce686d
Diffstat (limited to 'core/java/android/service')
-rw-r--r--core/java/android/service/voice/VoiceInteractionSession.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/service/voice/VoiceInteractionSession.java b/core/java/android/service/voice/VoiceInteractionSession.java
index d5ee7e7..d54d1a9 100644
--- a/core/java/android/service/voice/VoiceInteractionSession.java
+++ b/core/java/android/service/voice/VoiceInteractionSession.java
@@ -1143,7 +1143,7 @@ public class VoiceInteractionSession implements KeyEvent.Callback, ComponentCall
mContentFrame.addView(view, new FrameLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT));
-
+ mContentFrame.requestApplyInsets();
}
/** @hide */