Merge "Avoid CalledFromWrongThreadException in BubbleController" into main
This commit is contained in:
@@ -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) {
|
||||||
if (mStackView != null) {
|
mMainExecutor.execute(() -> {
|
||||||
mStackView.onVerticalOffsetChanged(bounds.top);
|
if (mStackView != null) {
|
||||||
}
|
mStackView.onVerticalOffsetChanged(bounds.top);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onStopFinished(Rect bounds) {
|
public void onStopFinished(Rect bounds) {
|
||||||
if (mStackView != null) {
|
mMainExecutor.execute(() -> {
|
||||||
mStackView.onVerticalOffsetChanged(bounds.top);
|
if (mStackView != null) {
|
||||||
}
|
mStackView.onVerticalOffsetChanged(bounds.top);
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user