parent
2a4aa24195
commit
76e9200304
|
@ -235,24 +235,33 @@ class LoginsFragment : PreferenceFragmentCompat(), AccountObserver {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun navigateToSavedLoginsFragment() {
|
private fun navigateToSavedLoginsFragment() {
|
||||||
context?.components?.analytics?.metrics?.track(Event.OpenLogins)
|
if (findNavController().currentDestination?.id == R.id.loginsFragment) {
|
||||||
val directions = LoginsFragmentDirections.actionLoginsFragmentToSavedLoginsFragment()
|
context?.components?.analytics?.metrics?.track(Event.OpenLogins)
|
||||||
findNavController().navigate(directions)
|
val directions = LoginsFragmentDirections.actionLoginsFragmentToSavedLoginsFragment()
|
||||||
|
findNavController().navigate(directions)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun navigateToAccountSettingsFragment() {
|
private fun navigateToAccountSettingsFragment() {
|
||||||
val directions = LoginsFragmentDirections.actionLoginsFragmentToAccountSettingsFragment()
|
if (findNavController().currentDestination?.id == R.id.loginsFragment) {
|
||||||
findNavController().navigate(directions)
|
val directions =
|
||||||
|
LoginsFragmentDirections.actionLoginsFragmentToAccountSettingsFragment()
|
||||||
|
findNavController().navigate(directions)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun navigateToAccountProblemFragment() {
|
private fun navigateToAccountProblemFragment() {
|
||||||
val directions = LoginsFragmentDirections.actionLoginsFragmentToAccountProblemFragment()
|
if (findNavController().currentDestination?.id == R.id.loginsFragment) {
|
||||||
findNavController().navigate(directions)
|
val directions = LoginsFragmentDirections.actionLoginsFragmentToAccountProblemFragment()
|
||||||
|
findNavController().navigate(directions)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun navigateToTurnOnSyncFragment() {
|
private fun navigateToTurnOnSyncFragment() {
|
||||||
val directions = LoginsFragmentDirections.actionLoginsFragmentToTurnOnSyncFragment()
|
if (findNavController().currentDestination?.id == R.id.loginsFragment) {
|
||||||
findNavController().navigate(directions)
|
val directions = LoginsFragmentDirections.actionLoginsFragmentToTurnOnSyncFragment()
|
||||||
|
findNavController().navigate(directions)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
|
|
Loading…
Reference in New Issue