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

Commit b3419595 authored by Adam Powell's avatar Adam Powell Committed by Android (Google) Code Review
Browse files

Merge "QuickSettings - fail gracefully if we can't query the profile data" into jb-mr1-dev

parents d6344d76 db43f472
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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()) {