mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1017633 - Update "Clear history" dialog button and add telemetry. r=mfinkle
This commit is contained in:
parent
83d6b8f6eb
commit
f64445b614
@ -150,7 +150,7 @@ public class MostRecentPanel extends HomeFragment {
|
||||
}
|
||||
});
|
||||
|
||||
dialogBuilder.setPositiveButton(R.string.button_yes, new AlertDialog.OnClickListener() {
|
||||
dialogBuilder.setPositiveButton(R.string.button_ok, new AlertDialog.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(final DialogInterface dialog, final int which) {
|
||||
dialog.dismiss();
|
||||
@ -161,6 +161,8 @@ public class MostRecentPanel extends HomeFragment {
|
||||
BrowserDB.clearHistory(cr);
|
||||
}
|
||||
});
|
||||
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.SANITIZE, TelemetryContract.Method.BUTTON, "history");
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -32,7 +32,7 @@ class PrivateDataPreference extends MultiChoicePreference {
|
||||
if (!positiveResult)
|
||||
return;
|
||||
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.SANITIZE, TelemetryContract.Method.DIALOG);
|
||||
Telemetry.sendUIEvent(TelemetryContract.Event.SANITIZE, TelemetryContract.Method.DIALOG, "settings");
|
||||
|
||||
CharSequence keys[] = getEntryKeys();
|
||||
boolean values[] = getValues();
|
||||
|
Loading…
Reference in New Issue
Block a user