Remove preference 'link_previews' from storage

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2021-07-15 11:39:02 +02:00
parent dc22e7970c
commit 19337b8e57
No known key found for this signature in database
GPG Key ID: FECE3A7222C52A4E
2 changed files with 8 additions and 1 deletions

View File

@ -59,6 +59,8 @@ public class DatabaseModule {
@Provides
@Singleton
public AppPreferences providePreferences(@NonNull final Context poContext) {
return StoreBox.create(poContext, AppPreferences.class);
AppPreferences p = StoreBox.create(poContext, AppPreferences.class);
p.removeLinkPreviews();
return p;
}
}

View File

@ -251,6 +251,11 @@ public interface AppPreferences {
@KeyByString("phone_book_integration")
void setPhoneBookIntegration(boolean value);
// TODO: Remove in 13.0.0
@KeyByString("link_previews")
@RemoveMethod
void removeLinkPreviews();
@KeyByString("screen_lock_timeout")
@DefaultValue(R.string.nc_screen_lock_timeout_sixty)
String getScreenLockTimeout();