Skip to content

Commit

Permalink
fix(android): remove action bar handling (#968)
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir authored Jun 8, 2023
1 parent d3cab06 commit c09dd7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changes/action-bar-android.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wry": "patch"
---

Remove ActionBar handling from wry. If you want to hide the action bar, hide it using the `themes.xml` file in your android project or inherit `WryActivity` class and use `getSupportActionBar()?.hide()` in the `onCreate` method.
1 change: 0 additions & 1 deletion src/webview/android/kotlin/WryActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ abstract class WryActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
create(this)
getSupportActionBar()?.hide()
}

override fun onStart() {
Expand Down

0 comments on commit c09dd7b

Please sign in to comment.