Project

General

Profile

« Previous | Next » 

Revision e847c553

Added by Leszek Koltunski about 2 years ago

Make 'downloaded' debugs controlled by a single boolean.

View differences:

src/main/java/org/distorted/objects/RubikObject.java
37 37
import org.distorted.patterns.RubikPatternList;
38 38

  
39 39
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE;
40
import static org.distorted.main.RubikActivity.SHOW_DOWNLOADED_DEBUG;
40 41

  
41 42
///////////////////////////////////////////////////////////////////////////////////////////////////
42 43

  
......
85 86

  
86 87
  RubikObject(RubikObjectList.DownloadedObject object)
87 88
    {
88
    android.util.Log.e("D", "new downloaded RubikObject "+object.shortName+" added");
89
    if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "new downloaded RubikObject "+object.shortName+" added");
89 90

  
90 91
    mLowerName     = object.shortName;
91 92
    mUpperName     = object.shortName.toUpperCase();
......
111 112

  
112 113
    if( object.objectMinor>JsonWriter.VERSION_OBJECT_MINOR )
113 114
      {
114
      android.util.Log.e("D", "Updating RubikObject's "+object.shortName+" main JSON");
115
      if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Updating RubikObject's "+object.shortName+" main JSON");
115 116

  
116 117
      mObjectMinor = object.objectMinor;
117 118
      mNumScramble = object.numScrambles;
......
122 123

  
123 124
    if( object.extrasMinor>JsonWriter.VERSION_EXTRAS_MINOR )
124 125
      {
125
      android.util.Log.e("D", "Updating RubikObject's "+object.shortName+" extras JSON");
126
      if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "Updating RubikObject's "+object.shortName+" extras JSON");
126 127

  
127 128
      mExtrasMinor = object.extrasMinor;
128 129
      mExtrasID = -1;

Also available in: Unified diff