1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-19 09:27:39 +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); PreferenceManager.getDefaultSharedPreferences(context);
// Load the preferred resolution otherwise the best available // Load the preferred resolution otherwise the best available
String resolution = preferences != null String resolution =
? preferences.getString(context.getString(key), context.getString(value)) preferences.getString(context.getString(key), context.getString(value));
: context.getString(R.string.best_resolution_key);
final String maxResolution = getResolutionLimit(context); final String maxResolution = getResolutionLimit(context);
if (maxResolution != null if (maxResolution != null