summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAdam Powell <adamp@google.com>2011-01-23 17:35:41 -0800
committerAdam Powell <adamp@google.com>2011-01-23 17:35:41 -0800
commita31be80ef056add00e0d239414f80f932978277f (patch)
tree830fd867e66107b6bee63ea17517da1481ac4b7b /src/com
parent6370c87a6b98abfc6badb31070a60f84b3f528b3 (diff)
downloadpackages_apps_Settings-a31be80ef056add00e0d239414f80f932978277f.tar.gz
packages_apps_Settings-a31be80ef056add00e0d239414f80f932978277f.tar.bz2
packages_apps_Settings-a31be80ef056add00e0d239414f80f932978277f.zip
Fix bug 3381583 - Settings action bar not refreshing menu content
Change-Id: I71416dbf691a6dacfb58c6ac3cc0df8233db8f44
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/settings/applications/ManageApplications.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java
index be5019b93..37efefce1 100644
--- a/src/com/android/settings/applications/ManageApplications.java
+++ b/src/com/android/settings/applications/ManageApplications.java
@@ -16,13 +16,13 @@
package com.android.settings.applications;
-import com.android.settings.R;
-
import com.android.internal.content.PackageHelper;
-import com.android.settings.applications.ApplicationsState.AppEntry;
+import com.android.settings.R;
import com.android.settings.Settings.RunningServicesActivity;
import com.android.settings.Settings.StorageUseActivity;
+import com.android.settings.applications.ApplicationsState.AppEntry;
+import android.app.Activity;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
@@ -48,6 +48,7 @@ import android.view.animation.AnimationUtils;
import android.view.inputmethod.InputMethodManager;
import android.widget.AbsListView;
import android.widget.AdapterView;
+import android.widget.AdapterView.OnItemClickListener;
import android.widget.BaseAdapter;
import android.widget.CheckBox;
import android.widget.Filter;
@@ -56,7 +57,6 @@ import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TabHost;
import android.widget.TextView;
-import android.widget.AdapterView.OnItemClickListener;
import java.util.ArrayList;
import java.util.Comparator;
@@ -856,6 +856,10 @@ public class ManageApplications extends Fragment implements
}
}
mCurView = which;
+ final Activity host = getActivity();
+ if (host != null) {
+ host.invalidateOptionsMenu();
+ }
}
void handleRunningProcessesAvail() {