Skip to content

Commit

Permalink
Only refresh grid size when grid is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AbandonedCart committed Aug 10, 2024
1 parent 957ff86 commit 67706c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ class BrowserFragment : Fragment(), OnFoomiiboClickListener {
}

fun onConfigurationChanged() {
if (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 @@ -944,6 +944,7 @@ class EliteBankFragment : Fragment(), EliteBankAdapter.OnAmiiboClickListener {
}

fun onConfigurationChanged() {
if (settings.amiiboView != BrowserSettings.VIEW.IMAGE.value) return
browserActivity?.let { activity ->
amiiboFilesView?.layoutManager = GridLayoutManager(activity, activity.columnCount)
}
Expand Down

0 comments on commit 67706c1

Please sign in to comment.