Merge "QuickSettings - fail gracefully if we can't query the profile data" into jb-mr1-dev
This commit is contained in:
@@ -207,6 +207,11 @@ class QuickSettings {
|
||||
Profile.CONTENT_URI, new String[] {Phone._ID, Phone.DISPLAY_NAME},
|
||||
null, null, null);
|
||||
|
||||
if (cursor == null) {
|
||||
// Info not available. Should become available later.
|
||||
return new Pair<String, BitmapDrawable>(null, null);
|
||||
}
|
||||
|
||||
String name = null;
|
||||
try {
|
||||
if (cursor.moveToFirst()) {
|
||||
|
||||
Reference in New Issue
Block a user