forked from upstream-mirrors/OpenTracks
Rename API feature check method
This commit is contained in:
@@ -372,7 +372,7 @@ public class MyTracksProvider extends ContentProvider {
|
|||||||
throw new IllegalArgumentException("Unknown URL " + url);
|
throw new IllegalArgumentException("Unknown URL " + url);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ApiFeatures.getInstance().canUseSQLiteQueryBuilderTwice()) {
|
if (ApiFeatures.getInstance().canReuseSQLiteQueryBuilder()) {
|
||||||
Log.i(MyTracksConstants.TAG,
|
Log.i(MyTracksConstants.TAG,
|
||||||
"Build query: " + qb.buildQuery(projection, selection, selectionArgs,
|
"Build query: " + qb.buildQuery(projection, selection, selectionArgs,
|
||||||
null, null, sortOrder, null));
|
null, null, sortOrder, null));
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ public class ApiFeatures {
|
|||||||
* it'll regenerate the query for the second call, and will screw it
|
* it'll regenerate the query for the second call, and will screw it
|
||||||
* up. Specifically, it'll add extra parens which don't belong.
|
* up. Specifically, it'll add extra parens which don't belong.
|
||||||
*/
|
*/
|
||||||
public boolean canUseSQLiteQueryBuilderTwice() {
|
public boolean canReuseSQLiteQueryBuilder() {
|
||||||
return getApiLevel() > 4;
|
return getApiLevel() > 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user