OSDN Git Service

Only migrate 2-button setting if set
authorWinson Chung <winsonc@google.com>
Wed, 24 Apr 2019 23:52:47 +0000 (16:52 -0700)
committerWinson Chung <winsonc@google.com>
Thu, 25 Apr 2019 17:42:08 +0000 (17:42 +0000)
commit3d5d3b30e377102a9a14b76bad3a9cd965bec858
treec8770de946eeb9365a2891343602f0d0f87fa00f
parent5bcdc825eda929b581a0684abfd3a2912416f04e
Only migrate 2-button setting if set

- We have only shipped configurations with:
  default=3 button + setting to opt in
  default=2 button + no setting to opt out

  So to prevent migrating in the case where a user has restored from
  a device (1) to a device (2) where the setting may be false (but
  previously showed 2 button nav), we only migrate the nav bar mode
  to the 2 button overlay whenever the setting is set. This means
  that the user will fallback to the device default nav bar mode
  which corresponds to the previous default modes for each device.
- Also remove temporary nav bar mode migration for dogfood users

Bug: 128548249
Test: Migrate from P to Q with swipe up setting set to false

Change-Id: I7218eeb13fec50b2fe3e89f75ef0d2d4ab67aff1
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java