Merge "SurfaceControlViewHost: Clone control for SurfacePackage" into tm-dev
This commit is contained in:
@@ -328,7 +328,8 @@ public class SurfaceControlViewHost {
|
|||||||
*/
|
*/
|
||||||
public @Nullable SurfacePackage getSurfacePackage() {
|
public @Nullable SurfacePackage getSurfacePackage() {
|
||||||
if (mSurfaceControl != null && mAccessibilityEmbeddedConnection != null) {
|
if (mSurfaceControl != null && mAccessibilityEmbeddedConnection != null) {
|
||||||
return new SurfacePackage(mSurfaceControl, mAccessibilityEmbeddedConnection,
|
return new SurfacePackage(new SurfaceControl(mSurfaceControl, "getSurfacePackage"),
|
||||||
|
mAccessibilityEmbeddedConnection,
|
||||||
mWm.getFocusGrantToken(), mRemoteInterface);
|
mWm.getFocusGrantToken(), mRemoteInterface);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user