| Line 5... |
Line 5... |
| 5 |
import android.content.Context;
|
5 |
import android.content.Context;
|
| 6 |
import android.content.DialogInterface;
|
6 |
import android.content.DialogInterface;
|
| 7 |
import android.content.Intent;
|
7 |
import android.content.Intent;
|
| 8 |
import android.content.SharedPreferences;
|
8 |
import android.content.SharedPreferences;
|
| 9 |
import android.net.ConnectivityManager;
|
9 |
import android.net.ConnectivityManager;
|
| - |
|
10 |
import android.net.Uri;
|
| 10 |
import android.os.AsyncTask;
|
11 |
import android.os.AsyncTask;
|
| 11 |
import android.os.Bundle;
|
12 |
import android.os.Bundle;
|
| 12 |
import android.support.v7.app.ActionBarActivity;
|
13 |
import android.support.v7.app.ActionBarActivity;
|
| 13 |
import android.telephony.TelephonyManager;
|
14 |
import android.telephony.TelephonyManager;
|
| 14 |
import android.util.Log;
|
15 |
import android.util.Log;
|
| Line 241... |
Line 242... |
| 241 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
242 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
| 242 |
startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
243 |
startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
| 243 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
244 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
| 244 |
startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
245 |
startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
| 245 |
} else if (idCheck != null) {
|
246 |
} else if (idCheck != null) {
|
| 246 |
startActivity(new Intent(SplashScreen.this, MainActivity.class));
|
247 |
Intent startActivityIntent=new Intent(SplashScreen.this, MainActivity.class);
|
| - |
|
248 |
Intent intent = getIntent();
|
| - |
|
249 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
250 |
Uri uri = intent.getData();
|
| - |
|
251 |
startActivityIntent.setAction("31");
|
| - |
|
252 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
253 |
}
|
| - |
|
254 |
startActivity(startActivityIntent);
|
| 247 |
} else {
|
255 |
} else {
|
| 248 |
startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
256 |
startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
| 249 |
|
257 |
|
| 250 |
}
|
258 |
}
|
| 251 |
}else{
|
259 |
}else{
|
| Line 519... |
Line 527... |
| 519 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
527 |
if (userData.getString("referralCodeRequired", "false").equalsIgnoreCase("true")) {
|
| 520 |
startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
528 |
startActivity(new Intent(SplashScreen.this, ReferrerActivity.class));
|
| 521 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
529 |
} else if (userData.getString("message", "false").equalsIgnoreCase("true")) {
|
| 522 |
startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
530 |
startActivity(new Intent(SplashScreen.this, MobileNumber.class));
|
| 523 |
} else if (idCheck != null) {
|
531 |
} else if (idCheck != null) {
|
| 524 |
startActivity(new Intent(SplashScreen.this, MainActivity.class));
|
532 |
Intent startActivityIntent=new Intent(SplashScreen.this, MainActivity.class);
|
| - |
|
533 |
Intent intent = getIntent();
|
| - |
|
534 |
if (Intent.ACTION_VIEW.equals(intent.getAction())) {
|
| - |
|
535 |
Uri uri = intent.getData();
|
| - |
|
536 |
startActivityIntent.setAction("31");
|
| - |
|
537 |
startActivityIntent.setData(Uri.parse(uri.toString()));
|
| - |
|
538 |
}
|
| - |
|
539 |
startActivity(startActivityIntent);
|
| 525 |
} else {
|
540 |
} else {
|
| 526 |
startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
541 |
startActivity(new Intent(SplashScreen.this, LoginActivity.class));
|
| 527 |
}
|
542 |
}
|
| 528 |
}
|
543 |
}
|
| 529 |
}
|
544 |
}
|