mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
QrActivity: properly implement edge-to-edge
This commit is contained in:
@@ -18,6 +18,7 @@ import com.journeyapps.barcodescanner.CompoundBarcodeView;
|
||||
import com.journeyapps.barcodescanner.DecoratedBarcodeView;
|
||||
|
||||
import org.thoughtcrime.securesms.R;
|
||||
import org.thoughtcrime.securesms.util.ViewUtil;
|
||||
|
||||
public class QrScanFragment extends Fragment {
|
||||
|
||||
@@ -38,6 +39,9 @@ public class QrScanFragment extends Fragment {
|
||||
barcodeScannerView = view.findViewById(R.id.zxing_barcode_scanner);
|
||||
barcodeScannerView.setStatusText(getString(R.string.qrscan_hint) + "\n ");
|
||||
|
||||
// add padding to avoid content hidden behind system bars
|
||||
ViewUtil.applyWindowInsets(barcodeScannerView.getStatusView());
|
||||
|
||||
return view;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user