Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
For mozilla-mobile#22471: Exit Immersive Mode after being launched fr…
Browse files Browse the repository at this point in the history
…om intents while in PiP
  • Loading branch information
czlucius committed Feb 8, 2022
1 parent d1b3c49 commit b739410
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/org/mozilla/fenix/HomeActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import mozilla.components.support.ktx.android.arch.lifecycle.addObservers
import mozilla.components.support.ktx.android.content.call
import mozilla.components.support.ktx.android.content.email
import mozilla.components.support.ktx.android.content.share
import mozilla.components.support.ktx.android.view.exitImmersiveModeIfNeeded
import mozilla.components.support.ktx.kotlin.isUrl
import mozilla.components.support.ktx.kotlin.toNormalizedUrl
import mozilla.components.support.locale.LocaleAwareAppCompatActivity
Expand Down Expand Up @@ -294,6 +295,7 @@ open class HomeActivity : LocaleAwareAppCompatActivity(), NavHostActivity {
// Exit PiP mode
moveTaskToBack(false)
startActivity(Intent(this, this::class.java).setFlags(FLAG_ACTIVITY_REORDER_TO_FRONT))
exitImmersiveModeIfNeeded()
}
}

Expand Down

0 comments on commit b739410

Please sign in to comment.