Skip to content

Commit be33637

Browse files
committed
applying insets in CollaboratorsActivity, for compatibility with Android 15 edge-to-edge
1 parent aede0c5 commit be33637

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.kotlin/sessions/kotlin-compiler-15689330811741763811.salive

Whitespace-only changes.

Simplenote/src/main/java/com/automattic/simplenote/CollaboratorsActivity.kt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import com.automattic.simplenote.utils.CollaboratorsAdapter
1616
import com.automattic.simplenote.utils.CollaboratorsAdapter.*
1717
import com.automattic.simplenote.utils.CollaboratorsAdapter.CollaboratorDataItem.*
1818
import com.automattic.simplenote.utils.IntentUtils
19+
import com.automattic.simplenote.utils.SystemBarUtils
1920
import com.automattic.simplenote.utils.toast
2021
import com.automattic.simplenote.viewmodels.CollaboratorsViewModel
2122
import com.automattic.simplenote.viewmodels.CollaboratorsViewModel.Event
@@ -47,6 +48,16 @@ class CollaboratorsActivity : ThemedAppCompatActivity() {
4748
setObservers()
4849

4950
viewModel.loadCollaborators(noteId)
51+
52+
// Setup edge-to-edge display with proper WindowInsets handling
53+
// Use auto-theming to properly handle status bar appearance based on theme
54+
val toolbar = findViewById<Toolbar>(R.id.toolbar)
55+
SystemBarUtils.setupEdgeToEdgeWithAutoTheming(
56+
this@CollaboratorsActivity,
57+
findViewById(R.id.main_parent_view),
58+
toolbar,
59+
collaboratorsList
60+
)
5061
}
5162
}
5263

Simplenote/src/main/res/layout/activity_collaborators.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:id="@+id/main_parent_view"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
8-
android:orientation="vertical">
8+
android:orientation="vertical"
9+
android:fitsSystemWindows="false">
910

1011
<include layout="@layout/toolbar" />
1112

0 commit comments

Comments
 (0)