mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] No issue: Updates crash report back press and string (https://github.com/mozilla-mobile/fenix/pull/1773)
This commit is contained in:
parent
e0bd5a33c3
commit
d26c380c72
@ -33,7 +33,7 @@ class CrashReporterFragment : Fragment() {
|
|||||||
val crash = Crash.fromIntent(CrashReporterFragmentArgs.fromBundle(arguments!!).crashIntent)
|
val crash = Crash.fromIntent(CrashReporterFragmentArgs.fromBundle(arguments!!).crashIntent)
|
||||||
|
|
||||||
view.findViewById<TextView>(R.id.title).text =
|
view.findViewById<TextView>(R.id.title).text =
|
||||||
getString(R.string.tab_crash_title, context!!.getString(R.string.app_name))
|
getString(R.string.tab_crash_title_2, context!!.getString(R.string.app_name))
|
||||||
|
|
||||||
requireContext().components.analytics.metrics.track(Event.CrashReporterOpened)
|
requireContext().components.analytics.metrics.track(Event.CrashReporterOpened)
|
||||||
|
|
||||||
@ -75,7 +75,6 @@ class CrashReporterFragment : Fragment() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun navigateHome(fromView: View) {
|
private fun navigateHome(fromView: View) {
|
||||||
val directions = CrashReporterFragmentDirections.actionCrashReporterFragmentToHomeFragment()
|
Navigation.findNavController(fromView).popBackStack(R.id.browserFragment, true)
|
||||||
Navigation.findNavController(fromView).navigate(directions)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -278,7 +278,8 @@
|
|||||||
|
|
||||||
<!-- Crashes -->
|
<!-- Crashes -->
|
||||||
<!-- Title text displayed on the tab crash page. This first parameter is the name of the application (For example: Fenix) -->
|
<!-- Title text displayed on the tab crash page. This first parameter is the name of the application (For example: Fenix) -->
|
||||||
<string name="tab_crash_title">Sorry. %1$s can’t get that tab back</string>
|
<string name="tab_crash_title_2">Sorry. %1$s can’t load that page.</string>
|
||||||
|
|
||||||
<!-- Description text displayed on the tab crash page -->
|
<!-- Description text displayed on the tab crash page -->
|
||||||
<string name="tab_crash_description">You can attempt to restore or close this tab below.</string>
|
<string name="tab_crash_description">You can attempt to restore or close this tab below.</string>
|
||||||
<!-- Send crash report checkbox text on the tab crash page -->
|
<!-- Send crash report checkbox text on the tab crash page -->
|
||||||
|
Loading…
Reference in New Issue
Block a user