File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/src/main/kotlin/org/emunix/insteadlauncher/ui/dialogs Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (c) 2019-2020 Boris Timofeev <btimofeev@emunix.org>
2
+ * Copyright (c) 2019-2021 Boris Timofeev <btimofeev@emunix.org>
3
3
* Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT).
4
4
*/
5
5
@@ -26,11 +26,12 @@ class DeleteGameDialog : DialogFragment() {
26
26
27
27
override fun onCreateDialog (savedInstanceState : Bundle ? ): Dialog {
28
28
val game = requireArguments().getString(" game" )
29
+ require(game != null )
29
30
return MaterialAlertDialogBuilder (requireContext(), R .style.AppTheme_AlertDialogOverlay )
30
31
.setTitle(R .string.dialog_delete_game_title)
31
32
.setMessage(R .string.dialog_delete_game_text)
32
33
.setPositiveButton(R .string.dialog_delete_game_positive_button) { _, _ ->
33
- DeleteGame .start(requireContext().applicationContext, game!! )
34
+ DeleteGame .start(requireContext().applicationContext, game)
34
35
}
35
36
.setNegativeButton(R .string.dialog_delete_game_negative_button) { dialog, _ ->
36
37
dialog.cancel()
You can’t perform that action at this time.
0 commit comments