1、修改路径:packages/apps/Settings/src/com/android/settings/accounts/AccountSyncSettings.java
2、修改方法:
public class AccountSyncSettings extends AccountPreferenceBase { syncPref.setSummary(""); } int syncState = ContentResolver.getIsSyncable(account, authority); syncPref.setActive(activelySyncing && (syncState >= 0) && - !initialSync); + !initialSync && (syncEnabled)); syncPref.setPending(authorityIsPending && (syncState >= 0) && - !initialSync); + !initialSync && (syncEnabled));
时间: 2024-11-07 17:44:26