GithubHelp home page GithubHelp logo

Video is stopped about taskbar HOT 5 OPEN

farmerbb avatar farmerbb commented on August 12, 2024
Video is stopped

from taskbar.

Comments (5)

farmerbb avatar farmerbb commented on August 12, 2024 1

The reason why Taskbar is pausing your video is because whenever the start menu is shown, Taskbar opens an invisible activity so that the user can close the start menu by either pressing the back button, or by tapping outside of the menu. Because a new activity is being shown on the screen, all other activities will be paused.

In my opinion, however, the benefits of improved control over closing the start menu outweigh the drawbacks of pausing the user's currently running activity, especially because opening the start menu covers a significant portion of the screen anyway.

Here is the code that triggers the invisible activity start:

if(!onHomeScreen || inFreeformMode) {
Intent intent = new Intent(this, InvisibleActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);
if(inFreeformMode) {
DisplayManager dm = (DisplayManager) getSystemService(DISPLAY_SERVICE);
Display display = dm.getDisplay(Display.DEFAULT_DISPLAY);
startActivity(intent, ActivityOptions.makeBasic().setLaunchBounds(new Rect(display.getWidth(), display.getHeight(), display.getWidth() + 1, display.getHeight() + 1)).toBundle());
} else
startActivity(intent);
}

You can safely remove that highlighted block of code, recompile the app, and Taskbar will no longer pause any other activities when the start menu is opened.

from taskbar.

Javimetal avatar Javimetal commented on August 12, 2024

Is there any way to contact you directly?

Thanks

from taskbar.

Javimetal avatar Javimetal commented on August 12, 2024

Thanks! It is working now.

from taskbar.

Javimetal avatar Javimetal commented on August 12, 2024

Hi, do you think is it possible to focus on the taskbar when using an IR remote controller?

I do not know if you have time, we can talk if you want about a good idea.

Thanks

from taskbar.

farmerbb avatar farmerbb commented on August 12, 2024

The way that Taskbar is architected right now does not allow for focusing using any kind of four-way directional input. System overlays (which is what Taskbar uses) come with a lot of limitations and not a whole lot of flexibility.

from taskbar.

Related Issues (20)

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.