Fixed off-by-one error
This commit is contained in:
parent
0bc90c532b
commit
5a0cc16245
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ public class JuizWallpaper extends WallpaperService {
|
|||
|
||||
int hour = cal.get(cal.HOUR_OF_DAY);
|
||||
boolean offline = !((hour % 12) > i);
|
||||
if (hour > 12) offline = !offline;
|
||||
if (hour >= 12) offline = !offline;
|
||||
int x = (i % 6) * iconWidth;
|
||||
int y = (i / 6) * iconHeight;
|
||||
Rect src = new Rect(x, y, x + iconWidth, y + iconHeight);
|
||||
|
|
Loading…
Reference in a new issue