diff options
| author | 2023-07-10 16:45:25 +0000 | |
|---|---|---|
| committer | 2023-07-10 16:45:25 +0000 | |
| commit | c187a5cdb0ad1444179e3e738f267adf04b051a9 (patch) | |
| tree | bb83e6015d28e6614843dd25dbea0ab6978fcef4 | |
| parent | ef0fcdb1ff1a409f8c0f4b0ed9d10a792fe79c47 (diff) | |
| parent | bc38028c8d2938d866fff1bba9d947e444f6106a (diff) | |
Merge "Avoid CalledFromWrongThreadException in BubbleController" into main am: bc38028c8d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2637729
Change-Id: I0fd447ddbf810090e19305b2dc8278acd6e0887d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java index 541c0f04b9b9..2b3ee76b1ab5 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java @@ -307,16 +307,20 @@ public class BubbleController implements ConfigurationChangeListener { new OneHandedTransitionCallback() { @Override public void onStartFinished(Rect bounds) { - if (mStackView != null) { - mStackView.onVerticalOffsetChanged(bounds.top); - } + mMainExecutor.execute(() -> { + if (mStackView != null) { + mStackView.onVerticalOffsetChanged(bounds.top); + } + }); } @Override public void onStopFinished(Rect bounds) { - if (mStackView != null) { - mStackView.onVerticalOffsetChanged(bounds.top); - } + mMainExecutor.execute(() -> { + if (mStackView != null) { + mStackView.onVerticalOffsetChanged(bounds.top); + } + }); } }); } |