1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-07-19 10:22:57 +00:00

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

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