mirror of
https://github.com/nextcloud/talk-android
synced 2025-02-03 05:03:04 +00:00
Remove preference 'link_previews' from storage
Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
parent
dc22e7970c
commit
19337b8e57
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user