Skip to content

Commit

Permalink
fix: Resolve Inheritance Conflict Resolution Error (#344)
Browse files Browse the repository at this point in the history
- This PR fixes an issue in `EnforceDataActivity` where the overridden `onCreateOptionsMenu` method did not accept a nullable Menu. This caused issues when passing null values, potentially leading to build failures. Ref - [Docs](https://www.jot.fm/issues/issue_2005_03/column2/#:~:text=An%20inheritance%20conflict%20arises%20when,accidental%20and%20recombinant%20inheritance%20conflicts.)
  • Loading branch information
PruthiviRaj27 authored Dec 7, 2024
1 parent 71a9449 commit 9e82f22
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class EnforceDataActivity : AbstractWebViewActivity() {
webViewFragment.addJavascriptInterface(JavaScriptInterface(), "AndroidInterface")
}

override fun onCreateOptionsMenu(menu: Menu?): Boolean {
override fun onCreateOptionsMenu(menu: Menu): Boolean {
menuInflater.inflate(R.menu.logout, menu)
return true
}
Expand Down

0 comments on commit 9e82f22

Please sign in to comment.