mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 03:15:11 +00:00
Bug 1226292
- Add telemetry for Find in Page r=liuche
This commit is contained in:
parent
0b336e064b
commit
9a4a57cbcf
@ -4,6 +4,7 @@
|
||||
|
||||
package org.mozilla.gecko;
|
||||
|
||||
import org.mozilla.gecko.TelemetryContract;
|
||||
import org.mozilla.gecko.util.GeckoEventListener;
|
||||
import org.mozilla.gecko.util.GeckoRequest;
|
||||
import org.mozilla.gecko.util.NativeJSObject;
|
||||
@ -149,6 +150,9 @@ public class FindInPageBar extends LinearLayout implements TextWatcher, View.OnC
|
||||
public void onClick(View v) {
|
||||
final int viewId = v.getId();
|
||||
|
||||
String extras = getResources().getResourceEntryName(viewId);
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.ACTION, TelemetryContract.Method.BUTTON, extras);
|
||||
|
||||
if (viewId == R.id.find_matchcase) {
|
||||
// Toggle matchcase state (color).
|
||||
mMatchCase.toggle();
|
||||
|
Loading…
Reference in New Issue
Block a user