aboutsummaryrefslogtreecommitdiffstats
path: root/sdk
diff options
context:
space:
mode:
Diffstat (limited to 'sdk')
-rw-r--r--sdk/src/java/cyanogenmod/hardware/LiveDisplayConfig.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sdk/src/java/cyanogenmod/hardware/LiveDisplayConfig.java b/sdk/src/java/cyanogenmod/hardware/LiveDisplayConfig.java
index 9e499ce..81945f7 100644
--- a/sdk/src/java/cyanogenmod/hardware/LiveDisplayConfig.java
+++ b/sdk/src/java/cyanogenmod/hardware/LiveDisplayConfig.java
@@ -132,7 +132,8 @@ public class LiveDisplayConfig implements Parcelable {
ParcelInfo parcelInfo = Concierge.prepareParcel(out);
// ==== FIG =====
- out.writeLong(mCapabilities.toLongArray()[0]);
+ long[] caps = mCapabilities.toLongArray();
+ out.writeLong(caps != null && caps.length > 0 ? caps[0] : 0L);
out.writeInt(mDefaultMode);
out.writeInt(mDefaultDayTemperature);
out.writeInt(mDefaultNightTemperature);