Skip to content

Commit

Permalink
Use new API for enabling edge to edge
Browse files Browse the repository at this point in the history
  • Loading branch information
t895 authored and thestinger committed Jan 7, 2025
1 parent 36b459c commit adddf84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
import android.widget.TextView;
import android.widget.Toast;

import androidx.activity.EdgeToEdge;
import androidx.activity.result.ActivityResultLauncher;
import androidx.activity.result.contract.ActivityResultContracts;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowCompat;
import androidx.core.view.WindowInsetsCompat;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.ViewModelProvider;
Expand Down Expand Up @@ -263,7 +263,7 @@ protected void onCreate(Bundle savedInstanceState) {
setSupportActionBar(binding.toolbar);
passwordValidationViewModel = new ViewModelProvider(this, ViewModelProvider.AndroidViewModelFactory.getInstance(getApplication())).get(PasswordStatus.class);

WindowCompat.setDecorFitsSystemWindows(getWindow(), false);
EdgeToEdge.enable(this);

// Margins for the toolbar are needed, so that content of the toolbar
// is not covered by a system button navigation bar when in landscape.
Expand Down

0 comments on commit adddf84

Please sign in to comment.