Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7581e81 authored by Chris Wren's avatar Chris Wren
Browse files

instrument display rotation settings

Bug: 21530764
Change-Id: Iee36addb7cf3cb6abbbf1ac90727e0fce22121cb
parent 18213459
Loading
Loading
Loading
Loading
+4 −1
Original line number Original line Diff line number Diff line
@@ -176,7 +176,10 @@ public class DisplaySettings extends SettingsPreferenceFragment implements
            rotatePreference.setCallback(new Callback() {
            rotatePreference.setCallback(new Callback() {
                @Override
                @Override
                public boolean onItemSelected(int pos, Object value) {
                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;
                    return true;
                }
                }
            });
            });
+1 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,7 @@ public abstract class InstrumentedFragment extends PreferenceFragment {


    public static final int APPLICATIONS_MANAGE_ASSIST = UNDECLARED + 1;
    public static final int APPLICATIONS_MANAGE_ASSIST = UNDECLARED + 1;
    public static final int PROCESS_STATS_SUMMARY = UNDECLARED + 2;
    public static final int PROCESS_STATS_SUMMARY = UNDECLARED + 2;
    public static final int ACTION_ROTATION_LOCK = UNDECLARED + 3;


    /**
    /**
     * Declare the view of this category.
     * Declare the view of this category.