Fix issue #4021524 HMI63B: "Force stop" button not disabled after app is stopped

There should probably be a broadcast from PM about this.  Later.

Change-Id: I713197ed458f8f6a914efb3800cd1b192f741613
This commit is contained in:
Dianne Hackborn
2011-03-08 14:40:25 -08:00
parent 3f1d39193e
commit c442e52dca
2 changed files with 12 additions and 4 deletions

View File

@@ -736,6 +736,11 @@ public class InstalledAppDetails extends Fragment
ActivityManager am = (ActivityManager)getActivity().getSystemService(
Context.ACTIVITY_SERVICE);
am.forceStopPackage(pkgName);
mState.invalidatePackage(pkgName);
ApplicationsState.AppEntry newEnt = mState.getEntry(pkgName);
if (newEnt != null) {
mAppEntry = newEnt;
}
checkForceStop();
}