Fix ActionBarTest for KEY_MENU with permanent menu key.

Bug: 70542855

When there is a permanent menu key, the action bar's option menu
doesn't open. Instead it opens an overflow menu. Therefore, the
action bar's menu listener is not triggered. Two tests check for
a callback from the action bar menu.

This disables the action bar menu tests when there is a permanent
menu key.

Test: ran ActionBarTest with an without permanent key
Change-Id: I7fa619607798e419afe535c0b52af6ed189f3e3f

Cherry-Picked from master: Id8583d87503cbdf6833ea85c097e3e95f8fce80c
(cherry picked from commit 88f2d8b7425677ea16f70f99c407f67baeb57df8)

Change-Id: I0b94938353dffe18b962fbb0bd9bccc6f4029a86
1 file changed