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

Commit 6e7c8d9a authored by Stefan Niedermann's avatar Stefan Niedermann
Browse files

Clean up old avatar cache and update changelog

parent c641c953
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ import it.niedermann.owncloud.notes.persistence.migration.Migration_14_15;
import it.niedermann.owncloud.notes.persistence.migration.Migration_15_16;
import it.niedermann.owncloud.notes.persistence.migration.Migration_16_17;
import it.niedermann.owncloud.notes.persistence.migration.Migration_17_18;
import it.niedermann.owncloud.notes.persistence.migration.Migration_18_19;
import it.niedermann.owncloud.notes.persistence.migration.Migration_4_5;
import it.niedermann.owncloud.notes.persistence.migration.Migration_5_6;
import it.niedermann.owncloud.notes.persistence.migration.Migration_6_7;
@@ -25,7 +26,7 @@ import it.niedermann.owncloud.notes.util.DatabaseIndexUtil;

abstract class AbstractNotesDatabase extends SQLiteOpenHelper {

    private static final int database_version = 18;
    private static final int database_version = 19;
    @NonNull
    protected final Context context;

@@ -191,6 +192,8 @@ abstract class AbstractNotesDatabase extends SQLiteOpenHelper {
                new Migration_16_17(db);
            case 17:
                new Migration_17_18(db);
            case 18:
                new Migration_18_19(context);
        }
    }

+25 −0
Original line number Diff line number Diff line
package it.niedermann.owncloud.notes.persistence.migration;

import android.content.Context;
import android.util.Log;

import androidx.annotation.NonNull;

import com.bumptech.glide.Glide;

public class Migration_18_19 {
    private static final String TAG = Migration_18_19.class.getSimpleName();

    /**
     * Clears the {@link Glide} disk cache to fix wrong avatars in a multi user setup
     * https://github.com/stefan-niedermann/nextcloud-deck/issues/531
     *
     * @param context {@link Context}
     */
    public Migration_18_19(@NonNull Context context) {
        new Thread(() -> {
            Log.i(TAG, "Clearing Glide disk cache");
            Glide.get(context.getApplicationContext()).clearDiskCache();
        }).start();
    }
}
+27 −0
Original line number Diff line number Diff line
2.16.1

- 👥 Fix wrong avatars in multi user setup
- 🧹 Design polishing (@thgoebel)

2.16.0

- 🔧 Support APIv1
  - Title will only be auto generated when creating a new note
  - Ability to change title manually
- 🔤 Make categories sortable by alphabet or modified date (#603) (@WingsUpete @Hui-Ouyang16 @IF-ACT)

2.15.0

- 🆕 Grid view (beta)

2.14.1

- ✨ Title and category should be centered if no excerpt is given (#374)
- 🐞 Crash when entering not-existing category (#863)

2.14.0

- 📌 Remember last scrolling position per note (#227)
- 🎨 Apply brand to widget color
- ❓ "Help: format" option in the menu (#116)
- 🐞 Fix toggling checkboxes when note contains codefences with empty lines
 No newline at end of file