mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
Fixed issue 1017: Added 'Search' menu option in account list screen
This commit is contained in:
parent
2e4672a8c9
commit
230428d16a
@ -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"
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user