In a snackbar action, how can I be sure it's safe to permanently delete a soft-deleted record from the database?

后端 未结 5 1273
轻奢々
轻奢々 2021-02-04 02:29

I am using Snackbar in android and I have implemented an action so that user can undo the action (the action is clearing all the items in the listview).Removing and adding the i

5条回答
  •  渐次进展
    2021-02-04 03:17

    My way is to hv "deleted" column that is boolean, just change the stat to be true if deleted then undo to change back stat to be false, also u maybe want trash controller or scheduler to delete all the false values on every week.

提交回复
热议问题