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

Commit 44f476eb authored by Shane's avatar Shane
Browse files

Fix Nova issue by removing getAlpha

Fix the NullPointerException issue when lauching the Nova 7 lanucher by
removing the getAlpha check in the getSizePercentage method. It
shouldn't alter the existing behavior.

Bug: 310788013
Test: atest ViewTest
Change-Id: I23fc2747434a96658b809f4091699f601326712b
parent c4b42504
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -33018,7 +33018,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
    }
    private float getSizePercentage() {
        if (mResources == null || getAlpha() == 0 || getVisibility() != VISIBLE) {
        if (mResources == null || getVisibility() != VISIBLE) {
            return 0;
        }