also log details for neko rename events

Bug: 29878060
Change-Id: Icf10474cfed83d8196c04749b4fb0e25fa623b44
This commit is contained in:
Chris Wren
2016-07-01 14:06:40 -04:00
parent 3795313116
commit 1bdc770e66
2 changed files with 5 additions and 1 deletions

View File

@@ -312,6 +312,10 @@ public class Cat extends Drawable {
logCatAction(context, "egg_neko_add");
}
public void logRename(Context context) {
logCatAction(context, "egg_neko_rename");
}
public void logRemove(Context context) {
logCatAction(context, "egg_neko_remove");
}

View File

@@ -138,7 +138,7 @@ public class NekoLand extends Activity implements PrefsListener {
.setPositiveButton(android.R.string.ok, new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
MetricsLogger.count(context, "egg_neko_rename_cat", 1);
cat.logRename(context);
cat.setName(text.getText().toString().trim());
mPrefs.addCat(cat);
}