We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
when i set private final String sort_order = "DESC "; // ASC or DESC
Below method is not working properly. item numbers are not getting saved correctly.
public void persistChanges() { Cursor c = getCursor(); c.moveToPosition(-1); while (c.moveToNext()) { int listPos = getListPosition(c.getPosition()); if (listPos == REMOVED) { mDbHelper .deleteItemRecord(c.getInt(c.getColumnIndex("_id"))); } else if (listPos != c.getPosition()) { mDbHelper.updateItemPosition( c.getInt(c.getColumnIndex("_id")), listPos); } } }
plz correct me if i am wrong
thnks vinit
The text was updated successfully, but these errors were encountered:
No branches or pull requests
when i set private final String sort_order = "DESC "; // ASC or DESC
Below method is not working properly. item numbers are not getting saved correctly.
public void persistChanges() {
Cursor c = getCursor();
c.moveToPosition(-1);
while (c.moveToNext()) {
int listPos = getListPosition(c.getPosition());
if (listPos == REMOVED) {
mDbHelper
.deleteItemRecord(c.getInt(c.getColumnIndex("_id")));
} else if (listPos != c.getPosition()) {
mDbHelper.updateItemPosition(
c.getInt(c.getColumnIndex("_id")), listPos);
}
}
}
plz correct me if i am wrong
thnks
vinit
The text was updated successfully, but these errors were encountered: