Skip to content

Commit

Permalink
[Android] Fix issue where status bar appears double height in non-ful…
Browse files Browse the repository at this point in the history
…l screen mode (#319)

* Fix issue where status appears double height in non-full screen mode

* Updating package version

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
sgong-pdftron and github-actions[bot] authored Jan 24, 2024
1 parent fc02ff1 commit c5e486b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.pdftron.pdftronflutter.nativeviews;

import com.pdftron.pdf.controls.PdfViewCtrlTabHostFragment2;

public class FlutterPdfViewCtrlTabHostFragment extends PdfViewCtrlTabHostFragment2 {
@Override
protected void updateFullScreenModeLayout() {
if (isInFullScreenMode()) {
super.updateFullScreenModeLayout();
}
// do nothing if not in full screen mode
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import com.pdftron.pdftronflutter.helpers.ViewerComponent;
import com.pdftron.pdftronflutter.helpers.ViewerImpl;
import com.pdftron.pdftronflutter.nativeviews.FlutterPdfViewCtrlTabFragment;
import com.pdftron.pdftronflutter.nativeviews.FlutterPdfViewCtrlTabHostFragment;

import java.io.File;
import java.util.ArrayList;
Expand Down Expand Up @@ -175,6 +176,7 @@ protected void buildViewer() {
.usingCustomHeaders(mCustomHeaders)
.usingTabTitle(mTabTitle)
.usingTabClass(FlutterPdfViewCtrlTabFragment.class)
.usingTabHostClass(FlutterPdfViewCtrlTabHostFragment.class)
.usingTheme(R.style.FlutterAppTheme);
}

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: pdftron_flutter
description: A convenience wrapper to build Flutter apps that use the PDFTron mobile SDK for smooth, flexible, and stand-alone document viewing.
version: 1.0.1-25
version: 1.0.1-26
homepage: https://www.pdftron.com
repository: https://github.com/PDFTron/pdftron-flutter
issue_tracker: https://github.com/PDFTron/pdftron-flutter/issues
Expand Down

0 comments on commit c5e486b

Please sign in to comment.