1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

Fixed issue 1017: Added 'Search' menu option in account list screen

This commit is contained in:
Bao-Long Nguyen-Trong 2010-01-12 00:56:51 +00:00
parent 2e4672a8c9
commit 230428d16a
2 changed files with 8 additions and 7 deletions

View File

@ -6,6 +6,11 @@
android:title="@string/compose_action"
android:icon="@drawable/ic_menu_compose"
/>
<item
android:id="@+id/search"
android:title="@string/search_action"
android:icon="@android:drawable/ic_search_category_default"
/>
<item
android:id="@+id/add_new_account"
android:title="@string/add_account_action"

View File

@ -561,6 +561,9 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
case R.id.about:
onAbout();
break;
case R.id.search:
onSearchRequested();
break;
default:
return super.onOptionsItemSelected(item);
}
@ -636,13 +639,6 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
getMenuInflater().inflate(R.menu.accounts_context, menu);
}
@Override
public boolean onKeyDown(int keyCode, KeyEvent event)
{
return super.onKeyDown(keyCode, event);
}
class AccountsAdapter extends ArrayAdapter<Account>
{
public AccountsAdapter(Account[] accounts)