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>
This commit is contained in:
Mady Mellor
2023-07-10 16:45:25 +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);
}
});
}
});
}