Switch preferences are not animated |
|||
Issue descriptionAnimations are not shown for all ChromeSwitchPreference instances in Settings. ChromeSwitchPreference is used in: Sync customization menu: "Sync" and "Sync everything". Autofill: "Autofill forms". Privacy: "Usage and crash reports", "Do not track", "Tap to Search". Site settings: for group enablers. Languages: "Offer to translate pages in other languages". Data saver: "On/Off".
,
Jun 4 2018
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/2d4deb6e7a41a480ab9745da235349822c7ff9b7 commit 2d4deb6e7a41a480ab9745da235349822c7ff9b7 Author: Boris Sazonov <bsazonov@chromium.org> Date: Mon Jun 04 11:50:42 2018 [Android] Fix ChromeSwitchPreference animations This CL fixes ChromeSwitchPreference animations on Android O+ by adding explicit call to setRecycleEnabled(true). Animations can't work without view recycling, as view will get recreated on every preference change. In ChromeSwitchPreference view recycling is disabled by setWidgetLayoutResource call, so explicit call to setRecycleEnabled fixes the issue. setRecycleEnabled has been added in API level 26, thus the build version check. Bug: 848753 Change-Id: I21e896723c8cfeec02c38f7e123fb5de8f29ce78 Reviewed-on: https://chromium-review.googlesource.com/1082219 Reviewed-by: Ted Choc <tedchoc@chromium.org> Commit-Queue: Boris Sazonov <bsazonov@chromium.org> Cr-Commit-Position: refs/heads/master@{#564060} [modify] https://crrev.com/2d4deb6e7a41a480ab9745da235349822c7ff9b7/chrome/android/java/src/org/chromium/chrome/browser/preferences/ChromeSwitchPreference.java
,
Jul 12
,
Jul 12
|
|||
►
Sign in to add a comment |
|||
Comment 1 by bsazonov@chromium.org
, Jun 1 2018