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() { new OneHandedTransitionCallback() {
@Override @Override
public void onStartFinished(Rect bounds) { public void onStartFinished(Rect bounds) {
mMainExecutor.execute(() -> {
if (mStackView != null) { if (mStackView != null) {
mStackView.onVerticalOffsetChanged(bounds.top); mStackView.onVerticalOffsetChanged(bounds.top);
} }
});
} }
@Override @Override
public void onStopFinished(Rect bounds) { public void onStopFinished(Rect bounds) {
mMainExecutor.execute(() -> {
if (mStackView != null) { if (mStackView != null) {
mStackView.onVerticalOffsetChanged(bounds.top); mStackView.onVerticalOffsetChanged(bounds.top);
} }
});
} }
}); });
} }