Fix QS gear metrics

Change-Id: If1eeefa3831010d1567861dd71af6f29833496b3
Fixes: 30117924
This commit is contained in:
Jason Monk
2016-07-13 15:24:32 -04:00
parent 185131442b
commit 484fd36dfa
2 changed files with 5 additions and 1 deletions

View File

@@ -315,7 +315,8 @@ public class QuickStatusBarHeader extends BaseStatusBarHeader implements
public void onClick(View v) {
if (v == mSettingsButton) {
MetricsLogger.action(mContext,
MetricsProto.MetricsEvent.ACTION_QS_EXPANDED_SETTINGS_LAUNCH);
mExpanded ? MetricsProto.MetricsEvent.ACTION_QS_EXPANDED_SETTINGS_LAUNCH
: MetricsProto.MetricsEvent.ACTION_QS_COLLAPSED_SETTINGS_LAUNCH);
if (mSettingsButton.isTunerClick()) {
if (TunerService.isTunerEnabled(mContext)) {
TunerService.showResetRequest(mContext, new Runnable() {

View File

@@ -2375,6 +2375,9 @@ message MetricsEvent {
// SUBTYPE: false is off, true is on
ACTION_TOGGLE_STORAGE_MANAGER = 489;
// Settings launched from collapsed quick settings.
ACTION_QS_COLLAPSED_SETTINGS_LAUNCH = 490;
// ---- End N-MR1 Constants, all N-MR1 constants go above this line ----
// Add new aosp constants above this line.
// END OF AOSP CONSTANTS