mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-10-19 01:17:39 +00:00
Remove null check on getDefaultSharedPreferences
The function never returns `null`.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user