Set screen name for a few more screens

This commit is contained in:
Mario Danic 2017-04-26 21:20:14 +02:00
parent 9130635fa1
commit 7d1af571bc
3 changed files with 20 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));

View file

@ -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);
}
}