commit | 1b2cf756a700626a263e00270cde8443a8db8098 | [log] [tgz] |
---|---|---|
author | mincheli <mincheli@google.com> | Mon May 03 08:30:02 2021 +0800 |
committer | mincheli <mincheli@google.com> | Tue May 04 17:10:22 2021 +0800 |
tree | 55161652c2d3dbd803e1ed84992239d8c2a9713b | |
parent | 3ed02ffeb1663f92e4d727a912ce4456ba7cdaaf [diff] |
Uses windowContext for the MagnificationGestureHandler ContextImpl checks the incorrect Context usage in S. If non-ui context access window service, it would throw an IllegalAccessException. And the bug happened because the GestureDectectors in PanningScalingHandler.class don't have the correct context. So we have to apply using uiContext for the GestureDectectors and MagnificationGestureHandler. Bug: 185154435 Test: none Change-Id: I942192011526d0e4ce68e6121855bd321c499f56