summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkParsing.cpp
diff options
context:
space:
mode:
author Nicolo' Mazzucato <nicomazz@google.com> 2022-12-28 08:24:50 +0000
committer Nicolo' Mazzucato <nicomazz@google.com> 2022-12-28 14:45:29 +0000
commitaa55dda145ce0d206ac4f481ab5061582b764a92 (patch)
tree644c07c4d842d63e83b9d27e91c2582c338607b9 /libs/androidfw/ApkParsing.cpp
parentb4c0f42bd161fd7d9df37c8542cac393f6d2f35e (diff)
Trigger unfold animation without treshold while on keyguard
When folding, the fold animation triggers at different angles based on what's on the screen. Before this cl, it was triggering regardless of the angle only while on launcher, and after a certain threshold in all other cases. While on keyguard, the angle depended by the app that was in foreground. (e.g. if calculator was open, and device locked, the threshold was 60 degrees). After this change, while the keyguard is visible, there is no threshold. It has been needed to create the intermediate UnfoldKeyguardVisibilityListener as DeviceFoldStateProvider is in the global dagger scope, while KeyguardStateController in the sysui subcomponent (so, injecting KeyguardStateController directly in DeviceFoldStateProvider is not possible). From launcher, it is expected we don't have the information whether keyguard is visible (as we don't need it). Bug: 261313897 Test: DeviceFoldStateProviderTest & manual Change-Id: I07f133e96b16572448754ce2009f55e9e316b136
Diffstat (limited to 'libs/androidfw/ApkParsing.cpp')
0 files changed, 0 insertions, 0 deletions