fix jellybean actionbar toggle code so it now works on miui. fixes #312.