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

Skip to content
Commit 05e0b9de authored by Craig G's avatar Craig G Committed by Michael Bestas
Browse files

Eleven: Fix integer overflow

The exception below occurs when the _id field from the media database is
read as an integer instead of a long.  The call stack above this function
correctly returns long values.

Caused by: java.lang.UnsupportedOperationException: Unknown or unsupported URL: content://media/external/audio/artists/-1755600233/albums
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:174)
	at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
	at android.content.ContentProviderProxy.query(ContentProviderNative.java:472)
	at android.content.ContentResolver.query(ContentResolver.java:1183)
	at android.content.ContentResolver.query(ContentResolver.java:1115)
	at android.content.ContentResolver.query(ContentResolver.java:1071)
	at org.lineageos.eleven.loaders.AlbumLoader.makeAlbumCursor(AlbumLoader.java:150)
	at org.lineageos.eleven.loaders.AlbumLoader.loadInBackground(AlbumLoader.java:76)
	at org.lineageos.eleven.loaders.AlbumLoader.loadInBackground(AlbumLoader.java:41)
	at androidx.loader.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:307)
	at androidx.loader.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:60)
	at androidx.loader.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:48)
	at androidx.loader.content.ModernAsyncTask$2.call(ModernAsyncTask.java:141)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)

Change-Id: If2250f119136744be0f28718c85f67c3b9c64327
parent efe30260
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment