From e334a36194b10dca03de4a87e0c2e75582e30163 Mon Sep 17 00:00:00 2001 From: Thialfihar Date: Fri, 4 Jun 2010 20:21:51 +0000 Subject: [PATCH] fix the inbox list for GMail account --- src/org/thialfihar/android/apg/MainActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/org/thialfihar/android/apg/MainActivity.java b/src/org/thialfihar/android/apg/MainActivity.java index 61b714499..65dd20d95 100644 --- a/src/org/thialfihar/android/apg/MainActivity.java +++ b/src/org/thialfihar/android/apg/MainActivity.java @@ -110,7 +110,7 @@ public class MainActivity extends BaseActivity { mAccounts.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView arg0, View view, int index, long id) { - String accountName = (String) mAccounts.getSelectedItem(); + String accountName = (String) mAccounts.getItemAtPosition(index); startActivity(new Intent(MainActivity.this, MailListActivity.class) .putExtra(Apg.EXTRA_ACCOUNT, accountName)); }