Merge "Avoid CalledFromWrongThreadException in BubbleController" into main

This commit is contained in:
Mady Mellor
2023-07-10 16:25:17 +00:00
committed by Gerrit Code Review

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