Skip to content

Commit fb956ef

Browse files
authored
Fix crash for the playground demo app. (#337)
Fix the types of the arguments that may be passed as null;
1 parent 9732648 commit fb956ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demo-playground/src/main/java/com/google/android/flexbox/SettingsActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ internal class SettingsActivity : FragmentActivity() {
4343
*/
4444
class SettingsFragment : PreferenceFragmentCompat() {
4545

46-
override fun onCreatePreferences(savedInstanceState: Bundle, s: String) {
46+
override fun onCreatePreferences(savedInstanceState: Bundle?, s: String?) {
4747
addPreferencesFromResource(R.xml.new_flex_item_preferences)
4848

4949
val orderPreference = findPreference(

0 commit comments

Comments
 (0)