Fix blank page after a sync interruption

This commit is contained in:
CappielloAntonio 2021-07-17 15:00:46 +02:00
parent 3503dc13d3
commit c523751aa7

View file

@ -220,6 +220,10 @@ public class MainActivity extends BaseActivity {
Bundle bundle = SyncUtil.getSyncBundle(true, true, true, true, true, true); Bundle bundle = SyncUtil.getSyncBundle(true, true, true, true, true, true);
navController.navigate(R.id.action_loginFragment_to_syncFragment, bundle); navController.navigate(R.id.action_loginFragment_to_syncFragment, bundle);
} }
else if (Objects.requireNonNull(navController.getCurrentDestination()).getId() == R.id.landingFragment) {
Bundle bundle = SyncUtil.getSyncBundle(true, true, true, true, true, true);
navController.navigate(R.id.action_landingFragment_to_syncFragment, bundle);
}
} }
public void goFromSettingsToSync(Bundle bundle) { public void goFromSettingsToSync(Bundle bundle) {