OSDN Git Service

Fix developer option not being enabled.
authorDoris Ling <dling@google.com>
Thu, 8 Feb 2018 21:17:54 +0000 (13:17 -0800)
committerDoris Ling <dling@google.com>
Thu, 8 Feb 2018 21:17:54 +0000 (13:17 -0800)
commite0014e223435e658f9a5a47ef7f2ad0071c18bef
tree6e65ee7fc588820b2d97fed8ea254f4dfc9600f9
parentf94f6d41d99654c423d87814e5695a10e32176cc
Fix developer option not being enabled.

- when screen lock is set, we will start the activity to check user's
credential. Override onActivityResult() and call BuildNumberPreferenceController's
method accordingly, so that we will checks the password confirm result and enable
the developer options if it is success.

Change-Id: Ie2df644c53430ad4eb394480348d956177804ec3
Fixes: 73102865
Test: make RunSettingsRoboTests
src/com/android/settings/deviceinfo/aboutphone/MyDeviceInfoFragment.java
tests/robotests/src/com/android/settings/deviceinfo/MyDeviceInfoFragmentTest.java