kopia lustrzana https://github.com/ryukoposting/Signal-Android
Fix navigation crash in welcome fragment.
rodzic
277c17de83
commit
8d8a2a8eef
|
@ -102,7 +102,7 @@ public final class WelcomeFragment extends LoggingFragment {
|
||||||
|
|
||||||
Log.i(TAG, "Skipping restore because this is a reregistration.");
|
Log.i(TAG, "Skipping restore because this is a reregistration.");
|
||||||
viewModel.setWelcomeSkippedOnRestore();
|
viewModel.setWelcomeSkippedOnRestore();
|
||||||
SafeNavigation.safeNavigate(Navigation.findNavController(view),
|
SafeNavigation.safeNavigate(NavHostFragment.findNavController(this),
|
||||||
WelcomeFragmentDirections.actionSkipRestore());
|
WelcomeFragmentDirections.actionSkipRestore());
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
@ -180,10 +180,10 @@ public final class WelcomeFragment extends LoggingFragment {
|
||||||
|
|
||||||
if (backup == null) {
|
if (backup == null) {
|
||||||
Log.i(TAG, "Skipping backup. No backup found, or no permission to look.");
|
Log.i(TAG, "Skipping backup. No backup found, or no permission to look.");
|
||||||
SafeNavigation.safeNavigate(Navigation.findNavController(view),
|
SafeNavigation.safeNavigate(NavHostFragment.findNavController(this),
|
||||||
WelcomeFragmentDirections.actionSkipRestore());
|
WelcomeFragmentDirections.actionSkipRestore());
|
||||||
} else {
|
} else {
|
||||||
SafeNavigation.safeNavigate(Navigation.findNavController(view),
|
SafeNavigation.safeNavigate(NavHostFragment.findNavController(this),
|
||||||
WelcomeFragmentDirections.actionRestore());
|
WelcomeFragmentDirections.actionRestore());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -194,7 +194,7 @@ public final class WelcomeFragment extends LoggingFragment {
|
||||||
|
|
||||||
initializeNumber();
|
initializeNumber();
|
||||||
|
|
||||||
SafeNavigation.safeNavigate(Navigation.findNavController(view),
|
SafeNavigation.safeNavigate(NavHostFragment.findNavController(this),
|
||||||
WelcomeFragmentDirections.actionTransferOrRestore());
|
WelcomeFragmentDirections.actionTransferOrRestore());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue