package es.craftsmanship.toledo.katangapp.activities;

import android.content.Intent;
import android.graphics.Typeface;
import android.os.Handler;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import es.craftsmanship.toledo.katangapp.utils.KatangaFont;

/**
 * author Cristóbal Hermida
 */
public class SplashActivity extends AppCompatActivity {

    // Splash screen timer
    private static int SPLASH_TIME_OUT = 2000;

    private TextView title;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        title = (TextView) findViewById(R.id.title_splash);

        Typeface tf = KatangaFont.getFont(getAssets(), KatangaFont.QUICKSAND_REGULAR);

        title.setTypeface(tf);


        new Handler().postDelayed(new Runnable() {

            /*
             * Showing splash screen with a timer. This will be useful when you
             * want to show case your app logo / company
             */

            @Override
            public void run() {
                // This method will be executed once the timer is over
                // Start your app main activity
                Intent i = new Intent(SplashActivity.this, MainActivity.class);
                startActivity(i);

                // close this activity
                finish();
            }
        }, SPLASH_TIME_OUT);
    }
}

@@ -505,16 +505,17 @@
  title;%0A
+%0A
     @Ove
@@ -621,16 +621,17 @@
 State);%0A
+%0A
         
@@ -854,17 +854,16 @@
 e(tf);%0A%0A
-%0A
         
@@ -1328,16 +1328,17 @@
 class);%0A
+%0A
         
@@ -1443,16 +1443,17 @@
       %7D%0A
+%0A
         
@@ -1479,10 +1479,10 @@
 ;%0A    %7D%0A
-%7D
 %0A
+%7D

Format source: blank lines