Bug 1012795 - Pass resource ID name with editing mode cancel event. r=mfinkle, a=sledru
authorMichael Comella <michael.l.comella@gmail.com>
Mon, 19 May 2014 14:37:17 -0700
changeset 199274 8d43d8f1a99eda652f113f6aa7b043922acecb42
parent 199273 39922bbe9a089dc9c23da1531e2191282fcf6cab
child 199275 efe8c330b742bac340a078bca288f6b0b7b893df
push id3624
push userasasaki@mozilla.com
push dateMon, 09 Jun 2014 21:49:01 +0000
treeherdermozilla-beta@b1a5da15899a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmfinkle, sledru
bugs1012795
milestone31.0a2
Bug 1012795 - Pass resource ID name with editing mode cancel event. r=mfinkle, a=sledru
mobile/android/base/toolbar/BrowserToolbar.java
--- a/mobile/android/base/toolbar/BrowserToolbar.java
+++ b/mobile/android/base/toolbar/BrowserToolbar.java
@@ -372,17 +372,17 @@ public class BrowserToolbar extends Them
         });
 
         if (editCancel != null) {
             editCancel.setOnClickListener(new OnClickListener() {
                 @Override
                 public void onClick(View v) {
                     Telemetry.sendUIEvent(TelemetryContract.Event.CANCEL,
                                           TelemetryContract.Method.ACTIONBAR,
-                                          Integer.toString(editCancel.getId()));
+                                          getResources().getResourceEntryName(editCancel.getId()));
                     cancelEdit();
                 }
             });
         }
 
         if (hasSoftMenuButton) {
             menuButton.setVisibility(View.VISIBLE);
             menuIcon.setVisibility(View.VISIBLE);