commit | 07084691ebb28655fe2ab5cae6b692295c8a2c6d | [log] [tgz] |
---|---|---|
author | Flavio Lerda <flerda@google.com> | Mon Sep 19 13:32:33 2011 +0100 |
committer | Flavio Lerda <flerda@google.com> | Tue Sep 27 13:29:37 2011 +0100 |
tree | 33215c83b7054d5cdfa1533d4051d87681f6a821 | |
parent | 22bd1248c25b7dc7efbe7fe6c3bfbc3bc6f15fb3 [diff] |
Invalidate the options menu on visibility changes. Currently, we set the mShowOptionsMenu when the visibility of the fragment changes. However, it may be possible to update this after the options menu has been created but before the menu is prepared, which would lead the menu to be in an inconsistent state. By invalidating the options menu, we are guaranteed it will be re-created. Bug: 5335885 Change-Id: I1183d898d6e4867845aa04e054273bf271695d02