1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 03:11:30 +00:00

Fix lint failure (target 31) (#1869)

This commit is contained in:
Simon Frei 2022-11-27 20:24:14 +01:00 committed by GitHub
parent 01b780e013
commit d8413c6e11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -254,7 +254,7 @@ public class ShareActivity extends StateDialogActivity
); );
if (cursor != null) { if (cursor != null) {
cursor.moveToFirst(); cursor.moveToFirst();
displayName = cursor.getString(cursor.getColumnIndex(displayNameColumn)); displayName = cursor.getString(cursor.getColumnIndexOrThrow(displayNameColumn));
} }
if (cursor != null) { if (cursor != null) {
cursor.close(); cursor.close();