Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 068dd3d

Browse files
Fixed #74
1 parent 9ced2da commit 068dd3d

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

core/src/main/java/com/dm/material/dashboard/candybar/helpers/WallpaperHelper.java

+10-5
Original file line numberDiff line numberDiff line change
@@ -578,12 +578,17 @@ protected Boolean doInBackground(Bitmap... bitmaps) {
578578

579579
LogUtil.d("generated bitmap: " +bitmap.getWidth() +" x "+ bitmap.getHeight());
580580

581-
if (Preferences.get(context).isApplyLockscreen() &&
582-
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
583-
manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM);
584-
} else {
585-
manager.setBitmap(bitmap);
581+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
582+
if (Preferences.get(context).isApplyLockscreen()) {
583+
manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_LOCK | WallpaperManager.FLAG_SYSTEM);
584+
return true;
585+
}
586+
587+
manager.setBitmap(bitmap, null, true, WallpaperManager.FLAG_SYSTEM);
588+
return true;
586589
}
590+
591+
manager.setBitmap(bitmap);
587592
return true;
588593
}
589594
return false;

core/src/main/res/xml/dashboard_contributors.xml

+6
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,10 @@
1919
image="https://lh3.googleusercontent.com/xzdaNykgAewl8vNKG-CIxeBGWUnr02NV-KBTHRKBCiGD_5ydpBzBGRMep5Nu5MO3G7wcvCFjYLUzEw=w300-no"
2020
link="https://plus.google.com/+KevinTechnologx" />
2121

22+
<contributor
23+
name="Alex “xorRisont” Karpushkin"
24+
contribution=""
25+
image="https://lh3.googleusercontent.com/-MqMhIB_EQFE/AAAAAAAAAAI/AAAAAAAAdj0/Rq1n3j6Mmj8/s300-p-rw-no/photo.jpg"
26+
link="https://plus.google.com/u/1/112638866411130229772" />
27+
2228
</resources>

0 commit comments

Comments
 (0)