aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/DataStore.java
Commit message (Collapse)AuthorAgeFilesLines
* Remove empty JavaDoc @param and @returnSamuel Tardieu2015-02-101-26/+0
|
* Do not require RxJavaAsyncUtils anymoreSamuel Tardieu2015-02-051-6/+5
|
* refactoring: use upper case SQL keywords as is customarySamuel Tardieu2015-01-301-5/+5
|
* refactoring: use a prepared statement to check for cache presenceSamuel Tardieu2015-01-301-2/+3
| | | | Also, the previous code was locking on a purely local variable.
* Upgrade to RxAndroid 0.24.0Samuel Tardieu2015-01-071-2/+2
|
* Do not lazy load fields if the cache doesn't come from the databaseSamuel Tardieu2015-01-071-1/+1
| | | | | | | | | | When a cache is stored in the database, some fields are lazily loaded from the database. This should only happen when the cache itself has been loaded from the database, otherwise we might fill fields of a cache acquired from the network with older version of the fields as stored in the database. Noticed during the work on #4576.
* Use a non-volatile variable to avoid warningSamuel Tardieu2015-01-061-2/+3
| | | | | Testing the value of a volatile entity for nullness doesn't give any clue on its *continued* nullness. The tooling knows that and complains.
* fix #4591: refreshing without progress leads to ANRSamuel Tardieu2015-01-061-87/+76
|
* fix #4570: inconsistency of pictures in image tabSamuel Tardieu2015-01-061-91/+110
|
* #4557: refactoring: use double checked lockingBananeweizen2015-01-041-31/+37
| | | also convert PreparedStatement to an enum
* fix #4557: NPE when performing backupBananeweizen2015-01-041-7/+8
|
* Use only one shared images directorySamuel Tardieu2015-01-031-0/+3
| | | | | | The user avatar used to be stored under the "_others" pseudo-geocode while other data not tied to a particular cache was stored under "shared". Now, everything is now in "shared".
* remove redundant code for cache size null checksBananeweizen2015-01-021-1/+1
|
* use more nullable annotationsBananeweizen2015-01-011-6/+49
| | | | | | | * make the DataStore methods use explicit nullable or nonnull return values * remove the null return of getStoredList() * unfortunately many of the test methods need an assert() statement to make Eclipse understand the null logic
* Merge remote-tracking branch 'origin/release'Bananeweizen2014-12-301-0/+2
|\
| * fix #4558: NPE in TrackableActivityBananeweizen2014-12-261-0/+2
| |
* | Fixes #3797, Waypoints from personal note not removedrsudev2014-12-131-1/+3
|/ | | | | | - make 'personal note' waypoints 'own' (allowing deletion by user) - never delete them automatically - changed place of note parsing to allow correct duplicate detection
* Fix Javadoc bogus referencesSamuel Tardieu2014-11-231-9/+5
|
* remove unused code and JavadocBananeweizen2014-11-211-3/+0
|
* fix #4450: crash after performing backupSamuel Tardieu2014-11-211-4/+5
|
* Tiny cleanup of DataStoreSamuel Tardieu2014-11-201-26/+26
|
* Cleanup the database from within the DataStore classSamuel Tardieu2014-11-201-45/+53
|
* Use a scheduler instead of a thread to update bubble countSamuel Tardieu2014-11-201-0/+23
|
* Use a scheduler instead of a thread to remove old directoriesSamuel Tardieu2014-11-201-3/+4
|
* rename packageBananeweizen2014-11-021-2/+2
| | | | The package not only contains the GeoPoint definition, but other location related classes, too.
* Add a Geocache.getGeocodes helper for a common patternSamuel Tardieu2014-10-281-3/+1
|
* refactoring: avoid repeated stringbuilder for queriesBananeweizen2014-10-101-124/+82
| | | | | Our prepared SQL statements actually created a Stringbuilder for concatenation of the query string on each invocation, even with the statements already being prepared.
* Name ignored catch parameter as suchSamuel Tardieu2014-09-091-3/+3
|
* refactoring: use interface types instead of implementationBananeweizen2014-09-071-2/+2
|
* Merge branch 'release' into upstreamSamuel Tardieu2014-08-301-1/+2
|\
| * fix #4277: cannot get trackables as suggestionsSamuel Tardieu2014-08-301-1/+2
| |
* | Merge remote-tracking branch 'origin/release'Bananeweizen2014-08-261-5/+10
|\ \ | |/
| * fix #4225: avoid exception from search suggestionsBananeweizen2014-08-261-5/+10
| |
* | minor performance optimization when reading cachesBananeweizen2014-08-231-2/+2
| |
* | Remove additional commaSamuel Tardieu2014-08-211-1/+1
| | | | | | | | | | Recent Android versions seem to accept the extra comma when compiling the statement, while some of them don't and choke on it.
* | Remove latitude and longitude from lists tableSamuel Tardieu2014-08-211-2/+0
| | | | | | | | Part of #651.
* | fix #1628: remove latlon column in database tablesSamuel Tardieu2014-08-211-51/+44
| | | | | | | | | | This does not require a database version update (see #651) as this column is simply ignored if it is present.
* | Remove the unused latlon field in waypointsSamuel Tardieu2014-08-211-4/+1
| | | | | | | | Related to #1628.
* | remove unused codeBananeweizen2014-08-041-4/+0
| |
* | refactoring: avoid optimization of TEMPORARY_LISTBananeweizen2014-08-041-2/+2
| |
* | Use EnumMap where availableSamuel Tardieu2014-08-041-1/+2
| |
* | Remove unused methodsSamuel Tardieu2014-08-041-21/+0
|/
* switch to Java 1.7Bananeweizen2014-07-171-23/+23
| | | | At least since march both ADT and Android Studio support Java 7 features in Android development. Let's use them.
* fix several name shadowing occurrencesBananeweizen2014-06-291-23/+23
|
* Upgrade RxJava to version 0.19Samuel Tardieu2014-06-091-2/+2
|
* new: icons in search suggestionsBananeweizen2014-06-011-2/+3
|
* new: show recently opened caches in global searchBananeweizen2014-06-011-159/+170
| | | | | | | Without any search term given, the search suggestions now contain the most recent caches. We should probably add a more explicit UI on the main screen for that, too, as discussed before.
* Load friends logs and own log in parallelSamuel Tardieu2014-05-131-10/+6
|
* fix: don't show suggestion which cannot be foundBananeweizen2014-05-111-1/+1
| | | | | | Until now the owner display text was suggested when searching for the owner. But the online search only searches for the user real name. E.g. when a cache displayed "X and Y" as owner, the real owner is often only "X".
* Revert "Call vacuum when cleaning the database"Samuel Tardieu2014-05-111-4/+0
| | | | | | This reverts commit 5133e107e51e7e97f40644fc9dcad6a9ba42ac28. Fix for #3827.