mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-11-19 02:29:25 +01:00
Small fixes
This commit is contained in:
parent
cdc5fc0bde
commit
c82192bfd4
@ -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});
|
||||
}
|
||||
}
|
||||
|
@ -71,6 +71,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
|
||||
@Override
|
||||
public void onCreate(SQLiteDatabase db) {
|
||||
db.execSQL(CREATE_OWNERS);
|
||||
db.execSQL(CREATE_CIRCLES);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user