Remove null check on getDefaultSharedPreferences

The function never returns `null`.
This commit is contained in:
Profpatsch 2024-01-06 14:20:07 +01:00
parent be4e0cb3dc
commit e5ac6824e8
1 changed files with 2 additions and 3 deletions

View File

@ -371,9 +371,8 @@ public final class ListHelper {
PreferenceManager.getDefaultSharedPreferences(context);
// Load the preferred resolution otherwise the best available
String resolution = preferences != null
? preferences.getString(context.getString(key), context.getString(value))
: context.getString(R.string.best_resolution_key);
String resolution =
preferences.getString(context.getString(key), context.getString(value));
final String maxResolution = getResolutionLimit(context);
if (maxResolution != null