diff --git a/play-services-core/src/main/java/org/microg/gms/gservices/GServicesProvider.java b/play-services-core/src/main/java/org/microg/gms/gservices/GServicesProvider.java index e0f12270..4f2ba2f2 100644 --- a/play-services-core/src/main/java/org/microg/gms/gservices/GServicesProvider.java +++ b/play-services-core/src/main/java/org/microg/gms/gservices/GServicesProvider.java @@ -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}); } } diff --git a/play-services-core/src/main/java/org/microg/gms/people/DatabaseHelper.java b/play-services-core/src/main/java/org/microg/gms/people/DatabaseHelper.java index f7a120ae..90e8d98c 100644 --- a/play-services-core/src/main/java/org/microg/gms/people/DatabaseHelper.java +++ b/play-services-core/src/main/java/org/microg/gms/people/DatabaseHelper.java @@ -71,6 +71,7 @@ public class DatabaseHelper extends SQLiteOpenHelper { @Override public void onCreate(SQLiteDatabase db) { db.execSQL(CREATE_OWNERS); + db.execSQL(CREATE_CIRCLES); } @Override diff --git a/play-services-core/src/main/java/org/microg/gms/people/PeopleManager.java b/play-services-core/src/main/java/org/microg/gms/people/PeopleManager.java index 027770d1..254b0c71 100644 --- a/play-services-core/src/main/java/org/microg/gms/people/PeopleManager.java +++ b/play-services-core/src/main/java/org/microg/gms/people/PeopleManager.java @@ -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();