Downloads · 30 days
0
Aarish88/Aarish786
Aarish786 is a machine learning model from Aarish88. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
int uiMode = getResources().getConfiguration().uiMode; switch (uiMode & Configuration.UIMODENIGHTMASK) { case Configuration.UIMODENIGHTYES: // Night mode is active break; case Configuration.UIMODENIGHTNO: // Night mod…
Downloads · 30 days
0
Access
Public
Updated Feb 10, 2024
Repo size
—
Likes
0
Public
Click a slice to open those files.
Other1.5 KB · 73%
From the Hugging Face model README
int uiMode = getResources().getConfiguration().uiMode; switch (uiMode & Configuration.UI_MODE_NIGHT_MASK) { case Configuration.UI_MODE_NIGHT_YES: // Night mode is active break; case Configuration.UI_MODE_NIGHT_NO: // Night mode is not active, day mode break; case Configuration.UI_MODE_NIGHT_UNDEFINED: // Night mode state is undefined break; }
This code snippet checks whether the current UI mode is in night mode or day mode. You can then perform actions accordingly within each case block.