mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 15:03:37 +00:00
TEST - Context check before cache dir request
This commit is contained in:
@@ -139,6 +139,5 @@ public class BrowsingClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
}
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null; }
|
||||
}
|
||||
|
||||
@@ -74,6 +74,5 @@ public class MediaAnnotationClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
}
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null; }
|
||||
}
|
||||
|
||||
@@ -65,6 +65,5 @@ public class MediaLibraryScanningClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
}
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null; }
|
||||
}
|
||||
|
||||
@@ -64,6 +64,5 @@ public class MediaRetrievalClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
}
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null; }
|
||||
}
|
||||
|
||||
@@ -81,6 +81,5 @@ public class PlaylistClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
}
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null; }
|
||||
}
|
||||
|
||||
@@ -64,6 +64,5 @@ public class SearchingClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
}
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null; }
|
||||
}
|
||||
|
||||
@@ -64,6 +64,6 @@ public class SystemClient {
|
||||
|
||||
private Cache getCache() {
|
||||
int cacheSize = 10 * 1024 * 1024;
|
||||
return new Cache(context.getCacheDir(), cacheSize);
|
||||
return context != null ? new Cache(context.getCacheDir(), cacheSize) : null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user