@@ -8,13 +8,13 @@ import BitmapFactory = android.graphics.BitmapFactory;
88import Browser = android . provider . Browser ;
99import Pattern = java . util . regex . Pattern ;
1010
11- import { Application , EventData , Utils } from ' @nativescript/core' ;
11+ import { Application , EventData , Utils } from " @nativescript/core" ;
1212import {
1313 ChromeTabsEvent ,
1414 BROWSER_ACTIVITY_EVENTS ,
1515 createStartIntent ,
1616 createDismissIntent ,
17- } from ' ./ChromeTabsManagerActivity' ;
17+ } from " ./ChromeTabsManagerActivity" ;
1818import {
1919 Animations ,
2020 BrowserResult ,
@@ -24,7 +24,7 @@ import {
2424 RedirectResolve ,
2525 RedirectReject ,
2626 BROWSER_TYPES ,
27- } from ' ./InAppBrowser.common' ;
27+ } from " ./InAppBrowser.common" ;
2828import {
2929 Builder ,
3030 getDrawableId ,
@@ -36,9 +36,9 @@ import {
3636 getPreferredPackages ,
3737 openAuthSessionPolyfillAsync ,
3838 closeAuthSessionPolyfillAsync ,
39- } from ' ./utils.android' ;
39+ } from " ./utils.android" ;
4040
41- import { tryParseColor } from ' ./utils.common' ;
41+ import { tryParseColor } from " ./utils.common" ;
4242
4343declare let global : any ;
4444
@@ -50,32 +50,32 @@ function setup() {
5050 extends java . lang . Object
5151 implements InAppBrowserClassMethods
5252 {
53- private static ERROR_CODE = ' InAppBrowser' ;
54- private static KEY_TOOLBAR_COLOR = ' toolbarColor' ;
55- private static KEY_SECONDARY_TOOLBAR_COLOR = ' secondaryToolbarColor' ;
56- private static KEY_NAVIGATION_BAR_COLOR = ' navigationBarColor' ;
53+ private static ERROR_CODE = " InAppBrowser" ;
54+ private static KEY_TOOLBAR_COLOR = " toolbarColor" ;
55+ private static KEY_SECONDARY_TOOLBAR_COLOR = " secondaryToolbarColor" ;
56+ private static KEY_NAVIGATION_BAR_COLOR = " navigationBarColor" ;
5757 private static KEY_NAVIGATION_BAR_DIVIDER_COLOR =
58- ' navigationBarDividerColor' ;
59- private static KEY_ENABLE_URL_BAR_HIDING = ' enableUrlBarHiding' ;
60- private static KEY_SHOW_PAGE_TITLE = ' showTitle' ;
61- private static KEY_DEFAULT_SHARE_MENU_ITEM = ' enableDefaultShare' ;
62- private static KEY_FORCE_CLOSE_ON_REDIRECTION = ' forceCloseOnRedirection' ;
63- private static KEY_ANIMATIONS = ' animations' ;
64- private static KEY_HEADERS = ' headers' ;
65- private static KEY_ANIMATION_START_ENTER = ' startEnter' ;
66- private static KEY_ANIMATION_START_EXIT = ' startExit' ;
67- private static KEY_ANIMATION_END_ENTER = ' endEnter' ;
68- private static KEY_ANIMATION_END_EXIT = ' endExit' ;
69- private static KEY_HAS_BACK_BUTTON = ' hasBackButton' ;
70- private static KEY_BROWSER_PACKAGE = ' browserPackage' ;
71- private static KEY_SHOW_IN_RECENTS = ' showInRecents' ;
72- private static KEY_INCLUDE_REFERRER = ' includeReferrer' ;
58+ " navigationBarDividerColor" ;
59+ private static KEY_ENABLE_URL_BAR_HIDING = " enableUrlBarHiding" ;
60+ private static KEY_SHOW_PAGE_TITLE = " showTitle" ;
61+ private static KEY_DEFAULT_SHARE_MENU_ITEM = " enableDefaultShare" ;
62+ private static KEY_FORCE_CLOSE_ON_REDIRECTION = " forceCloseOnRedirection" ;
63+ private static KEY_ANIMATIONS = " animations" ;
64+ private static KEY_HEADERS = " headers" ;
65+ private static KEY_ANIMATION_START_ENTER = " startEnter" ;
66+ private static KEY_ANIMATION_START_EXIT = " startExit" ;
67+ private static KEY_ANIMATION_END_ENTER = " endEnter" ;
68+ private static KEY_ANIMATION_END_EXIT = " endExit" ;
69+ private static KEY_HAS_BACK_BUTTON = " hasBackButton" ;
70+ private static KEY_BROWSER_PACKAGE = " browserPackage" ;
71+ private static KEY_SHOW_IN_RECENTS = " showInRecents" ;
72+ private static KEY_INCLUDE_REFERRER = " includeReferrer" ;
7373
7474 private static redirectResolve : RedirectResolve ;
7575 private static redirectReject : RedirectReject ;
7676 private isLightTheme : boolean ;
7777 private currentActivity : any ;
78- private animationIdentifierPattern = Pattern . compile ( ' ^.+:.+/' ) ;
78+ private animationIdentifierPattern = Pattern . compile ( " ^.+:.+/" ) ;
7979
8080 constructor ( ) {
8181 super ( ) ;
@@ -121,7 +121,7 @@ function setup() {
121121 inAppBrowserOptions [ InAppBrowserModule . KEY_TOOLBAR_COLOR ] ;
122122 this . isLightTheme = false ;
123123 if ( colorString ) {
124- const color = tryParseColor ( colorString , ' Invalid toolbar color' ) ;
124+ const color = tryParseColor ( colorString , " Invalid toolbar color" ) ;
125125 if ( color ) {
126126 builder . setToolbarColor ( color . android ) ;
127127 this . isLightTheme = toolbarIsLight ( color . android ) ;
@@ -132,7 +132,7 @@ function setup() {
132132 if ( colorString ) {
133133 const color = tryParseColor (
134134 colorString ,
135- ' Invalid secondary toolbar color'
135+ " Invalid secondary toolbar color"
136136 ) ;
137137 if ( color ) {
138138 builder . setSecondaryToolbarColor ( color . android ) ;
@@ -143,7 +143,7 @@ function setup() {
143143 if ( colorString ) {
144144 const color = tryParseColor (
145145 colorString ,
146- ' Invalid navigation bar color'
146+ " Invalid navigation bar color"
147147 ) ;
148148 if ( color ) {
149149 builder . setNavigationBarColor ( color . android ) ;
@@ -156,7 +156,7 @@ function setup() {
156156 if ( colorString ) {
157157 const color = tryParseColor (
158158 colorString ,
159- ' Invalid navigation bar divider color'
159+ " Invalid navigation bar divider color"
160160 ) ;
161161 if ( color ) {
162162 builder . setNavigationBarDividerColor ( color . android ) ;
@@ -254,7 +254,7 @@ function setup() {
254254 intent . putExtra (
255255 Intent . EXTRA_REFERRER ,
256256 Uri . parse (
257- ' android-app://' + context . getApplicationContext ( ) . getPackageName ( )
257+ " android-app://" + context . getApplicationContext ( ) . getPackageName ( )
258258 )
259259 ) ;
260260 }
@@ -283,7 +283,7 @@ function setup() {
283283 BROWSER_ACTIVITY_EVENTS . off ( DISMISSED_EVENT ) ;
284284
285285 const result : BrowserResult = {
286- type : ' dismiss' ,
286+ type : " dismiss" ,
287287 } ;
288288 InAppBrowserModule . redirectResolve ( result ) ;
289289 this . flowDidFinish ( ) ;
@@ -349,7 +349,7 @@ function setup() {
349349 } else {
350350 return context
351351 . getResources ( )
352- . getIdentifier ( identifier , ' anim' , context . getPackageName ( ) ) ;
352+ . getIdentifier ( identifier , " anim" , context . getPackageName ( ) ) ;
353353 }
354354 }
355355
@@ -417,7 +417,7 @@ function setup() {
417417 return new InAppBrowserModule ( ) ;
418418}
419419
420- if ( typeof InAppBrowserModuleInstance === ' undefined' ) {
420+ if ( typeof InAppBrowserModuleInstance === " undefined" ) {
421421 InAppBrowserModuleInstance = setup ( ) ;
422422}
423423export const InAppBrowser = InAppBrowserModuleInstance ;
0 commit comments