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

Commit 4d1390e4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Differentiate between automatic and manual brightness in metrics." into pi-dev

parents ab8f4a95 fe80061c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -368,7 +368,9 @@ public class BrightnessController implements ToggleSlider.Listener {
        } else {
            final int val = value + mMinimumBacklight;
            if (stopTracking) {
                MetricsLogger.action(mContext, MetricsEvent.ACTION_BRIGHTNESS, val);
                final int metric = mAutomatic ?
                        MetricsEvent.ACTION_BRIGHTNESS_AUTO : MetricsEvent.ACTION_BRIGHTNESS;
                MetricsLogger.action(mContext, metric, val);
            }
            setBrightness(val);
            if (!tracking) {