Small fixes

This commit is contained in:
mar-v-in 2015-03-26 23:18:39 +01:00
parent cdc5fc0bde
commit c82192bfd4
3 changed files with 6 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class GServicesProvider extends ContentProvider {
for (String name : cache.keySet()) {
if (name.startsWith(prefix)) {
String value = cache.get(name);
Log.d(TAG, "query caller=" + getCallingPackageName() + " name=" + name + " value=" + value);
Log.d(TAG, "query caller=" + getCallingPackageName() + " prefix=" + prefix + " name=" + name + " value=" + value);
cursor.addRow(new String[]{name, value});
}
}

View File

@ -71,6 +71,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL(CREATE_OWNERS);
db.execSQL(CREATE_CIRCLES);
}
@Override

View File

@ -97,6 +97,10 @@ public class PeopleManager {
if (info.has("picture"))
contentValues.put("avatar", info.getString("picture").replaceFirst(REGEX_SEARCH_USER_PHOTO, "~$1/"));
if (info.has("name")) contentValues.put("display_name", info.getString("name"));
contentValues.put("last_sync_start_time", System.currentTimeMillis());
contentValues.put("last_sync_finish_time", System.currentTimeMillis());
contentValues.put("last_successful_sync_time", System.currentTimeMillis());
contentValues.put("last_full_people_sync_time", System.currentTimeMillis());
DatabaseHelper databaseHelper = new DatabaseHelper(context);
databaseHelper.putOwner(contentValues);
databaseHelper.close();