OSDN Git Service

Fix the crashed problem at the AccountSyncSettings
authorSunny Shao <sunnyshao@google.com>
Fri, 25 Oct 2019 10:03:45 +0000 (18:03 +0800)
committerSunny Shao <sunnyshao@google.com>
Wed, 30 Oct 2019 10:15:07 +0000 (18:15 +0800)
commitf7d56e94ad0cd6e6c579a989492dab409192d534
tree643c16ddeb211076b02af488004e8a4668950ccb
parent28fbb6bb63c695aba6b3436cbcd5ca0a4ecc2a93
Fix the crashed problem at the AccountSyncSettings

- Use uid mapping to lowWord request code to avoid checking error of the request code.
- Use the local variable to keep the mapping data.
- Use onSaveInstanceState and onActivityCreated to backup/restore the mapped data.

Fixes: 142573823
Test: make RunSettingsGoogleRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts
Change-Id: Ib034c5c418d4b73df604a8dc7d9994309c717356
src/com/android/settings/accounts/AccountSyncSettings.java