use supportInvalidateOptionsMenu instead of invalidateOptionsMenu

This commit is contained in:
daniel oeh 2012-11-28 16:47:41 +01:00
parent 88c194db9b
commit ae8df1a525
1 changed files with 2 additions and 6 deletions

View File

@ -119,9 +119,7 @@ public class MiroGuideChannelViewActivity extends SherlockActivity {
listEntries.setAdapter(listAdapter);
progLoading.setVisibility(View.GONE);
layoutContent.setVisibility(View.VISIBLE);
if (Build.VERSION.SDK_INT >= 11) {
invalidateOptionsMenu();
}
supportInvalidateOptionsMenu();
} else {
finish();
}
@ -176,9 +174,7 @@ public class MiroGuideChannelViewActivity extends SherlockActivity {
Toast toast = Toast.makeText(this, R.string.miro_feed_added,
Toast.LENGTH_LONG);
toast.show();
if (Build.VERSION.SDK_INT >= 11) {
invalidateOptionsMenu();
}
supportInvalidateOptionsMenu();
return true;
default:
return false;