bugfix: prevent app crash if packagename changed (#8)

master
int3debug 2024-06-03 00:27:08 +02:00 committed by GitHub
parent 9674b68572
commit 9859878455
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}