Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 681bf60c authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing bounds check.

Change-Id: Ie17b173ef88288076a5cbfdc741b8e105dcda03e
parent 823fd3c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -973,7 +973,7 @@ public class UserManager {

        if (badgeLocation != null) {
            if (badgeLocation.left < 0 || badgeLocation.top < 0
                    || badgeLocation.right > badgedWidth || badgeLocation.bottom > badgedHeight) {
                    || badgeLocation.width() > badgedWidth || badgeLocation.height() > badgedHeight) {
                throw new IllegalArgumentException("Badge location " + badgeLocation
                        + " not in badged drawable bounds "
                        + new Rect(0, 0, badgedWidth, badgedHeight));