]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/asynctasks/SaveUrl.java
Fix scrolling of the bottom app bar. https://redmine.stoutner.com/issues/791
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / asynctasks / SaveUrl.java
index 6a4671bc7e20b478c9ed4d014efaf0cd3f86dcff..aaa4ce2bf67c171fc96e73eefc60491f3e5f2831 100644 (file)
@@ -80,7 +80,7 @@ public class SaveUrl extends AsyncTask<String, Long, String> {
             contentResolverCursor.moveToFirst();
 
             // Get the file name from the cursor.
-            fileNameString = contentResolverCursor.getString(contentResolverCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
+            fileNameString = contentResolverCursor.getString(contentResolverCursor.getColumnIndexOrThrow(OpenableColumns.DISPLAY_NAME));
 
             // Close the cursor.
             contentResolverCursor.close();