[Predictive Back] Support WidgetsTwoPaneSheet

Fix: 325930715
Test: Manual - attached video to bug
Flag: aconfig com.android.launcher3.enable_predictive_back_gesture TEAMFOOD
Change-Id: I44098de12253f803526160bce6457a940b2153c7
This commit is contained in:
Fengjiang Li committed 2024-03-18 15:31:13 -07:00
1 parent 88fea708b2
commit c51363fc46
5 files changed
+169 -78

No files matched your search

@@ -347,8 +347,7 @@ public abstract class AbstractSlideInView<T extends Context & ActivityContext>
/** Return extra space revealed during predictive back animation. */
@Px
protected int getBottomOffsetPx() {
final int height = getMeasuredHeight();
return (int) ((height / PREDICTIVE_BACK_MIN_SCALE - height) / 2);
return (int) (getMeasuredHeight() * (1 - PREDICTIVE_BACK_MIN_SCALE));
}
/**