standardize SDK version test methods

I just took the most common method, using the SDK int value, and applied
that throughout the code to have it consistent.
This commit is contained in:
Hans-Christoph Steiner
2016-04-02 22:43:08 +02:00
parent 610ead83d0
commit e021eb5ca7
15 changed files with 31 additions and 51 deletions

View File

@@ -172,7 +172,7 @@ public abstract class ProviderTestCase2MockContext<T extends ContentProvider> ex
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private void shutdownProvider() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
if (Build.VERSION.SDK_INT >= 11) {
mProvider.shutdown();
}
}