diff options
| author | 2024-02-29 14:28:08 -0800 | |
|---|---|---|
| committer | 2024-02-29 14:49:16 -0800 | |
| commit | 2a3f5dee144aed75149e3625180b27505fa99237 (patch) | |
| tree | 069cf6ee144dd64c391a3204757062873a263393 /libs/androidfw/StringPool.cpp | |
| parent | 6492191b1de47086396623a757320bb93311a83a (diff) | |
Fix bug with launching non-50-50 splits in landscape on phones
This CL makes it so that DividerSnapAlgorithm.setDivideRatio() sets the middle position as a fallback when trying to fetch a non-existent snap target, instead of crashing.
The issue arose because it is possible to have a 30-70 split in Overview, then rotate to landscape, where 30-70 splits are not supported. Trying to launch the pair then resulted in a crash.
This change matches the behavior we already have when rotating a fullscreen 30-70 split to landscape, which is that the 30-70 split automatically converts to a 50-50 split.
Fixes: 326336840
Flag: N/A
Test: Does not crash anymore.
Change-Id: I68072c2816d5f6cf3a178b0f8def27cdc564d5d7
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions