Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions app/src/main/java/com/github/mobile/accounts/LoginActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import android.view.View.OnKeyListener;
import android.widget.ArrayAdapter;
import android.widget.AutoCompleteTextView;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
Expand Down Expand Up @@ -171,6 +172,23 @@ public void onCreate(Bundle savedInstanceState) {
loginText = finder.find(R.id.et_login);
passwordText = finder.find(R.id.et_password);

//I plan to add a feature for user log out, click the button, log out the app maybe can re-enter
//by use another id.

/*ViewFinder finderOut = new ViewFinder(this);
logOut = finder.find(R.id.et_logout);
Button logout = (Button)findViewById(R.id.logOut);
logout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {

}
});



*/

final Intent intent = getIntent();
username = intent.getStringExtra(PARAM_USERNAME);
authTokenType = intent.getStringExtra(PARAM_AUTHTOKEN_TYPE);
Expand Down Expand Up @@ -479,4 +497,6 @@ private void handleLoginException(final Exception e) {
else
ToastUtils.show(LoginActivity.this, e, R.string.code_authentication_failed);
}


}