Remove ic_menu_refresh_holo_dark
Menu overflow item icon is removed for 1p apps. We don't need to set it. Bug: 139336138 Test: visual Change-Id: I91216d0363211c5e9aee074810746999ae49b097
This commit is contained in:
Binary file not shown.
Before Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 889 B |
Binary file not shown.
Before Width: | Height: | Size: 1.7 KiB |
@@ -188,11 +188,9 @@ public class AccountSyncSettings extends AccountPreferenceBase {
|
|||||||
@Override
|
@Override
|
||||||
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {
|
||||||
MenuItem syncNow = menu.add(0, MENU_SYNC_NOW_ID, 0,
|
MenuItem syncNow = menu.add(0, MENU_SYNC_NOW_ID, 0,
|
||||||
getString(R.string.sync_menu_sync_now))
|
getString(R.string.sync_menu_sync_now));
|
||||||
.setIcon(R.drawable.ic_menu_refresh_holo_dark);
|
|
||||||
MenuItem syncCancel = menu.add(0, MENU_SYNC_CANCEL_ID, 0,
|
MenuItem syncCancel = menu.add(0, MENU_SYNC_CANCEL_ID, 0,
|
||||||
getString(R.string.sync_menu_sync_cancel))
|
getString(R.string.sync_menu_sync_cancel));
|
||||||
.setIcon(com.android.internal.R.drawable.ic_menu_close_clear_cancel);
|
|
||||||
|
|
||||||
syncNow.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER |
|
syncNow.setShowAsAction(MenuItem.SHOW_AS_ACTION_NEVER |
|
||||||
MenuItem.SHOW_AS_ACTION_WITH_TEXT);
|
MenuItem.SHOW_AS_ACTION_WITH_TEXT);
|
||||||
@@ -210,6 +208,7 @@ public class AccountSyncSettings extends AccountPreferenceBase {
|
|||||||
mUserHandle.getIdentifier()).isEmpty();
|
mUserHandle.getIdentifier()).isEmpty();
|
||||||
menu.findItem(MENU_SYNC_NOW_ID).setVisible(!syncActive);
|
menu.findItem(MENU_SYNC_NOW_ID).setVisible(!syncActive);
|
||||||
menu.findItem(MENU_SYNC_CANCEL_ID).setVisible(syncActive);
|
menu.findItem(MENU_SYNC_CANCEL_ID).setVisible(syncActive);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user