Add click tile event for tracking
- Search bar in homepage. - Avatar icon in homepage. - More personal safety in Safety & emergency. Test: Rebuilt rom Fix: 190341976 Change-Id: I14297211e4b7424f5fdeb46c360b3913101251d7
This commit is contained in:
@@ -21,7 +21,6 @@ import static android.view.View.IMPORTANT_FOR_ACCESSIBILITY_NO;
|
||||
import android.annotation.NonNull;
|
||||
import android.app.Activity;
|
||||
import android.app.ActivityOptions;
|
||||
import android.app.settings.SettingsEnums;
|
||||
import android.content.ComponentName;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -43,6 +42,7 @@ import com.google.android.setupcompat.util.WizardManagerHelper;
|
||||
*/
|
||||
public interface SearchFeatureProvider {
|
||||
|
||||
String KEY_HOMEPAGE_SEARCH_BAR = "homepage_search_bar";
|
||||
int REQUEST_CODE = 501;
|
||||
|
||||
/**
|
||||
@@ -100,8 +100,9 @@ public interface SearchFeatureProvider {
|
||||
|
||||
FeatureFactory.getFactory(context).getSlicesFeatureProvider()
|
||||
.indexSliceDataAsync(context);
|
||||
|
||||
FeatureFactory.getFactory(context).getMetricsFeatureProvider()
|
||||
.action(context, SettingsEnums.ACTION_SEARCH_RESULTS);
|
||||
.logSettingsTileClick(KEY_HOMEPAGE_SEARCH_BAR, pageId);
|
||||
final Bundle bundle = ActivityOptions.makeSceneTransitionAnimation(activity).toBundle();
|
||||
activity.startActivityForResult(intent, REQUEST_CODE, bundle);
|
||||
});
|
||||
|
Reference in New Issue
Block a user