Disable the sync now menu while no any synced item
- Check the number of the switch on for all SyncStateSwitchPreferences to enable/disable the sync now menu item. Fixes: 147030748 Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.accounts Change-Id: I88e4b042e6d236b98866b9e8bff9ec2c64b41b87
This commit is contained in:
@@ -66,8 +66,8 @@ public class AccountSyncPreferenceController extends AbstractPreferenceControlle
|
||||
new SubSettingLauncher(mContext)
|
||||
.setDestination(AccountSyncSettings.class.getName())
|
||||
.setArguments(args)
|
||||
.setSourceMetricsCategory( SettingsEnums.ACCOUNT)
|
||||
.setTitleRes( R.string.account_sync_title)
|
||||
.setSourceMetricsCategory(SettingsEnums.ACCOUNT)
|
||||
.setTitleRes(R.string.account_sync_title)
|
||||
.launch();
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user