From 9e7283f6a31bc2beb75c84c6173968a46582c563 Mon Sep 17 00:00:00 2001 From: Chris Wren Date: Fri, 8 May 2015 17:23:47 -0400 Subject: log more settings actions airplane: quick and slow settings bluetooth: quick and slow settings cellular data: quick and slow settings dnd: quick and slow settings wifi: quick settings (slow already done) cast: quick settings user: quick settings include state of the toggle in the action log Back away slowly from the over-generalization of logging around handleClick, the semantics of mState are particular to the individual tiles. Bug: 20264417 Change-Id: I4cecbd3361af64d08de9fb41b8dca210a8086a80 --- .../SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java') diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java index 7e3fe76..7c378f0 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java +++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java @@ -59,8 +59,8 @@ public class RotationLockTile extends QSTile { @Override protected void handleClick() { - super.handleClick(); if (mController == null) return; + MetricsLogger.action(mContext, getMetricsCategory(), !mState.value); final boolean newState = !mState.value; mController.setRotationLocked(newState); refreshState(newState ? UserBoolean.USER_TRUE : UserBoolean.USER_FALSE); -- cgit v1.1