mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 08:52:20 +00:00
@@ -177,6 +177,8 @@ public class TextSecurePreferences {
|
||||
|
||||
public static final String LINK_PREVIEWS = "pref_link_previews";
|
||||
|
||||
private static final String GIF_GRID_LAYOUT = "pref_gif_grid_layout";
|
||||
|
||||
public static boolean isScreenLockEnabled(@NonNull Context context) {
|
||||
return getBooleanPreference(context, SCREEN_LOCK, false);
|
||||
}
|
||||
@@ -362,6 +364,14 @@ public class TextSecurePreferences {
|
||||
return getBooleanPreference(context, LINK_PREVIEWS, true);
|
||||
}
|
||||
|
||||
public static boolean isGifSearchInGridLayout(Context context) {
|
||||
return getBooleanPreference(context, GIF_GRID_LAYOUT, false);
|
||||
}
|
||||
|
||||
public static void setIsGifSearchInGridLayout(Context context, boolean isGrid) {
|
||||
setBooleanPreference(context, GIF_GRID_LAYOUT, isGrid);
|
||||
}
|
||||
|
||||
public static @Nullable String getProfileKey(Context context) {
|
||||
return getStringPreference(context, PROFILE_KEY_PREF, null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user