CreateProfileActivity: properly implement edge-to-edge

This commit is contained in:
adbenitez
2025-11-26 06:01:49 +01:00
parent aaa8a07511
commit 7829ff0a83
2 changed files with 5 additions and 4 deletions
@@ -76,7 +76,6 @@ public class CreateProfileActivity extends BaseActionBarActivity {
getSupportActionBar().setTitle(R.string.pref_profile_info_headline);
getSupportActionBar().setDisplayHomeAsUpEnabled(!this.fromWelcome);
getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);
getSupportActionBar().setElevation(0); // TODO: use custom toolbar instead
attachmentManager = new AttachmentManager(this, () -> {});
avatarChanged = false;
@@ -182,6 +181,9 @@ public class CreateProfileActivity extends BaseActionBarActivity {
this.container = ViewUtil.findById(this, R.id.container);
this.statusView = ViewUtil.findById(this, R.id.status_text);
// add padding to avoid content hidden behind system bars
ViewUtil.applyWindowInsets(container);
if (fromWelcome) {
String addr = DcHelper.get(this, "addr");
loginSuccessText.setText(R.string.set_name_and_avatar_explain);
@@ -2,14 +2,13 @@
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:fitsSystemWindows="true"
android:background="?attr/colorPrimary"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/status_bar_background"/>
<org.thoughtcrime.securesms.components.InputAwareLayout
android:id="@+id/container"
android:background="?android:attr/windowBackground"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingTop="20dp"