Skip to content

Commit

Permalink
Fix deprecation warning in ShowkaseBrowserActivity.kt (#344)
Browse files Browse the repository at this point in the history
Following the initial PR #339
  • Loading branch information
SimonMarquis committed Aug 25, 2023
1 parent 1888035 commit ba3285c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ShowkaseBrowserActivity : AppCompatActivity() {
): ShowkaseElementsMetadata {
return try {
val showkaseComponentProvider =
Class.forName("$classKey$AUTOGEN_CLASS_NAME").newInstance()
Class.forName("$classKey$AUTOGEN_CLASS_NAME").getDeclaredConstructor().newInstance()

val showkaseMetadata = (showkaseComponentProvider as ShowkaseProvider).metadata()

Expand Down

0 comments on commit ba3285c

Please sign in to comment.