OSDN Git Service

Fix GoogleSettings check in PrivacySettings
authorBjorn Bringert <bringert@android.com>
Mon, 25 Jan 2010 20:30:39 +0000 (20:30 +0000)
committerBjorn Bringert <bringert@android.com>
Mon, 25 Jan 2010 20:39:55 +0000 (20:39 +0000)
commitecfeaffdfa19bea836f24fd399376825c377eaa9
tree447fb5656402d4a0f76c04b18ab6a6a468bf7216
parentd4237f884a1e7aa7a73d8133896c3bea1c369234
Fix GoogleSettings check in PrivacySettings

GoogleSettingsProvider has moved to a new package as part of unbundling.
This broke the check used to decide whether to show the "Backup my
settings" preference. To make this more robust to package name changes,
I changed the code to look up the settings provider by authority
instead of looking for the package that contains it.

Fixes http://b/issue?id=2390945

Change-Id: Iaec3152faddbd938fc02f9f2dde748819c1d5cdf
src/com/android/settings/PrivacySettings.java