Skip to content

Commit 9859878

Browse files
authored
bugfix: prevent app crash if packagename changed (#8)
1 parent 9674b68 commit 9859878

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ExampleProvider/src/main/kotlin/com/example/BlankFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class BlankFragment(val plugin: TestPlugin) : BottomSheetDialogFragment() {
5959
savedInstanceState: Bundle?
6060
): View? {
6161
// Inflate the layout for this fragment
62-
val id = plugin.resources!!.getIdentifier("fragment_blank", "layout", "com.example")
62+
val id = plugin.resources!!.getIdentifier("fragment_blank", "layout", BuildConfig.LIBRARY_PACKAGE_NAME)
6363
val layout = plugin.resources!!.getLayout(id)
6464
return inflater.inflate(layout, container, false)
6565
}

0 commit comments

Comments
 (0)