Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 15 : edge-to-edge サポート #74

Open
tsumuchan opened this issue Jan 23, 2025 · 1 comment
Open

Android 15 : edge-to-edge サポート #74

tsumuchan opened this issue Jan 23, 2025 · 1 comment

Comments

@tsumuchan
Copy link

Android 15 から強制される edge-to-edge のサポート状況を教えていただけますでしょうか?
ref: https://developer.android.com/about/versions/15/behavior-changes-15#edge-to-edge

対応の状況と、ターゲット SDK を 35 にしたアプリで本 SDK を使う場合にどうしたら良いかを教えていただきたいです。

@yatatsu
Copy link
Contributor

yatatsu commented Jan 23, 2025

@tsumuchan edge-to-edge のサポート時期は現時点では決まっていません。
暫定的な回避策としては、ライブラリを読み込むアプリ側で以下のように Theme に対して android:windowOptOutEdgeToEdgeEnforcement を適用することで、 payjp-android で提供される Activity に対してのみ edge-to-edge の強制を無効化することが可能です。

<style name="Payjp.Theme.CardForm" parent="Payjp.Theme.BaseCardForm">
        <item name="android:windowOptOutEdgeToEdgeEnforcement" tools:targetApi="35">true</item>
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants