Skip to content

Commit

Permalink
Fixes mozilla-mobile#1223: Hide action bar on crash fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
sblatz authored and boek committed Mar 28, 2019
1 parent abf8963 commit 22fcea3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.fragment_crash_reporter.*
Expand Down Expand Up @@ -48,6 +49,11 @@ class CrashReporterFragment : Fragment() {
}
}

override fun onResume() {
super.onResume()
(activity as AppCompatActivity).supportActionBar?.hide()
}

fun navigateHome(fromView: View) {
val directions = CrashReporterFragmentDirections.actionCrashReporterFragmentToHomeFragment()
Navigation.findNavController(fromView).navigate(directions)
Expand Down

0 comments on commit 22fcea3

Please sign in to comment.