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

Commit 075fbee7 authored by Ibrahim Yilmaz's avatar Ibrahim Yilmaz
Browse files

[RONs] Enforce segment and point limits

Enforces segment limit as follows:

- When adding: drop any segment that has non-positive length.
- When creating the model: if N > limit, replace with single segment (Single segment length has same max as total. Single segment color: if all segments have the same color, use that. Otherwise, use 0 / default)

Enforce point limit as follows:
- When adding: drop any point that has a negative position.
- When creating the model: take first N valid points

Bug: 383566179
Change-Id: Ie919ce8784394fcaf39647bbd743ca9bad490897
Test: presubmit && post ProgressStyle with points and segments more than their limits
Flag: android.app.api_rich_ongoing
parent 559895c2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment