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

Unverified Commit 05f0c167 authored by Paul Fayoux's avatar Paul Fayoux Committed by GitHub
Browse files

Correct Bug #27

This change correct the error of opening a PDF from the AOSP E-Mail app.
parent 51ec75ec
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) {