mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-20 12:09:45 +01: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
|
@Provides
|
||||||
@Singleton
|
@Singleton
|
||||||
public AppPreferences providePreferences(@NonNull final Context poContext) {
|
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")
|
@KeyByString("phone_book_integration")
|
||||||
void setPhoneBookIntegration(boolean value);
|
void setPhoneBookIntegration(boolean value);
|
||||||
|
|
||||||
|
// TODO: Remove in 13.0.0
|
||||||
|
@KeyByString("link_previews")
|
||||||
|
@RemoveMethod
|
||||||
|
void removeLinkPreviews();
|
||||||
|
|
||||||
@KeyByString("screen_lock_timeout")
|
@KeyByString("screen_lock_timeout")
|
||||||
@DefaultValue(R.string.nc_screen_lock_timeout_sixty)
|
@DefaultValue(R.string.nc_screen_lock_timeout_sixty)
|
||||||
String getScreenLockTimeout();
|
String getScreenLockTimeout();
|
||||||
|
Loading…
Reference in New Issue
Block a user