Skip to content

Commit c5e486b

Browse files
[Android] Fix issue where status bar appears double height in non-full 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>
1 parent fc02ff1 commit c5e486b

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.pdftron.pdftronflutter.nativeviews;
2+
3+
import com.pdftron.pdf.controls.PdfViewCtrlTabHostFragment2;
4+
5+
public class FlutterPdfViewCtrlTabHostFragment extends PdfViewCtrlTabHostFragment2 {
6+
@Override
7+
protected void updateFullScreenModeLayout() {
8+
if (isInFullScreenMode()) {
9+
super.updateFullScreenModeLayout();
10+
}
11+
// do nothing if not in full screen mode
12+
}
13+
}

android/src/main/java/com/pdftron/pdftronflutter/views/DocumentView.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import com.pdftron.pdftronflutter.helpers.ViewerComponent;
2929
import com.pdftron.pdftronflutter.helpers.ViewerImpl;
3030
import com.pdftron.pdftronflutter.nativeviews.FlutterPdfViewCtrlTabFragment;
31+
import com.pdftron.pdftronflutter.nativeviews.FlutterPdfViewCtrlTabHostFragment;
3132

3233
import java.io.File;
3334
import java.util.ArrayList;
@@ -175,6 +176,7 @@ protected void buildViewer() {
175176
.usingCustomHeaders(mCustomHeaders)
176177
.usingTabTitle(mTabTitle)
177178
.usingTabClass(FlutterPdfViewCtrlTabFragment.class)
179+
.usingTabHostClass(FlutterPdfViewCtrlTabHostFragment.class)
178180
.usingTheme(R.style.FlutterAppTheme);
179181
}
180182

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pdftron_flutter
22
description: A convenience wrapper to build Flutter apps that use the PDFTron mobile SDK for smooth, flexible, and stand-alone document viewing.
3-
version: 1.0.1-25
3+
version: 1.0.1-26
44
homepage: https://www.pdftron.com
55
repository: https://github.com/PDFTron/pdftron-flutter
66
issue_tracker: https://github.com/PDFTron/pdftron-flutter/issues

0 commit comments

Comments
 (0)