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

Commit 0283a557 authored by Adam Powell's avatar Adam Powell
Browse files

Fix crash setting null seekbar thumb

External bug http://code.google.com/p/android/issues/detail?id=15693

Change-Id: I2f869b4ebd1f0857564c69999abb49285beefd14
parent 26c246a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ public abstract class AbsSeekBar extends ProgressBar {
        invalidate();
        if (needUpdate) {
            updateThumbPos(getWidth(), getHeight());
            if (thumb.isStateful()) {
            if (thumb != null && thumb.isStateful()) {
                // Note that if the states are different this won't work.
                // For now, let's consider that an app bug.
                int[] state = getDrawableState();