Remove call to actionWithSource.

Switch to generic action logging call.

Bug: 117860032
Test: robotests
Change-Id: Ibd7c59ac0ec8a9fa1b368b40f0453a1b42071377
This commit is contained in:
Fan Zhang
2018-11-09 14:52:42 -08:00
parent 454f05160f
commit ff47b303c4
5 changed files with 25 additions and 26 deletions

View File

@@ -23,6 +23,7 @@ import android.annotation.IdRes;
import android.annotation.UserIdInt;
import android.app.ActionBar;
import android.app.Activity;
import android.app.settings.SettingsEnums;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
@@ -355,14 +356,13 @@ public class EntityHeaderController {
if (mAppNotifPrefIntent == null) {
button.setVisibility(View.GONE);
} else {
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
FeatureFactory.getFactory(mAppContext).getMetricsFeatureProvider()
.actionWithSource(mAppContext, mMetricsCategory,
ACTION_OPEN_APP_NOTIFICATION_SETTING);
mFragment.startActivity(mAppNotifPrefIntent);
}
button.setOnClickListener(v -> {
FeatureFactory.getFactory(mAppContext).getMetricsFeatureProvider()
.action(SettingsEnums.PAGE_UNKNOWN,
ACTION_OPEN_APP_NOTIFICATION_SETTING,
mMetricsCategory,
null, 0);
mFragment.startActivity(mAppNotifPrefIntent);
});
button.setVisibility(View.VISIBLE);
}