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

Unverified Commit 6eb865d3 authored by Gokul Swaminathan's avatar Gokul Swaminathan Committed by GitHub
Browse files

Merge pull request #36 from PFayoux/patch-1

Correct Bug #27
parents 51ec75ec 05f0c167
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -322,7 +322,10 @@ public class MainActivity extends ProgressActivity implements OnPageChangeListen
            Cursor cursor = getContentResolver().query(uri, null, null, null, null);
            try {
                if (cursor != null && cursor.moveToFirst()) {
                    result = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
                    int indexDisplayName = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
                    if (indexDisplayName != -1) {
                        result = cursor.getString(indexDisplayName);
                    }
                }
            } finally {
                if (cursor != null) {