sakusaku3939 / DeepLAndroid

Unofficial Android App for DeepL Translator
MIT License
334 stars 18 forks source link

Dark Mode no longer respected #99

Closed pistolius closed 1 year ago

pistolius commented 1 year ago

Dark theme is no longer working in the app. Potentially due to an Android Update as v8 was working fine until recently.

Phone: Pixel 6 Pro with Android 13

sakusaku3939 commented 1 year ago

One possibility is that setForceDark has been discontinued in Android 13. Thanks for reporting this.

sakusaku3939 commented 1 year ago

I fixed this for Android 13, but found that the DeepL site has dark mode disabled due to some property. (For example, it works for https://translate.google.com/).

It may take a little more time to figure this out.

pistolius commented 1 year ago

It is now showing dark mode again? Android 13 fixed, indeed.

sakusaku3939 commented 1 year ago

It wasn't working when debugging, but now it seems to be working. I don't know why, but I'm glad it's fixed.🙃

guidot commented 1 year ago

Unfortunately it still isn't working here. I am on Android 12.1. When writing in the app I get multiple Dark mode cannot be used because ALGORITHMIC_DARKENING is not suppo... (rest is cut off).

sakusaku3939 commented 1 year ago

@guidot Some devices do not have ALGORITHMIC_DARKENING. However, this seems to be the only way to force dark mode on Android 12 for now...