File tree Expand file tree Collapse file tree
libs/SalesforceSDK/src/com/salesforce/androidsdk/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com.salesforce.androidsdk.ui
22
33import android.graphics.drawable.LayerDrawable
4+ import android.os.Build.VERSION.SDK_INT
45import android.os.Build.VERSION_CODES.UPSIDE_DOWN_CAKE
56import android.view.View
67import androidx.activity.enableEdgeToEdge
@@ -14,7 +15,7 @@ import com.salesforce.androidsdk.R.id.sf__status_bar_background
1415
1516// TODO: Remove this in 13.0 after rewriting screens in compose.
1617internal fun AppCompatActivity.fixEdgeToEdge (view : View ) {
17- if (application.applicationInfo.targetSdkVersion > UPSIDE_DOWN_CAKE ) {
18+ if (application.applicationInfo.targetSdkVersion > UPSIDE_DOWN_CAKE && SDK_INT > UPSIDE_DOWN_CAKE ) {
1819 enableEdgeToEdge()
1920 ViewCompat .setOnApplyWindowInsetsListener(view) { listenerView, windowInsets ->
2021 val insets = windowInsets.getInsets(
You can’t perform that action at this time.
0 commit comments