Skip to content

Commit

Permalink
Catch a crash caused by early termination
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Feb 4, 2024
1 parent 59503bf commit 90b929b
Show file tree
Hide file tree
Showing 4 changed files with 96,101 additions and 104,602 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
compileSdk 34
minSdk 19
targetSdk 34
versionName "4.1.5"
versionName "4.1.6"
versionCode = versionName.replace(".","").toInteger() * 10

vectorDrawables {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class BrowserFragment : Fragment(), OnFoomiiboClickListener {

fun setAmiiboStats() {
statsHandler.removeCallbacksAndMessages(null)
if (isDetached) return
if (isDetached || null == context) return
browserActivity?.let { activity ->
if (activity.viewPager.currentItem != 0) return
currentFolderView?.run {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import java.io.IOException
import java.math.BigInteger
import java.security.MessageDigest

class Infinity(mifare: MifareClassic?) : TagTechnology {
class Infinity(mifare: MifareClassic?) : TagTechnology { // Mifare Mini

private val magicNumbers: Array<BigInteger> = arrayOf(
BigInteger("3"), BigInteger("5"),
Expand Down
Loading

0 comments on commit 90b929b

Please sign in to comment.