am c7581e81: instrument display rotation settings

* commit 'c7581e8126cefcbac599e95db664dd675c95ef18':
  instrument display rotation settings
This commit is contained in:
Chris Wren
2015-06-09 16:23:32 +00:00
committed by Android Git Automerger
2 changed files with 5 additions and 1 deletions

View File

@@ -176,7 +176,10 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
rotatePreference.setCallback(new Callback() {
@Override
public boolean onItemSelected(int pos, Object value) {
RotationPolicy.setRotationLock(activity, (Boolean) value);
final boolean locked = (Boolean) value;
MetricsLogger.action(getActivity(), InstrumentedFragment.ACTION_ROTATION_LOCK,
locked);
RotationPolicy.setRotationLock(activity, locked);
return true;
}
});

View File

@@ -28,6 +28,7 @@ public abstract class InstrumentedFragment extends PreferenceFragment {
public static final int APPLICATIONS_MANAGE_ASSIST = UNDECLARED + 1;
public static final int PROCESS_STATS_SUMMARY = UNDECLARED + 2;
public static final int ACTION_ROTATION_LOCK = UNDECLARED + 3;
/**
* Declare the view of this category.