Merge "Avoid CalledFromWrongThreadException in BubbleController" into main am: bc38028c8d am: c187a5cdb0

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2637729

Change-Id: Ifd0a25d46f53fd5786dda202f67adfa4c57fe811
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mady Mellor
2023-07-10 17:04:42 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}
});
}
});
}