Revision e847c553
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/external/RubikNetwork.java | ||
---|---|---|
42 | 42 |
import org.distorted.objects.RubikObjectList; |
43 | 43 |
|
44 | 44 |
import static org.distorted.objects.RubikObjectList.MAX_LEVEL; |
45 |
import static org.distorted.main.RubikActivity.SHOW_DOWNLOADED_DEBUG; |
|
45 | 46 |
|
46 | 47 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
47 | 48 |
|
... | ... | |
714 | 715 |
icon = downloadIcon(url); |
715 | 716 |
downloaded = true; |
716 | 717 |
|
717 |
android.util.Log.e("D", "Downloading icon "+url); |
|
718 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Downloading icon "+url);
|
|
718 | 719 |
} |
719 | 720 |
if( icon!=null ) |
720 | 721 |
{ |
... | ... | |
739 | 740 |
icon = downloadIcon(url); |
740 | 741 |
downloaded = true; |
741 | 742 |
|
742 |
android.util.Log.e("D", "Downloading icon "+url); |
|
743 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Downloading icon "+url);
|
|
743 | 744 |
} |
744 | 745 |
if( icon!=null ) |
745 | 746 |
{ |
... | ... | |
758 | 759 |
|
759 | 760 |
try |
760 | 761 |
{ |
761 |
android.util.Log.e("D", "Downloading JSON "+url); |
|
762 |
if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Downloading JSON "+url);
|
|
762 | 763 |
|
763 | 764 |
java.net.URL connectURL = new URL(url); |
764 | 765 |
HttpURLConnection conn = (HttpURLConnection) connectURL.openConnection(); |
Also available in: Unified diff
Make 'downloaded' debugs controlled by a single boolean.