mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
tweaks (#1821)
* opt: _onTapUp * opt: set contains * opt: elementAtOrNull
This commit is contained in:
committed by
GitHub
parent
37fa165f59
commit
7260a387f9
@@ -461,7 +461,7 @@ abstract final class Pref {
|
||||
SuperResolutionType? superResolutionType;
|
||||
final index = _setting.get(SettingBoxKey.superResolutionType);
|
||||
if (index != null) {
|
||||
superResolutionType = SuperResolutionType.values.getOrNull(index);
|
||||
superResolutionType = SuperResolutionType.values.elementAtOrNull(index);
|
||||
}
|
||||
return superResolutionType ?? SuperResolutionType.disable;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user