Skip to content
Commit 648d3c77 authored by Christian Göllner's avatar Christian Göllner
Browse files

DeviceStateRotationLockSettingsManager: only persist setting when value changed

This is to prevent the following infinite loop:
1 - We register a content observer for changes in our setting
2 - We initialize by reading the setting
    -> setting is empty
    -> fallback on defaults
    -> default is empty
    -> persist empty setting
3 - We get notified about the setting change
    -> back to step 2. Loops forever

Bug: 219652963
Test: Manually + atp unbundled/launcher/launcher3_test_platform
Change-Id: I08788d5ef7739c2f840a4f74459c4462c9db9c10
parent ddb497d6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment