OSDN Git Service

Fix a bug where options menu was not showing.
authorDaniel Nishi <dhnishi@google.com>
Fri, 14 Apr 2017 21:12:35 +0000 (14:12 -0700)
committerDaniel Nishi <dhnishi@google.com>
Fri, 14 Apr 2017 21:25:37 +0000 (14:25 -0700)
commite6740f740ea505dc3a07bbec2861b684f30d7194
tree612615b1bcfe7688d3f21f0acdfec063ca8ef0b5
parent190b560c9aeedd6924735222bb6a25db98787616
Fix a bug where options menu was not showing.

There were two issues that stopped the options menu from
showing properly. First, the SettingsPreferenceFragment did
not call its super class, causing the Lifecycle methods to
never be called. Second, the options menu was not being
invalidated which also stopped the Lifecycle methods from
being called.

Change-Id: I29f2fc105c7ecae7adaccb2e4643e48646398d8d
Fixes: 37255835
Test: Robotest
src/com/android/settings/SettingsPreferenceFragment.java
src/com/android/settings/deviceinfo/StorageDashboardFragment.java
tests/robotests/src/com/android/settings/deviceinfo/StorageDashboardFragmentTest.java