We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3aecb8f commit ca6c461Copy full SHA for ca6c461
app/src/main/java/com/duckduckgo/app/browser/BrowserActivity.kt
@@ -840,9 +840,11 @@ open class BrowserActivity : DuckDuckGoActivity() {
840
val fragment = duckAiFragment
841
if (fragment?.isVisible == true) {
842
animateDuckAiFragmentOut {
843
- val transaction = supportFragmentManager.beginTransaction()
844
- transaction.hide(fragment)
845
- transaction.commit()
+ if (!supportFragmentManager.isStateSaved) {
+ val transaction = supportFragmentManager.beginTransaction()
+ transaction.hide(fragment)
846
+ transaction.commit()
847
+ }
848
}
849
850
0 commit comments