Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. package neocom.dealerbook.controller;
  2.  
  3. //... Imports
  4.  
  5. public class LoginActivity extends AppCompatActivity {
  6.  
  7. public void doLogin(View view){
  8. //.... Do Things
  9.  
  10. loginShortCut(); //Method don't run in production || To Remove on Proguard
  11. String userName = this.user.getText().toString();
  12. String userPassword = this.password.getText().toString();
  13. api.generateToken(userName, userPassword, GRANT_TYPE, getLoginCallback(button));
  14.  
  15. }
  16.  
  17. private void loginShortCut() {
  18. if (user.getText().toString().equals("123")) {
  19. user.setText("some_user@some_provider.com");
  20. password.setText("some_password");
  21. }
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement