1 package com.moiseum.wolnelektury.view.splash;
3 import android.os.Bundle;
4 import android.os.Handler;
5 import android.view.View;
7 import com.moiseum.wolnelektury.R;
8 import com.moiseum.wolnelektury.base.AbstractActivity;
9 import com.moiseum.wolnelektury.view.main.MainActivity;
11 import butterknife.BindView;
14 * Created by piotrostrowski on 09.12.2017.
17 public class SplashActivity extends AbstractActivity {
19 @BindView(R.id.rlMainView)
22 private Handler launchHandler;
23 private Runnable launchRunnable = new Runnable() {
31 public int getLayoutResourceId() {
32 return R.layout.activity_splash;
36 public void prepareView(Bundle savedInstanceState) {
37 rlMainView.setOnClickListener(new View.OnClickListener() {
39 public void onClick(View v) {
43 launchHandler = new Handler();
44 launchHandler.postDelayed(launchRunnable, 1500);
48 public void onDestroy() {
50 launchHandler.removeCallbacks(launchRunnable);
53 private void launchDashboard() {
54 MainActivity.MainIntent intent = new MainActivity.MainIntent(this);
55 startActivity(intent);