Merge "Avoid CalledFromWrongThreadException in BubbleController" into main
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user