remove statusbar when inAppBrowser is open in andriod

This commit is contained in:
Fiffi 2018-04-23 16:07:17 +00:00
parent b06ad8ed97
commit ec6af56fbd
2 changed files with 53 additions and 52 deletions

View File

@ -713,6 +713,7 @@ public class InAppBrowser extends CordovaPlugin {
dialog = new InAppBrowserDialog(cordova.getActivity(), android.R.style.Theme_NoTitleBar); dialog = new InAppBrowserDialog(cordova.getActivity(), android.R.style.Theme_NoTitleBar);
dialog.getWindow().getAttributes().windowAnimations = android.R.style.Animation_Dialog; dialog.getWindow().getAttributes().windowAnimations = android.R.style.Animation_Dialog;
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE); dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
dialog.setCancelable(true); dialog.setCancelable(true);
dialog.setInAppBroswer(getInAppBrowser()); dialog.setInAppBroswer(getInAppBrowser());

View File

@ -58,7 +58,7 @@
width: auto; width: auto;
height: 40px; height: 40px;
margin-left: 20px; margin-left: 20px;
font-family: "Segoe UI Symbol"; font-family: 'Segoe UI Symbol';
float: left; float: left;
color: white; color: white;
font-size: 12px; font-size: 12px;
@ -85,30 +85,30 @@
} }
.action-back::before { .action-back::before {
content: "\E0BA"; content: '\E0BA';
} }
.action-back:not([disabled]):hover::before { .action-back:not([disabled]):hover::before {
content: "\E0B3"; content: '\E0B3';
} }
/* Forward */ /* Forward */
.action-forward::before { .action-forward::before {
content: "\E0AC"; content: '\E0AC';
} }
.action-forward:not([disabled]):hover::before { .action-forward:not([disabled]):hover::before {
content: "\E0AF"; content: '\E0AF';
} }
/* Close */ /* Close */
.action-close::before { .action-close::before {
content: "\E0C7"; content: '\E0C7';
/* close icon is larger so we re-size it to fit other icons */ /* close icon is larger so we re-size it to fit other icons */
font-size: 20px; font-size: 20px;
line-height: 40px; line-height: 40px;
} }
.action-close:not([disabled]):hover::before { .action-close:not([disabled]):hover::before {
content: "\E0CA"; content: '\E0CA';
} }