mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-28 21:33:53 +01:00
BookmarkItemsDao.java: Added @SuppressLint("Range"), as -1 is expected behavior not index doesn't exist for getColumnIndex()
This commit is contained in:
parent
8bc2094db8
commit
68c671a870
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
package fr.free.nrw.commons.bookmarks.items;
|
package fr.free.nrw.commons.bookmarks.items;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.content.ContentProviderClient;
|
import android.content.ContentProviderClient;
|
||||||
import android.content.ContentValues;
|
import android.content.ContentValues;
|
||||||
import android.database.Cursor;
|
import android.database.Cursor;
|
||||||
|
|
@ -134,6 +135,7 @@ public class BookmarkItemsDao {
|
||||||
* @param cursor : Object for storing database data
|
* @param cursor : Object for storing database data
|
||||||
* @return DepictedItem
|
* @return DepictedItem
|
||||||
*/
|
*/
|
||||||
|
@SuppressLint("Range")
|
||||||
DepictedItem fromCursor(final Cursor cursor) {
|
DepictedItem fromCursor(final Cursor cursor) {
|
||||||
final String fileName = cursor.getString(cursor.getColumnIndex(Table.COLUMN_NAME));
|
final String fileName = cursor.getString(cursor.getColumnIndex(Table.COLUMN_NAME));
|
||||||
final String description
|
final String description
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue