Skip to content

Commit

Permalink
bugfix: prevent app crash if packagename changed (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
int3debug authored Jun 2, 2024
1 parent 9674b68 commit 9859878
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9859878

Please sign in to comment.