russjr08 / caffeinate Goto Github PK
View Code? Open in Web Editor NEWAn Android quick-tile utility that allows you to prevent your phone from sleeping
Home Page: https://play.google.com/store/apps/details?id=xyz.omnicron.caffeinate
An Android quick-tile utility that allows you to prevent your phone from sleeping
Home Page: https://play.google.com/store/apps/details?id=xyz.omnicron.caffeinate
In LineageOS (and predecessors/forks), the Caffeine tile had a really neat feature where you could keep tapping it add time, up to 30 minutes. Once it passed 30 minutes, it would switch to infinite caffeine. Caffeinated has the former, but not the latter. This does not have to be default behaviour and can instead be a setting toggle.
I'm unfamiliar with Kotlin, but if I have some time I might toy around and see if I can get a pull request going.
Since the last update (2616a09) clicking on the tile icon disables the Caffeinate instead of extending the timer on Android 10.
The permission popup doesn't show because Android 10 doesn't have that permission at all.
The suspected reason is that on Android version <13 it is always returning permission denied for checkSelfPermission(this.applicationContext, Manifest.permission.POST_NOTIFICATIONS)
(as the permission is marked as dangerous and popup for it doesn't exist for Android version <13).
Fix is probably checking the SDK version before running the check (stackoverflow)
App Shortcuts can be implemented to allow a user to start caffeination from their home screen / launcher. Most launchers allow you to make "shortcuts out of shortcuts", which is even better.
Could utilize user's already set preference, and also have a few pre-defined options as well.
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.