Skip to content

Commit 6e57b4e

Browse files
authored
Merge pull request #4 from moi15moi/Correct-android-version-detector
Correct android version detector
2 parents 047d7dc + d4d9ca3 commit 6e57b4e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .fonts_filename import get_system_fonts_filename
22
from .exceptions import AndroidLibraryNotFound, FontConfigNotFound, OSNotSupported
33

4-
__version__ = "0.1.0"
4+
__version__ = "0.1.1"

find_system_fonts_filename/fonts_filename.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def get_system_fonts_filename() -> Set[str]:
1313

1414
elif system_name == "Linux":
1515
# ANDROID_ROOT or ANDROID_BOOTLOGO - https://stackoverflow.com/a/66174754/15835974
16-
if any(t in environ.values() for t in ("ANDROID_ROOT", "ANDROID_BOOTLOGO")):
16+
if any(t in environ.keys() for t in ("ANDROID_ROOT", "ANDROID_BOOTLOGO")):
1717
from .android_fonts import AndroidFonts
1818
return AndroidFonts.get_system_fonts_filename()
1919
else:

0 commit comments

Comments
 (0)