diff --git a/android/src/main/java/com/pdftron/pdftronflutter/nativeviews/FlutterPdfViewCtrlTabHostFragment.java b/android/src/main/java/com/pdftron/pdftronflutter/nativeviews/FlutterPdfViewCtrlTabHostFragment.java new file mode 100644 index 00000000..1d3301dd --- /dev/null +++ b/android/src/main/java/com/pdftron/pdftronflutter/nativeviews/FlutterPdfViewCtrlTabHostFragment.java @@ -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 + } +} diff --git a/android/src/main/java/com/pdftron/pdftronflutter/views/DocumentView.java b/android/src/main/java/com/pdftron/pdftronflutter/views/DocumentView.java index a4309542..96543abe 100644 --- a/android/src/main/java/com/pdftron/pdftronflutter/views/DocumentView.java +++ b/android/src/main/java/com/pdftron/pdftronflutter/views/DocumentView.java @@ -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; @@ -175,6 +176,7 @@ protected void buildViewer() { .usingCustomHeaders(mCustomHeaders) .usingTabTitle(mTabTitle) .usingTabClass(FlutterPdfViewCtrlTabFragment.class) + .usingTabHostClass(FlutterPdfViewCtrlTabHostFragment.class) .usingTheme(R.style.FlutterAppTheme); } diff --git a/pubspec.yaml b/pubspec.yaml index 29537922..543f1193 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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