Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance android check and fix time.strftime("%p") bug #17

Merged
merged 1 commit into from
Aug 18, 2024

Conversation

kengoon
Copy link
Contributor

@kengoon kengoon commented Aug 17, 2024

The exception caused by the below lines of code makes time.strftime("%p") to stop working. Noticed it in KivyMD at the importation level.

try:
from jnius import autoclass
from android import mActivity
Integer = autoclass("java.lang.Integer")
BuildVERSION = autoclass("android.os.Build$VERSION")
context = mActivity.getApplicationContext()
WallpaperManager = autoclass("android.app.WallpaperManager").getInstance(mActivity)
except Exception:
pass

This pull request fixes that and also enhances android os check without causing an exception

@T-Dynamos
Copy link
Owner

Thanks! Will make a release soon with fixes.

@T-Dynamos T-Dynamos merged commit 85099ce into T-Dynamos:main Aug 18, 2024
2 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants