Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class SplashActivity extends BaseAppCompatActivity implements SplashActivityNavigator {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_splash);
final SplashActivityViewModel viewModel = ViewModelProviders
.of(this,
new SplashActivityViewModelFactory(getApplication(), this)
)
.get(SplashActivityViewModel.class);
viewModel.startWorking();
}
@Override
public void openMainActivity() {
MainActivity.start(this);
finish();
}
@Override
public void openLogInActivity() {
LogInActivity.start(this);
finish();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.