am c7581e81
: instrument display rotation settings
* commit 'c7581e8126cefcbac599e95db664dd675c95ef18': instrument display rotation settings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user