Created
December 24, 2018 13:27
-
-
Save theapache64/578acafff9901ccfb125712b5e72c2e6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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