Skip to content

Commit

Permalink
🐛 Fixed crash issue on new BrowserActivity
Browse files Browse the repository at this point in the history
  • Loading branch information
ejaz4 committed Jan 5, 2022
1 parent ca04758 commit 10e528d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.DotBrowser">
android:theme="@style/Theme.DotBrowser"
android:extractNativeLibs="true">
<activity
android:name=".subactivities.AddressBar"
android:windowSoftInputMode="stateVisible"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/co/dothq/browser/BrowserActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BrowserActivity : AppCompatActivity() {
if (appSetup == false) return;
val view = findViewById<GeckoView>(R.id.geckoview)
val session = GeckoSession()
val runtime = GeckoRuntime.create(this)
val runtime = GeckoRuntime.getDefault(this)

session.open(runtime)
view.setSession(session)
Expand Down

0 comments on commit 10e528d

Please sign in to comment.