diff --git a/src/main/java/com/owncloud/android/ui/activity/ActivitiesListActivity.java b/src/main/java/com/owncloud/android/ui/activity/ActivitiesListActivity.java index 661e956c65..0b22e2e40f 100644 --- a/src/main/java/com/owncloud/android/ui/activity/ActivitiesListActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/ActivitiesListActivity.java @@ -52,6 +52,7 @@ import com.owncloud.android.lib.common.utils.Log_OC; import com.owncloud.android.lib.resources.activities.GetRemoteActivitiesOperation; import com.owncloud.android.ui.adapter.ActivityListAdapter; import com.owncloud.android.utils.DisplayUtils; +import com.owncloud.android.utils.AnalyticsUtils; import java.io.IOException; import java.util.ArrayList; @@ -68,6 +69,7 @@ import butterknife.Unbinder; public class ActivitiesListActivity extends FileActivity { private static final String TAG = ActivitiesListActivity.class.getSimpleName(); + private static final String SCREEN_NAME = "Activities"; @BindView(R.id.empty_list_view) public LinearLayout emptyContentContainer; @@ -299,4 +301,10 @@ public class ActivitiesListActivity extends FileActivity { } } + @Override + protected void onResume() { + super.onResume(); + + AnalyticsUtils.setCurrentScreenName(this, SCREEN_NAME, TAG); + } } diff --git a/src/main/java/com/owncloud/android/ui/activity/FingerprintActivity.java b/src/main/java/com/owncloud/android/ui/activity/FingerprintActivity.java index a28ce4bcbc..815fb476aa 100644 --- a/src/main/java/com/owncloud/android/ui/activity/FingerprintActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/FingerprintActivity.java @@ -47,6 +47,7 @@ import android.widget.Toast; import com.owncloud.android.MainApp; import com.owncloud.android.R; import com.owncloud.android.lib.common.utils.Log_OC; +import com.owncloud.android.utils.AnalyticsUtils; import java.io.IOException; import java.security.InvalidAlgorithmParameterException; @@ -69,6 +70,7 @@ import javax.crypto.SecretKey; public class FingerprintActivity extends AppCompatActivity { private static final String TAG = FingerprintActivity.class.getSimpleName(); + private static final String SCREEN_NAME = "Fingerprint"; public final static String KEY_CHECK_RESULT = "KEY_CHECK_RESULT"; @@ -151,6 +153,7 @@ public class FingerprintActivity extends AppCompatActivity { @Override public void onResume(){ super.onResume(); + AnalyticsUtils.setCurrentScreenName(this, SCREEN_NAME, TAG); startFingerprint(); ImageView imageView = (ImageView)findViewById(R.id.fingerprinticon); imageView.setImageDrawable(getDrawable(R.drawable.ic_fingerprint)); diff --git a/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java b/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java index 0461ae5456..e46d52bcb5 100644 --- a/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java +++ b/src/main/java/com/owncloud/android/ui/activity/NotificationsActivity.java @@ -53,6 +53,7 @@ import com.owncloud.android.lib.resources.notifications.GetRemoteNotificationsOp import com.owncloud.android.lib.resources.notifications.models.Notification; import com.owncloud.android.ui.adapter.NotificationListAdapter; import com.owncloud.android.utils.DisplayUtils; +import com.owncloud.android.utils.AnalyticsUtils; import java.io.IOException; import java.util.List; @@ -68,6 +69,7 @@ import butterknife.Unbinder; public class NotificationsActivity extends FileActivity { private static final String TAG = NotificationsActivity.class.getSimpleName(); + private static final String SCREEN_NAME = "Notifications"; @BindView(R.id.empty_list_view) public LinearLayout emptyContentContainer; @@ -292,4 +294,11 @@ public class NotificationsActivity extends FileActivity { emptyContentIcon.setVisibility(View.VISIBLE); } } + + @Override + public void onResume(){ + super.onResume(); + AnalyticsUtils.setCurrentScreenName(this, SCREEN_NAME, TAG); + } + }