Revision ac130d72
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/objects/Cubit.java | ||
---|---|---|
21 | 21 |
|
22 | 22 |
import android.content.SharedPreferences; |
23 | 23 |
|
24 |
import com.google.firebase.crashlytics.FirebaseCrashlytics; |
|
25 |
|
|
24 | 26 |
import org.distorted.library.effect.MatrixEffectMove; |
25 | 27 |
import org.distorted.library.effect.MatrixEffectQuaternion; |
26 | 28 |
import org.distorted.library.effect.MatrixEffectRotate; |
... | ... | |
311 | 313 |
mParent.mRotationAngleMiddle.set0( nearestAngleInDegrees + (nearestAngleInDegrees-startingAngle)*0.2f ); |
312 | 314 |
return setUpCallback(listener); |
313 | 315 |
} |
314 |
|
|
315 |
return 0; |
|
316 |
else |
|
317 |
{ |
|
318 |
FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance(); |
|
319 |
crashlytics.setCustomKey("points", "finish, points in RotationAngle: "+pointNum ); |
|
320 |
return 0; |
|
321 |
} |
|
316 | 322 |
} |
317 | 323 |
|
318 | 324 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
334 | 340 |
float cosA = (float)Math.cos(nearestAngleInRadians*0.5); |
335 | 341 |
return new Static4D( axisX*sinA, axisY*sinA, axisZ*sinA, cosA); |
336 | 342 |
} |
337 |
|
|
338 |
return null; |
|
343 |
else |
|
344 |
{ |
|
345 |
FirebaseCrashlytics crashlytics = FirebaseCrashlytics.getInstance(); |
|
346 |
crashlytics.setCustomKey("points", "return, points in RotationAngle: "+pointNum ); |
|
347 |
return null; |
|
348 |
} |
|
339 | 349 |
} |
340 | 350 |
|
341 | 351 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
There's a real crash from the field in Firebase Crashlytics which must mean that Cubit.returnRotationAngle() returned null.
Leave some message in case this happens again.