package com.huetoyou.chatexchange.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.huetoyou.chatexchange.net.RequestFactory;
import com.huetoyou.chatexchange.ui.activity.main.MainActivity;
import com.huetoyou.chatexchange.ui.misc.Utils;

import java.net.URL;

public class SplashActivity extends AppCompatActivity
{
    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);

        new RequestFactory().get("http://google.com", true, new RequestFactory.Listener()
        {
            @Override
            public void onSucceeded(URL url, String data)
            {
                Intent intent = new Intent(SplashActivity.this, MainActivity.class);
                intent.putExtras(getIntent());
                startActivity(intent);
            }

            @Override
            public void onFailed(String message)
            {
                Intent intent = new Intent(SplashActivity.this, OfflineActivity.class);
                startActivity(intent);
            }
        });

        finish();
    }
}
@@ -868,32 +868,59 @@
 ctivity(intent);
+%0A%0A                finish();
 %0A            %7D%0A%0A
@@ -1131,16 +1131,17 @@
 ntent);%0A
+%0A
         
@@ -1144,17 +1144,29 @@
         
-%7D
+    finish();
 %0A       
@@ -1170,12 +1170,13 @@
     
-%7D);%0A
+    %7D
 %0A   
@@ -1176,29 +1176,23 @@
   %7D%0A        
-finish(
+%7D
 );%0A    %7D%0A%7D

Fix bug