Clean up old avatar cache and update changelog

This commit is contained in:
Stefan Niedermann 2020-06-17 18:30:48 +02:00
parent c641c95396
commit 6e7c8d9a9c
3 changed files with 56 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -0,0 +1,25 @@
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();
}
}

View file

@ -0,0 +1,27 @@
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