puffocyano / mcnightmode Goto Github PK
View Code? Open in Web Editor NEWSimple Android Library to enable/disable night mode (like NightShift for iOS).
License: Apache License 2.0
Simple Android Library to enable/disable night mode (like NightShift for iOS).
License: Apache License 2.0
can you add filter in this libary like other night apps
FATAL EXCEPTION: main
Process: com.mcsoft.mcnightmode, PID: 32251
java.lang.RuntimeException: Unable to start service com.mcsoft.mcnightmode.NightService@a02570e with Intent { cmp=com.mcsoft.mcnightmode.NightService }: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@26bd909 -- permission denied for this window type
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4145)
at android.app.ActivityThread.access$2400(ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@26bd909 -- permission denied for this window type
at android.view.ViewRootImpl.setView(ViewRootImpl.java:920)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:337)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:109)
at com.dimiklab.meditest.service.NightService.a(Unknown Source)
at com.dimiklab.meditest.service.NightService.onStartCommand(Unknown Source)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4128)
at android.app.ActivityThread.access$2400(ActivityThread.java:229)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1924)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:7325)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Thanks for this library but when I use the filter in android api 26 or higher this toast comes:
Developers warning for package:"ir.theartofliving.honarzendegi"Failed to post notification on channel "null"See log for more detail
currently I'm not using any notifications at all!Why did this happen?is it because the library draws on other apps?
and how can I fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.