fix lint for ManageRepoActivity
This commit is contained in:
parent
0f64fd30c6
commit
bb1292586b
@ -180,7 +180,7 @@ public class ManageReposActivity extends AppCompatActivity implements LoaderMana
|
|||||||
if (userInfoTokens.length >= 2) {
|
if (userInfoTokens.length >= 2) {
|
||||||
username = userInfoTokens[0];
|
username = userInfoTokens[0];
|
||||||
password = userInfoTokens[1];
|
password = userInfoTokens[1];
|
||||||
for (int i=2; i<userInfoTokens.length; i++) {
|
for (int i = 2; i < userInfoTokens.length; i++) {
|
||||||
password += ":" + userInfoTokens[i];
|
password += ":" + userInfoTokens[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -221,13 +221,10 @@ public class ManageReposActivity extends AppCompatActivity implements LoaderMana
|
|||||||
|
|
||||||
private AddRepoState addRepoState;
|
private AddRepoState addRepoState;
|
||||||
|
|
||||||
AddRepo(String newAddress, String newFingerprint,final String username, final String password) {
|
AddRepo(String newAddress, String newFingerprint, final String username, final String password) {
|
||||||
|
|
||||||
context = ManageReposActivity.this;
|
context = ManageReposActivity.this;
|
||||||
|
|
||||||
// TODO uniqx: forward username and password
|
|
||||||
Toast.makeText(context, "username: " + username + ", password: " + password, Toast.LENGTH_LONG).show();
|
|
||||||
|
|
||||||
final View view = getLayoutInflater().inflate(R.layout.addrepo, null);
|
final View view = getLayoutInflater().inflate(R.layout.addrepo, null);
|
||||||
addRepoDialog = new AlertDialog.Builder(context).setView(view).create();
|
addRepoDialog = new AlertDialog.Builder(context).setView(view).create();
|
||||||
final EditText uriEditText = (EditText) view.findViewById(R.id.edit_uri);
|
final EditText uriEditText = (EditText) view.findViewById(R.id.edit_uri);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user