diff options
author | 2016-01-25 18:35:09 +0000 | |
---|---|---|
committer | 2016-01-25 18:35:09 +0000 | |
commit | 76c70c8f5cefe35c99eab08af8d3a46146ddb2dd (patch) | |
tree | 7aa0c32bfef69b9549cd518aa3492d1215ff6b0f | |
parent | 2ced3d531c6c5d82db59db79bf8f890fb7acf200 (diff) | |
parent | 25d3a437d5ed44d8f719a1eff9dff3eb7fa2b309 (diff) |
Merge "Fix crash on bug report"
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java index 8e3886bcb2de..aea9e1e15cd1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ButtonDispatcher.java @@ -76,11 +76,11 @@ public class ButtonDispatcher { } public int getVisibility() { - return mVisibility; + return mVisibility != null ? mVisibility : View.VISIBLE; } public float getAlpha() { - return mAlpha; + return mAlpha != null ? mAlpha : 1; } public void setImageDrawable(Drawable drawable) { |