Loading packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java +8 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,8 @@ import com.android.settingslib.RestrictedLockUtils; import com.android.systemui.Gefingerpoken; import com.android.systemui.res.R; import java.util.Collections; /** * {@code FrameLayout} used to show and manipulate a {@link ToggleSeekBar}. * Loading @@ -48,6 +50,7 @@ public class BrightnessSliderView extends FrameLayout { @Nullable private Drawable mProgressDrawable; private float mScale = 1f; private final Rect mSystemGestureExclusionRect = new Rect(); public BrightnessSliderView(Context context) { this(context, null); Loading Loading @@ -176,6 +179,11 @@ public class BrightnessSliderView extends FrameLayout { protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); applySliderScale(); int horizontalMargin = getResources().getDimensionPixelSize(R.dimen.notification_side_paddings); mSystemGestureExclusionRect.set(-horizontalMargin, 0, right - left + horizontalMargin, bottom - top); setSystemGestureExclusionRects(Collections.singletonList(mSystemGestureExclusionRect)); } /** Loading Loading
packages/SystemUI/src/com/android/systemui/settings/brightness/BrightnessSliderView.java +8 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,8 @@ import com.android.settingslib.RestrictedLockUtils; import com.android.systemui.Gefingerpoken; import com.android.systemui.res.R; import java.util.Collections; /** * {@code FrameLayout} used to show and manipulate a {@link ToggleSeekBar}. * Loading @@ -48,6 +50,7 @@ public class BrightnessSliderView extends FrameLayout { @Nullable private Drawable mProgressDrawable; private float mScale = 1f; private final Rect mSystemGestureExclusionRect = new Rect(); public BrightnessSliderView(Context context) { this(context, null); Loading Loading @@ -176,6 +179,11 @@ public class BrightnessSliderView extends FrameLayout { protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); applySliderScale(); int horizontalMargin = getResources().getDimensionPixelSize(R.dimen.notification_side_paddings); mSystemGestureExclusionRect.set(-horizontalMargin, 0, right - left + horizontalMargin, bottom - top); setSystemGestureExclusionRects(Collections.singletonList(mSystemGestureExclusionRect)); } /** Loading