bugfix: prevent app crash if packagename changed (#8)
parent
9674b68572
commit
9859878455
|
@ -59,7 +59,7 @@ class BlankFragment(val plugin: TestPlugin) : BottomSheetDialogFragment() {
|
||||||
savedInstanceState: Bundle?
|
savedInstanceState: Bundle?
|
||||||
): View? {
|
): View? {
|
||||||
// Inflate the layout for this fragment
|
// 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)
|
val layout = plugin.resources!!.getLayout(id)
|
||||||
return inflater.inflate(layout, container, false)
|
return inflater.inflate(layout, container, false)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue