mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
Fix typos
PiperOrigin-RevId: 287810018
This commit is contained in:
parent
b77717ce91
commit
fefb1a17a0
@ -39,8 +39,8 @@ dependencies {
|
|||||||
testImplementation 'org.robolectric:robolectric:' + robolectricVersion
|
testImplementation 'org.robolectric:robolectric:' + robolectricVersion
|
||||||
// Do not update to 3.13.X or later until minSdkVersion is increased to 21:
|
// Do not update to 3.13.X or later until minSdkVersion is increased to 21:
|
||||||
// https://cashapp.github.io/2019-02-05/okhttp-3-13-requires-android-5
|
// https://cashapp.github.io/2019-02-05/okhttp-3-13-requires-android-5
|
||||||
// Since OkHttp is distributed as a jar rather than an aar, Gradle wont stop
|
// Since OkHttp is distributed as a jar rather than an aar, Gradle won't
|
||||||
// us from making this mistake!
|
// stop us from making this mistake!
|
||||||
api 'com.squareup.okhttp3:okhttp:3.12.5'
|
api 'com.squareup.okhttp3:okhttp:3.12.5'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ public final class Requirements implements Parcelable {
|
|||||||
private static boolean isInternetConnectivityValidated(ConnectivityManager connectivityManager) {
|
private static boolean isInternetConnectivityValidated(ConnectivityManager connectivityManager) {
|
||||||
// It's possible to query NetworkCapabilities from API level 23, but RequirementsWatcher only
|
// It's possible to query NetworkCapabilities from API level 23, but RequirementsWatcher only
|
||||||
// fires an event to update its Requirements when NetworkCapabilities change from API level 24.
|
// fires an event to update its Requirements when NetworkCapabilities change from API level 24.
|
||||||
// Since Requirements wont be updated, we assume connectivity is validated on API level 23.
|
// Since Requirements won't be updated, we assume connectivity is validated on API level 23.
|
||||||
if (Util.SDK_INT < 24) {
|
if (Util.SDK_INT < 24) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -204,7 +204,7 @@ public class SimpleCacheTest {
|
|||||||
simpleCache.releaseHoleSpan(cacheSpan2);
|
simpleCache.releaseHoleSpan(cacheSpan2);
|
||||||
simpleCache.removeSpan(simpleCache.getCachedSpans(KEY_2).first());
|
simpleCache.removeSpan(simpleCache.getCachedSpans(KEY_2).first());
|
||||||
|
|
||||||
// Don't release the cache. This means the index file wont have been written to disk after the
|
// Don't release the cache. This means the index file won't have been written to disk after the
|
||||||
// data for KEY_2 was removed. Move the cache instead, so we can reload it without failing the
|
// data for KEY_2 was removed. Move the cache instead, so we can reload it without failing the
|
||||||
// folder locking check.
|
// folder locking check.
|
||||||
File cacheDir2 =
|
File cacheDir2 =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user