Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c82192bf authored by Marvin W.'s avatar Marvin W. 🐿️
Browse files

Small fixes

parent cdc5fc0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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});
                    }
                }
+1 −0
Original line number Diff line number Diff line
@@ -71,6 +71,7 @@ public class DatabaseHelper extends SQLiteOpenHelper {
    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_OWNERS);
        db.execSQL(CREATE_CIRCLES);
    }

    @Override
+4 −0
Original line number Diff line number Diff line
@@ -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();