Project

General

Profile

« Previous | Next » 

Revision 9bcec50a

Added by Leszek Koltunski about 4 years ago

Report to Crashlytics if we fail to restore preferencees.

View differences:

src/main/java/org/distorted/objects/Cubit.java
191 191
    return -1;
192 192
    }
193 193

  
194
///////////////////////////////////////////////////////////////////////////////////////////////////
195

  
196
  int returnPreferences(SharedPreferences preferences)
197
    {
198
    String number = mOrigPosition.get0()+"_"+mOrigPosition.get1()+"_"+mOrigPosition.get2();
199
    return preferences.getInt("q_"+number, 0);
200
    }
201

  
194 202
///////////////////////////////////////////////////////////////////////////////////////////////////
195 203

  
196 204
  int removeRotationNow(Static4D quat)
src/main/java/org/distorted/objects/TwistyObject.java
444 444

  
445 445
      if( index<0 )
446 446
        {
447
        String debug = mList.name();
448

  
447 449
        for(int j=0; j<NUM_CUBITS; j++)
448 450
          {
451
          debug += (CUBITS[i].returnPreferences(preferences)+" ");
449 452
          CUBITS[j].modifyCurrentPosition(QUATS[0]);
450 453
          mMesh.setEffectAssociation(j, CUBITS[j].computeAssociation(),0);
451 454
          }
455

  
456
        FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance();
457
        crashlytics.log("failed to restore preferences: "+debug);
458

  
452 459
        break;
453 460
        }
454 461

  

Also available in: Unified diff