Avoid overriding of synchronization user preferences on application upgrades

This commit is contained in:
Juan Miguel Boyero Corral 2013-05-19 11:04:51 +02:00
parent 3b84b9062b
commit 2f30d94f35

View File

@ -275,9 +275,11 @@ public class SWADMain extends MenuExpandableListActivity {
//prefs.upgradeCredentials();
//Configure automatic synchronization
if(lastVersion < 49) {
Intent activity = new Intent(getBaseContext(), AccountAuthenticator.class);
startActivity(activity);
SyncUtils.addPeriodicSync(Constants.AUTHORITY, Bundle.EMPTY, Constants.DEFAULT_SYNC_TIME, this);
}
prefs.setLastVersion(currentVersion);
}
@ -413,7 +415,7 @@ public class SWADMain extends MenuExpandableListActivity {
@Override
public void onNothingSelected(AdapterView<?> arg0) {
// TODO Auto-generated method stub
}
}