GithubHelp home page GithubHelp logo

Comments (10)

xorRisont avatar xorRisont commented on May 29, 2024 1

WORKS!
I changed (WallpaperHelper.java:521):

if (Preferences.get(context).isApplyLockscreen() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM); } else { manager.setBitmap(bitmap); }

to

if (Preferences.get(context).isApplyLockscreen() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM); } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){ manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_SYSTEM); }

from wallpaperboard.

danimahardhika avatar danimahardhika commented on May 29, 2024 1

This one is better @xorRisont, I'll fix this soon

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
    if (Preferences.get(context).isApplyLockscreen()) {
        manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM);
        return true;
    }

    manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_SYSTEM);
    return true;
}

manager.setBitmap(bitmap);
return true;

from wallpaperboard.

danimahardhika avatar danimahardhika commented on May 29, 2024

It should be disabled in Wallpaper Setting

There's no problem with the code

if (Preferences.get(context).isApplyLockscreen() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
    manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM);
} else {
    manager.setBitmap(bitmap);
}

from wallpaperboard.

xorRisont avatar xorRisont commented on May 29, 2024

It should be disabled on Wallpaper Setting

When i disable in Walppaper Setting - wallpaper anyway applies on the lockscreen

from wallpaperboard.

danimahardhika avatar danimahardhika commented on May 29, 2024

@xorRisont What device are you using? Do you use custom rom?

from wallpaperboard.

xorRisont avatar xorRisont commented on May 29, 2024

What device are you using? Do you use custom rom?

on 2 devices:
Nexus 6P | Nitrogen OS 7.1.2
OnePlus 3T | stock rom

from wallpaperboard.

danimahardhika avatar danimahardhika commented on May 29, 2024

@xorRisont Did you modify the library?

from wallpaperboard.

xorRisont avatar xorRisont commented on May 29, 2024

@danimahardhika

Did you modify the library?

Yes, but i have this trouble in WallpaperBoard Demo (from Google Play)
I can make video demonstration

from wallpaperboard.

danimahardhika avatar danimahardhika commented on May 29, 2024

@xorRisont I'm using lg g5 with nougat, everything works fine. Try to clear data.

from wallpaperboard.

xorRisont avatar xorRisont commented on May 29, 2024

@danimahardhika on Galaxy S8 and J5 this bug too.
Clear appdata doesn't help

from wallpaperboard.

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.