File tree Expand file tree Collapse file tree
build/project-template-gradle/src/main/java/com/tns Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,14 +9,9 @@ public final class LogcatLogger implements Logger
99
1010 private boolean enabled ;
1111
12- public LogcatLogger (boolean isEnabled , Context context )
12+ public LogcatLogger (Context context )
1313 {
14- this .enabled = isEnabled ;
15-
16- if (!isEnabled )
17- {
18- this .initLogging (context );
19- }
14+ this .initLogging (context );
2015 }
2116
2217 public final boolean isEnabled ()
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public void initRuntime()
4646 {
4747 System .loadLibrary ("NativeScript" );
4848
49- Logger logger = new LogcatLogger (false , app );
49+ Logger logger = new LogcatLogger (app );
5050 Debugger debugger = new AndroidJsDebugger (app , logger );
5151
5252 boolean showErrorIntent = hasErrorIntent ();
Original file line number Diff line number Diff line change @@ -9,14 +9,9 @@ public final class LogcatLogger implements Logger
99
1010 private boolean enabled ;
1111
12- public LogcatLogger (boolean isEnabled , Context context )
12+ public LogcatLogger (Context context )
1313 {
14- this .enabled = isEnabled ;
15-
16- if (!isEnabled )
17- {
18- this .initLogging (context );
19- }
14+ this .initLogging (context );
2015 }
2116
2217 public final boolean isEnabled ()
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public void initRuntime()
4646 {
4747 System .loadLibrary ("NativeScript" );
4848
49- Logger logger = new LogcatLogger (true , app );
49+ Logger logger = new LogcatLogger (app );
5050 Debugger debugger = new AndroidJsDebugger (app , logger );
5151
5252 boolean showErrorIntent = hasErrorIntent ();
You can’t perform that action at this time.
0 commit comments