Introduce VerifyAppsOverUsbPreferenceControllerV2

- Create new VerifyAppsOverUsbPreferenceControllerV2
 - Deprecate VerifyAppsOverUsbPreferenceController
 - Create controller inside the DashboardFragment
 - Copy logic from VerifyAppsOverUsbPreferenceController with
 slight modifications for dashboard fragment compatibility

Bug: 34203528
Test: make RunSettingsRoboTests -j40
Change-Id: I37c01cd262c9e12307ec9cbe6effc5470496550f
This commit is contained in:
jeffreyhuang
2017-09-29 17:28:33 -07:00
parent 5ae503b383
commit 7b216bae94
5 changed files with 391 additions and 1 deletions

View File

@@ -37,7 +37,10 @@ import java.util.List;
/**
* Controller to manage the state of "Verify apps over USB" toggle.
*
* deprecated in favor of {@link VerifyAppsOverUsbPreferenceControllerV2}
*/
@Deprecated
public class VerifyAppsOverUsbPreferenceController extends AbstractPreferenceController implements
PreferenceControllerMixin {
private static final String VERIFY_APPS_OVER_USB_KEY = "verify_apps_over_usb";