Skip to content

Commit

Permalink
Don't verify settings before it actually exists
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Sep 12, 2024
1 parent 7881540 commit 5d759e2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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 21
targetSdk 34
versionName "4.2.5"
versionName "4.2.6"
versionCode = versionName.replace(".","").toInteger() * 10

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

fun onConfigurationChanged() {
if (settings.amiiboView != BrowserSettings.VIEW.IMAGE.value) return
if (!this::settings.isInitialized || settings.amiiboView
!= BrowserSettings.VIEW.IMAGE.value) return
browserActivity?.let { activity ->
browserContent?.layoutManager = GridLayoutManager(activity, activity.columnCount)
foomiiboContent?.layoutManager = GridLayoutManager(activity, activity.columnCount)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,6 @@ class NfcActivity : AppCompatActivity() {
} catch (ignored: IOException) {
}
}
tagExpired = false
}
}

Expand Down Expand Up @@ -662,7 +661,7 @@ class NfcActivity : AppCompatActivity() {
} catch (e: Exception) {
Debug.warn(e)
Debug.getExceptionCause(e)?.let { error ->

showError(error)
} ?: {
showError(getString(R.string.error_unknown))
try {
Expand Down

0 comments on commit 5d759e2

Please sign in to comment.