Fixed an off by one error in gtasks login activity

pull/14/head
Sam Bosley 13 years ago
parent e9c72bd67a
commit 87fecc1a38

@ -122,7 +122,7 @@ public class GtasksLoginActivity extends ListActivity {
super.onListItemClick(l, v, position, id);
final ProgressDialog pd = DialogUtilities.progressDialog(this, this.getString(R.string.gtasks_GLA_authenticating));
pd.show();
final Account a = accountManager.getAccountByName(nameArray[position]);
final Account a = accountManager.getAccountByName(nameArray[position - 1]); // Subtract 1 because apparently android counts the header view as part of the adapter.
accountName = a.name;
getAuthToken(a, pd);
}

Loading…
Cancel
Save