Created
February 18, 2016 13:29
-
-
Save wviana/651ed6d17bcccc965b19 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package neocom.dealerbook.controller; | |
//... Imports | |
public class LoginActivity extends AppCompatActivity { | |
public void doLogin(View view){ | |
//.... Do Things | |
loginShortCut(); //Method don't run in production || To Remove on Proguard | |
String userName = this.user.getText().toString(); | |
String userPassword = this.password.getText().toString(); | |
api.generateToken(userName, userPassword, GRANT_TYPE, getLoginCallback(button)); | |
} | |
private void loginShortCut() { | |
if (user.getText().toString().equals("123")) { | |
user.setText("some_user@some_provider.com"); | |
password.setText("some_password"); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-assumenosideeffects class android.util.Log { | |
public static boolean isLoggable(java.lang.String, int); | |
public static int v(...); | |
public static int i(...); | |
public static int w(...); | |
public static int d(...); | |
public static int e(...); | |
} | |
-assumenosideeffects class neocom.dealerbook.controller.LoginActivity { | |
private void loginShortCut(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment