diff options
author | 2024-09-12 16:45:10 +0800 | |
---|---|---|
committer | 2024-09-13 11:44:18 +0800 | |
commit | 04b85038184e7e93b6123434814230720128aea2 (patch) | |
tree | b0ea04ef8dfcb722fc7ff8b550026e688c4a930a /api/api.go | |
parent | 2e1a903f24a285faa888840a8fcf498bfdb6b6aa (diff) |
Fix notifyTaskDisplayChanged is called every time onDisplayChanged is triggered.
The original intention was to send the callback
when the task reparented to another display.
So we need to add a check whether displayId has
changed before calling notifyTaskDisplayChanged.
Test: pressure test that notifyTaskDisplayChanged
is triggered when the task moves from one display
to another, and not triggered otherwise.
Bug: b/365477008
Change-Id: I5848ead17a50ccd6ece0e3b0c10e59252a633f89
Signed-off-by: zhou.wei <zhou.wei@oppo.com>
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions