From 98598784554780b588ff450c9304352ff38fcb60 Mon Sep 17 00:00:00 2001 From: int3debug <164035730+int3debug@users.noreply.github.com> Date: Mon, 3 Jun 2024 00:27:08 +0200 Subject: [PATCH] bugfix: prevent app crash if packagename changed (#8) --- ExampleProvider/src/main/kotlin/com/example/BlankFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExampleProvider/src/main/kotlin/com/example/BlankFragment.kt b/ExampleProvider/src/main/kotlin/com/example/BlankFragment.kt index e4a9c849f..be2dc268b 100644 --- a/ExampleProvider/src/main/kotlin/com/example/BlankFragment.kt +++ b/ExampleProvider/src/main/kotlin/com/example/BlankFragment.kt @@ -59,7 +59,7 @@ class BlankFragment(val plugin: TestPlugin) : BottomSheetDialogFragment() { savedInstanceState: Bundle? ): View? { // Inflate the layout for this fragment - val id = plugin.resources!!.getIdentifier("fragment_blank", "layout", "com.example") + val id = plugin.resources!!.getIdentifier("fragment_blank", "layout", BuildConfig.LIBRARY_PACKAGE_NAME) val layout = plugin.resources!!.getLayout(id) return inflater.inflate(layout, container, false) }