You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Notes disappear when sorting by due date and don't show up. They aren't lost and return when sorting via another method, but the only thing that shoes up when sorting by due date is the day headers and not the actual items.
how To Reproduce
Open left hand menu
Long click on a list
Sort by Due Date
I can't replicate.
I will publish an update in a few days.
Can you try uninstalling the app, installing that update, and rewriting the notes to see if it still happens ?
Yeah, I'm still experiencing it. I'm wondering if my notes file is just corrupt, but it still doesn't work when I add new notes. Very weird.
Jun 22, 2024 5:47:07 AM Campello Manuel ***@***.***>:
I can now replicate this on a Google Pixel 8a with the stock rom on Android 14.
Updates:
It does not affect how data is saved in the DB, because the app exports the notes correctly
It does not happen on the android emulator for API 34
It happens as far back as in version 6.0.0-beta5
It happens both on a physical google pixel 8a and on the API 35 AVD image of the SDK
The code to present the GUI already receives incorrect data, so it's not a GUI issue
SQLite version
on the Google Pixel 8a: 3.32.2 ; bug is present
on the API 34 emulator: 3.39.2 2022-07-21 ; bug is NOT present
on the API 35 emulator: 3.44.3 2024-03-24 ; bug is present
The problem is in query() in MyContentProvider.java where the line .query(Task.getSECTION_DATE_VIEW_NAME(listId) runs this sql
SELECT _id, title, note, completed, due, updated, lft, rgt, dblist, locked FROM sectioned_date_view_1 WHERE dblist IS '1'ORDER BY secret_typeid,due,secret_typeid2
The query says WHERE dblist IS '1' but some records are saved with dblist = '1' and some with dblist = 1. Android versions up to API 34 did not care about this difference, but on the Google Pixel 8a and on the API 35 AVD image of the SDK, '1' is not equal to 1 in SQLite queries, so the notes are not taken from the database, leading to only the headers being shown.
Also, on the API 34 emulator, on the view sectioned_date_view_1 column dblist is created as INTEGER type, while on the API 35 emulator, it's a BLOB type.
@JJ840 update 7.1.9 is now available on f-droid and the play store. The bug with the dates should be fixed. Can you try the app and tell me if it works ?
Activity
CampelloManuel commentedon Feb 9, 2024
i tried making a list and sorting by date, but i can't replicate. This happens in the app, not in the widget, correct ?
i will try it on other devices in the future, to see if i can replicate.
that menu is a placeholder, the feature is still a work in progress
CampelloManuel commentedon May 1, 2024
I can't replicate.
I will publish an update in a few days.
Can you try uninstalling the app, installing that update, and rewriting the notes to see if it still happens ?
CampelloManuel commentedon Jun 22, 2024
@JJ840 update 7.1.8 is now available. Can you verify if the bug is still present ?
JJ840 commentedon Jun 22, 2024
CampelloManuel commentedon Sep 10, 2024
I can now replicate this on a Google Pixel 8a with the stock rom on Android 14.
Updates:
query()inMyContentProvider.javawhere the line.query(Task.getSECTION_DATE_VIEW_NAME(listId)runs this sqlThe query says
WHERE dblist IS '1'but some records are saved withdblist = '1'and some withdblist = 1. Android versions up to API 34 did not care about this difference, but on the Google Pixel 8a and on the API 35 AVD image of the SDK, '1' is not equal to 1 in SQLite queries, so the notes are not taken from the database, leading to only the headers being shown.Also, on the API 34 emulator, on the view
sectioned_date_view_1columndblistis created as INTEGER type, while on the API 35 emulator, it's aBLOBtype.Update tests with the fix for #525
Cast dblist as INTEGER to fix spacecowboy#525
CampelloManuel commentedon Sep 19, 2024
@JJ840 update 7.1.9 is now available on f-droid and the play store. The bug with the dates should be fixed. Can you try the app and tell me if it works ?