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

Commit 64e53307 authored by d34d's avatar d34d Committed by Clark Scheff
Browse files

Close cursor after getting supported components.

Change-Id: I501ff52da7158561d759e4301f47a7665b5f6d3d
parent d8e138b0
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -639,7 +639,8 @@ public class ThemeUtils {
        Cursor c = context.getContentResolver().query(ThemesContract.ThemesColumns.CONTENT_URI,
                null, selection, selectionArgs, null);

        if (c != null && c.moveToFirst()) {
        if (c != null) {
            if (c.moveToFirst()) {
                List<String> allComponents = getAllComponents();
                for (String component : allComponents) {
                    int index = c.getColumnIndex(component);
@@ -648,6 +649,8 @@ public class ThemeUtils {
                    }
                }
            }
            c.close();
        }
        return supportedComponents;
    }