[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
Loading
Please register or sign in to comment