Skip to content

Commit

Permalink
fix: displaying selected task drag handle
Browse files Browse the repository at this point in the history
  • Loading branch information
willemw12 committed Nov 22, 2024
1 parent 1afffd6 commit a5bc4f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ class TaskAdapter(
comp.comparator.compare(from.task, to.task)
val comparison = comp.comparator.compare(from.task, to.task)

return comparison == 0
return comparison != 0
}

// Updates the UI, but avoids the red line
Expand Down
5 changes: 3 additions & 2 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,8 @@ You should have received a copy of the GNU General Public License along with Tod
<string name="lua_config_share">Share</string>
<string name="lua_open_config">Lua config</string>
<string name="use_uuid_title">Assign a UUID to each task</string>
<string name="task_drag_title">Drag tasks to reorder (BETA)</string>
<string name="task_drag_title">Drag tasks to reorder (experimental)</string>
<string name="task_drag_summary">Only some sort filters will display the reordered list.</string>
<string name="nav_drawer_hint">Save the current filter\n
using the save button</string>
<string name="invalid_certificate_msg">Server certificate is invalid. Do you want to continue?</string>
Expand All @@ -426,4 +427,4 @@ You should have received a copy of the GNU General Public License along with Tod
<string name="pin_notification">Pin as notification</string>
<string name="channel_name">Pin notifications</string>
<string name="channel_description">Channel for tasks pinned as notifications</string>
</resources>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/xml/interface_preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,6 @@
<CheckBoxPreference
android:defaultValue="false"
android:key="@string/task_drag"
android:summary="@string/task_drag_summary"
android:title="@string/task_drag_title" />
</PreferenceScreen>

0 comments on commit a5bc4f3

Please sign in to comment.