mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 03:08:19 +00:00
- Also simplified DigitalWellBeingToast to be an actual View that is a children of TaskView - Split out getDwbLayoutTranslations into 2 methods - One that update layout will be called earlier during TaskView.updateTaskSize. It now takes calcualted split snaphsot size and layoutParams sizes instead of using measured sizes so it can run before onMeasure. Also make sure updateLayoutParams is called. - One that calulate translations only can be called more frequently without causing jank during animation - TaskView.updateTaskSize now always set the exact sizes as layoutParams instead of MATCH_PARENT, so we can use the values for updateDwbBannerLayout - Simplified outline and splitOffsetTranslation calculations Fix: 345789862 Fix: 362435532 Test: Presubmit and manually testing DWB banner in variaous configuration single/split real/fake portrait/landscape/fake Flag: EXEMPT bugfix Change-Id: Ibde877c5f983689e0ef8104ba344b5947d0e3948