Code Monkey home page Code Monkey logo

caffeinate's People

Contributors

russjr08 avatar

Stargazers

 avatar

Watchers

 avatar

caffeinate's Issues

(feat) Auto-switch to infinite when threshold set

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.

Bug: Extending time on Android 10 is not working

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)

Home screen / App Shortcuts

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.