{"shas":[["3ffa1a1cb697fcfa3cb2be085be822161a07225f","9898cc335ef90224db473076d7dcb779d827aead@gmail.com","Fix for issue 705: Sync button does not work on Honeycomb.\n\nThe underlying reason for the issue is that in Honeycomb the menu items\nare generated whenever the action bar is shown instead of when the user\npresses the menu key on the device; as a consequence, the StudyOptions\nactivity will get first a disabled Sync button in the action bar (while\nthe deck is loading) and this will not be enabled when the deck finally\nloads (or disabled when the deck is closed).\n\nTo fix this, we need to call Activity.invalidateOptionsMenu() any time\nsomething happens that causes the options menu options to change.\n\nHowever, this method is only available is API Level 11 and above. To fix\nthis (and future problems of this sort). I introduced a new Compat\ninterface which is meant to contain functions which need to be\nimplemented differently on different API levels.\n\nThere are a number of implementations of this interface (currently on\nCompatV3 and CompatV11) which may do different things on the different\nplatforms: for example, there is no need to invalidate the options menu\nitems on any platform before Honeycomb, so\nCompat.invalidOptionsMenu(Activity) is simply an empty function in\nCompatV3.","Flavio Lerda"],["1cfc0263b350a3b6c62dc2aa6f289850ebf45d2b","9e91faaa9f375408e45d97261a75d7383beb323c@gmail.com","Fixed conflict","Nicolas Raoul"]],"ref":"refs/heads/master","size":2,"head":"1cfc0263b350a3b6c62dc2aa6f289850ebf45d2b","push_id":41068944}