Skip to content

Commit

Permalink
Fix ANR related to note count indexing (#1629)
Browse files Browse the repository at this point in the history
* Updating build and target sdk to 34. Use updated gradle

* Add a comment for the reason okhttp is being exluded from tracks.

* Add .java-version file

* Add `standalone` meta for wear app, set to false since it relies on main app to add notes.

* whitespace cleanup

* Lint fixes!

* Additional build fixes.

* Change to equal comparison for allInTag to increase query performance.

* Updating release notes.
  • Loading branch information
roundhill authored Jan 25, 2024
1 parent b76a170 commit 70cf89f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE-NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2.31
-----

* Fixed the app from becoming unresponsive at launch with a large amount of notes.

2.30
-----
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static Query<Note> search(Bucket<Note> noteBucket, String searchString) {
public static Query<Note> allInTag(Bucket<Note> noteBucket, String tag) {
return noteBucket.query()
.where(DELETED_PROPERTY, ComparisonType.NOT_EQUAL_TO, true)
.where(TAGS_PROPERTY, ComparisonType.LIKE, tag);
.where(TAGS_PROPERTY, ComparisonType.EQUAL_TO, tag);
}

public static Query<Note> allWithNoTag(Bucket<Note> noteBucket) {
Expand Down

0 comments on commit 70cf89f

Please sign in to comment.