GithubHelp home page GithubHelp logo

最新这一版有BUG about sweettips HOT 3 OPEN

taany6210 avatar taany6210 commented on June 12, 2024
最新这一版有BUG

from sweettips.

Comments (3)

HuanHaiLiuXin avatar HuanHaiLiuXin commented on June 12, 2024

1:在SweetToast的initConfiguration里面有一行
params.type = WindowManager.LayoutParams.TYPE_PHONE;
你把这句换成 params.type = WindowManager.LayoutParams.TYPE_TOAST;
或者
params.type = WindowManager.LayoutParams.TYPE_SYSTEM_ALERT;
试一下能不能解决;
2:1如果解决不了你再看一下是不是有权限没有打开;我没款机器,暂时验证不了。

from sweettips.

taany6210 avatar taany6210 commented on June 12, 2024

params.type = WindowManager.LayoutParams.TYPE_TOAST;这句代码可以,我试了华为 魅蓝note2 OPPO vivo 都可以,但是华为弹出需要一个权限问题,他默认关闭的。这个权限是个麻烦事。

from sweettips.

HuanHaiLiuXin avatar HuanHaiLiuXin commented on June 12, 2024

恩,在6.0以上会涉及到权限问题。还是挺烦的,网上有一些权限动态申请的文章,可以继续把代码继续优化一下

from sweettips.

Related Issues (5)

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.