File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe/player/helper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package org .schabi .newpipe .player .helper ;
22
3+ import static org .schabi .newpipe .MainActivity .DEBUG ;
4+
35import android .content .Context ;
46import android .util .Log ;
57
@@ -199,7 +201,9 @@ private static YoutubeHttpDataSource.Factory getYoutubeHttpDataSourceFactory(
199201 private static void instantiateCacheIfNeeded (final Context context ) {
200202 if (cache == null ) {
201203 final File cacheDir = new File (context .getExternalCacheDir (), CACHE_FOLDER_NAME );
202- Log .d (TAG , "instantiateCacheIfNeeded: cacheDir = " + cacheDir .getAbsolutePath ());
204+ if (DEBUG ) {
205+ Log .d (TAG , "instantiateCacheIfNeeded: cacheDir = " + cacheDir .getAbsolutePath ());
206+ }
203207 if (!cacheDir .exists () && !cacheDir .mkdir ()) {
204208 Log .w (TAG , "instantiateCacheIfNeeded: could not create cache dir" );
205209 }
You can’t perform that action at this time.
0 commit comments