Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions app/src/main/java/app/grapheneos/pdfviewer/PdfViewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
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.view.WindowCompat;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.lifecycle.ViewModelProvider;
Expand Down Expand Up @@ -279,6 +279,7 @@ private void showWebViewCrashed() {
@SuppressLint({"SetJavaScriptEnabled"})
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
WindowCompat.setDecorFitsSystemWindows(getWindow(), false);

binding = PdfviewerBinding.inflate(getLayoutInflater());
setContentView(binding.getRoot());
Expand All @@ -304,8 +305,6 @@ protected void onCreate(Bundle savedInstanceState) {
}
});

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.
KtUtilsKt.applySystemBarMargins(binding.toolbar, false);
Expand Down
99 changes: 51 additions & 48 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"@stylistic/eslint-plugin": "^5.1.0",
"esbuild": "^0.25.6",
"eslint": "^9.31.0",
"pdfjs-dist": "^5.2.133"
"pdfjs-dist": "^5.3.93"
}
}
1 change: 0 additions & 1 deletion viewer/css/text_layer.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
line-height: 1;
text-size-adjust: none;
forced-color-adjust: none;
transform-origin: 0 0;
caret-color: CanvasText;
z-index: 0;
}
Expand Down