We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
onResume
1 parent d2036ab commit 2f409c0Copy full SHA for 2f409c0
app/src/main/java/com/itsaky/androidide/fragments/TemplateListFragment.kt
@@ -96,6 +96,11 @@ class TemplateListFragment :
96
updateSpanCount()
97
}
98
99
+ override fun onResume() {
100
+ super.onResume()
101
+ updateSpanCount()
102
+ }
103
+
104
private fun updateSpanCount() {
105
val isLandscape = resources.configuration.orientation == Configuration.ORIENTATION_LANDSCAPE
106
val maxSpans = if (isLandscape) 6 else 4
0 commit comments