OSDN Git Service

Use the correct Smart Storage flag in SettingsLib.
authorDaniel Nishi <dhnishi@google.com>
Thu, 10 Jan 2019 23:40:23 +0000 (15:40 -0800)
committerDaniel Nishi <dhnishi@google.com>
Mon, 28 Jan 2019 21:26:48 +0000 (21:26 +0000)
commit7a118345e339e5a816fa2ae00dbcf40d1d74f5b6
treef9eb87d48fcea9a15568a63a37a3173659ffe12c
parentfc4dec32aff5a5ba1300d8d6443221282a4b87b6
Use the correct Smart Storage flag in SettingsLib.

Previously, the show_opt_in and enabled flags were conflated to
basically mean the same thing. Because we are now distinctly making
show_opt_in refer to showing a toggle to opt into the feature in SUW and
enabled to mean the default enabled status, we need to change the
utility method for querying the default enabled status.

Bug: 122461924
Test: RunSettingsLibRoboTests
Change-Id: I9802d307597d90514e7dc6631998daa1d2fab253
Merged-In: I9802d307597d90514e7dc6631998daa1d2fab253
packages/SettingsLib/src/com/android/settingslib/Utils.java
packages/SettingsLib/tests/robotests/src/com/android/settingslib/UtilsTest.java