Merge "DreamManagerService: Handle missing db value" into jb-mr1-dev

This commit is contained in:
John Spurlock
2012-08-25 07:06:08 -07:00
committed by Android (Google) Code Review

View File

@@ -105,7 +105,7 @@ public class DreamManagerService
public ComponentName[] getDreamComponents() { public ComponentName[] getDreamComponents() {
// TODO(dsandler) don't load this every time, watch the value // TODO(dsandler) don't load this every time, watch the value
String names = Settings.Secure.getString(mContext.getContentResolver(), SCREENSAVER_COMPONENTS); String names = Settings.Secure.getString(mContext.getContentResolver(), SCREENSAVER_COMPONENTS);
return componentsFromString(names); return names == null ? null : componentsFromString(names);
} }
// IDreamManager method // IDreamManager method