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

Commit b09767bb authored by Mohit Mali's avatar Mohit Mali
Browse files

Closing Cursor

parent 45f6b02a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -421,7 +421,7 @@ public class AppInfoDashboardFragment extends DashboardFragment
        }
    }

    public static String retrieveStatus(Context context) {
    public String retrieveStatus(Context context) {
        String status = null;
        Cursor c = context.getContentResolver().query(Uri.parse("content://foundation.e.apps.micro.status/cte"), null, "id=?", new String[]{"1"}, "installStatus");
        if (c.moveToFirst()) {
@@ -430,6 +430,7 @@ public class AppInfoDashboardFragment extends DashboardFragment
                android.util.Log.e("TAG", "retrieveStatus: " + c.getString(c.getColumnIndex("installStatus")));
            } while (c.moveToNext());
        }
        c.close();
        return status;
    }