In recent Android update, Google has changed their in-app purchase UI.
We use
// BillingClient mBillingClient;
mBillingClient.launchBillingFlow
to launch in-app purchase flow.
Previously, when we launch their in-app purchase flow, a dialog is displayed at the center of screen.
Now, for recent Android update, Google has changed the in-app purchase flow, to show a bottom sheet.
However, this creates and undesired behavior. When bottom sheet is shown,
- Top status bar will be hide
- Since top status bar is hide, there will be an extra space. As a result, my app is being pushed up. This creates an unpleasant user experience.
Please see the screenshots.
Before showing in-app purchase bottom sheet
After showing in-app purchase bottom sheet. The app is "pushed up". Status bar is gone
Any idea how we can avoid the new in-app purchase bottom sheet from pushing up entire app?