BackupTransferActivity: properly implement edge-to-edge

This commit is contained in:
adbenitez
2025-11-26 00:49:08 +01:00
parent d4aa90cc0c
commit 83a7e4df3f
2 changed files with 6 additions and 3 deletions
@@ -24,6 +24,7 @@ import org.thoughtcrime.securesms.connect.DcHelper;
import org.thoughtcrime.securesms.service.GenericForegroundService;
import org.thoughtcrime.securesms.service.NotificationController;
import org.thoughtcrime.securesms.util.Util;
import org.thoughtcrime.securesms.util.ViewUtil;
public class BackupTransferActivity extends BaseActionBarActivity {
@@ -85,7 +86,9 @@ public class BackupTransferActivity extends BaseActionBarActivity {
supportActionBar.setDisplayHomeAsUpEnabled(true);
supportActionBar.setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);
supportActionBar.setTitle(title);
supportActionBar.setElevation(0); // TODO: use custom toolbar instead
// add padding to avoid content hidden behind system bars
ViewUtil.applyWindowInsets(findViewById(R.id.backup_provider_fragment));
}
@Override
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:background="?attr/colorPrimary"
android:fitsSystemWindows="true"
android:layout_width="match_parent"
android:layout_height="match_parent">
<include layout="@layout/status_bar_background"/>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"