diff options
author | Chris Wren <cwren@android.com> | 2015-05-08 17:23:47 -0400 |
---|---|---|
committer | Chris Wren <cwren@android.com> | 2015-05-08 22:25:40 -0400 |
commit | 9e7283f6a31bc2beb75c84c6173968a46582c563 (patch) | |
tree | 0bbb8f1b16ff3185ac931dbc4e0aa2ed24735ee0 /packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java | |
parent | a0698b617f1efc71d5301f98aead822e266ec5d6 (diff) | |
download | frameworks_base-9e7283f6a31bc2beb75c84c6173968a46582c563.zip frameworks_base-9e7283f6a31bc2beb75c84c6173968a46582c563.tar.gz frameworks_base-9e7283f6a31bc2beb75c84c6173968a46582c563.tar.bz2 |
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
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/qs/tiles/RotationLockTile.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<QSTile.BooleanState> { @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); |