|
|
@ -217,8 +217,8 @@ public class LoginActivity extends AppCompatActivity { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void onPause() { |
|
|
|
protected void onStop() { |
|
|
|
super.onPause(); |
|
|
|
super.onStop(); |
|
|
|
SharedPreferences.Editor editor = preferences.edit(); |
|
|
|
SharedPreferences.Editor editor = preferences.edit(); |
|
|
|
editor.putString("domain", domain); |
|
|
|
editor.putString("domain", domain); |
|
|
|
editor.putString("clientId", clientId); |
|
|
|
editor.putString("clientId", clientId); |
|
|
@ -238,8 +238,8 @@ public class LoginActivity extends AppCompatActivity { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
protected void onResume() { |
|
|
|
protected void onStart() { |
|
|
|
super.onResume(); |
|
|
|
super.onStart(); |
|
|
|
/* Check if we are resuming during authorization by seeing if the intent contains the |
|
|
|
/* Check if we are resuming during authorization by seeing if the intent contains the |
|
|
|
* redirect that was given to the server. If so, its response is here! */ |
|
|
|
* redirect that was given to the server. If so, its response is here! */ |
|
|
|
Uri uri = getIntent().getData(); |
|
|
|
Uri uri = getIntent().getData(); |
|
|
|