From ab8b78afed1a05f9f2f2b0e017dede09b3a24bab Mon Sep 17 00:00:00 2001 From: Mattia Date: Fri, 4 May 2018 00:12:05 +0200 Subject: [PATCH] minor fixes --- .../everywaretechnologies/it/icarusandroid/MainActivity.java | 2 +- .../framework/everywaretechnologies/it/icarus/Icarus.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/IcarusAndroid/app/src/main/java/framework/everywaretechnologies/it/icarusandroid/MainActivity.java b/IcarusAndroid/app/src/main/java/framework/everywaretechnologies/it/icarusandroid/MainActivity.java index ed5d14d..f2c4d06 100644 --- a/IcarusAndroid/app/src/main/java/framework/everywaretechnologies/it/icarusandroid/MainActivity.java +++ b/IcarusAndroid/app/src/main/java/framework/everywaretechnologies/it/icarusandroid/MainActivity.java @@ -77,7 +77,7 @@ public class MainActivity extends AppCompatActivity { else eventType=enteredExitedScreenTrackSwitch.getTextOff().toString(); - instance.trackScreen(MainActivity.this,eventType,true); + instance.trackScreen(eventType,true); } public void onBtnUserPrefChanges(View view){ diff --git a/IcarusAndroid/icarus/src/main/java/framework/everywaretechnologies/it/icarus/Icarus.java b/IcarusAndroid/icarus/src/main/java/framework/everywaretechnologies/it/icarus/Icarus.java index 6486754..86cd41f 100644 --- a/IcarusAndroid/icarus/src/main/java/framework/everywaretechnologies/it/icarus/Icarus.java +++ b/IcarusAndroid/icarus/src/main/java/framework/everywaretechnologies/it/icarus/Icarus.java @@ -112,11 +112,11 @@ public class Icarus { //---------------------- LOG SCREEN TRACKING ------------------------------ - public void trackScreen(Context c,String screenEventType,boolean debug){ + public void trackScreen(String screenEventType,boolean debug){ Log.d(curContext.getString(R.string.icarus_class),"log screen track"); - String screenName=c.getClass().getSimpleName(); + String screenName=curContext.getClass().getSimpleName(); if(screenEventType.equalsIgnoreCase(ScreenTrackResource.EVENT_ENTERED) || screenEventType.equalsIgnoreCase(ScreenTrackResource.EVENT_EXITED) ){ -- 2.18.1