|
@ -118,7 +118,7 @@ public class RegisterActivity extends ToolbarActivity implements RegisterFragmen |
|
|
private boolean goingSomewhere = false; |
|
|
private boolean goingSomewhere = false; |
|
|
|
|
|
|
|
|
String valueFromApiCheckIn; |
|
|
String valueFromApiCheckIn; |
|
|
|
|
|
|
|
|
|
|
|
SharedPreferences shared; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@SuppressLint("MissingInflatedId") |
|
|
@SuppressLint("MissingInflatedId") |
|
@ -131,9 +131,9 @@ public class RegisterActivity extends ToolbarActivity implements RegisterFragmen |
|
|
//ButterKnife.bind(this); |
|
|
//ButterKnife.bind(this); |
|
|
setToolbar(); |
|
|
setToolbar(); |
|
|
|
|
|
|
|
|
SharedPreferences sharedPreferences = getSharedPreferences("MyPrefs", Context.MODE_PRIVATE); |
|
|
|
|
|
String login = sharedPreferences.getString("login",""); |
|
|
|
|
|
String Descriptor = sharedPreferences.getString("Descriptor",""); |
|
|
|
|
|
|
|
|
shared = getSharedPreferences("MyPrefs", Context.MODE_PRIVATE); |
|
|
|
|
|
String login = shared.getString("login",""); |
|
|
|
|
|
String Descriptor = shared.getString("Descriptor",""); |
|
|
|
|
|
|
|
|
System.out.println("Value of login and Descriptor " + preferences.getUsername()+" "); |
|
|
System.out.println("Value of login and Descriptor " + preferences.getUsername()+" "); |
|
|
Intent intent = getIntent(); |
|
|
Intent intent = getIntent(); |
|
@ -584,12 +584,13 @@ public class RegisterActivity extends ToolbarActivity implements RegisterFragmen |
|
|
} |
|
|
} |
|
|
private void showSuccess() { |
|
|
private void showSuccess() { |
|
|
|
|
|
|
|
|
|
|
|
SharedPreferences.Editor editor = shared.edit(); |
|
|
|
|
|
editor.putBoolean("IsUserLogin",true); |
|
|
|
|
|
editor.commit(); |
|
|
|
|
|
|
|
|
final Intent intent = new Intent(RegisterActivity.this, CheckInActivity.class); |
|
|
final Intent intent = new Intent(RegisterActivity.this, CheckInActivity.class); |
|
|
intent.putExtra(AuthSuccessActivity.LOGIN, login); |
|
|
intent.putExtra(AuthSuccessActivity.LOGIN, login); |
|
|
|
|
|
|
|
|
System.out.println("login value "+ login); |
|
|
System.out.println("login value "+ login); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (BuildConfig.IS_OFFLINE_VERSION) { |
|
|
if (BuildConfig.IS_OFFLINE_VERSION) { |
|
|
intent.putExtra(AuthSuccessActivity.TIME, (int) (((double) (verifEndTime - verifStartTime)) / 1e6)); |
|
|
intent.putExtra(AuthSuccessActivity.TIME, (int) (((double) (verifEndTime - verifStartTime)) / 1e6)); |
|
|
intent.putExtra("FromRegister", true); |
|
|
intent.putExtra("FromRegister", true); |
|
@ -597,9 +598,7 @@ public class RegisterActivity extends ToolbarActivity implements RegisterFragmen |
|
|
intent.putExtra("valueFromApiCheckIn", valueFromApiCheckIn); |
|
|
intent.putExtra("valueFromApiCheckIn", valueFromApiCheckIn); |
|
|
intent.putExtra("UserName", login); |
|
|
intent.putExtra("UserName", login); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
startActivity(intent); |
|
|
startActivity(intent); |
|
|
|
|
|
|
|
|
finish(); |
|
|
finish(); |
|
|
|
|
|
|
|
|
/*if (checkinButton) { |
|
|
/*if (checkinButton) { |
|
|