OSDN Git Service

Ensure WFD switch is removed along with settings fragment.
authorJeff Brown <jeffbrown@google.com>
Thu, 18 Apr 2013 02:22:05 +0000 (19:22 -0700)
committerJeff Brown <jeffbrown@google.com>
Thu, 18 Apr 2013 02:22:05 +0000 (19:22 -0700)
Bug: 8340072
Change-Id: I8d203725ef1bfa5b1b5e5c224fa57d5feaa9db5a

src/com/android/settings/wfd/WifiDisplaySettings.java

index 60dd119..5b732d6 100755 (executable)
@@ -117,6 +117,12 @@ public final class WifiDisplaySettings extends SettingsPreferenceFragment {
     }
 
     @Override
+    public void onDestroyView() {
+        getActivity().getActionBar().setCustomView(null);
+        super.onDestroyView();
+    }
+
+    @Override
     public void onResume() {
         super.onResume();