summaryrefslogtreecommitdiffstats
path: root/src/com/android/settings/applications/ManageApplications.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-05-04 14:50:43 -0700
committerAmith Yamasani <yamasani@google.com>2012-05-07 11:34:33 -0700
commitbfb6a555aa894c54bd668c3f44bfac77e5774c4f (patch)
tree9ae88d2bf3047499409cd86872471f26ee58f625 /src/com/android/settings/applications/ManageApplications.java
parent8f04a6fb139b9330710b0bb4c714049452d63a48 (diff)
downloadpackages_apps_Settings-bfb6a555aa894c54bd668c3f44bfac77e5774c4f.zip
packages_apps_Settings-bfb6a555aa894c54bd668c3f44bfac77e5774c4f.tar.gz
packages_apps_Settings-bfb6a555aa894c54bd668c3f44bfac77e5774c4f.tar.bz2
Appease the monkey gods.
Bug: 6443925 Change-Id: Ia36a154d63763d7a3f826a80a5d1ae678b94208e
Diffstat (limited to 'src/com/android/settings/applications/ManageApplications.java')
-rw-r--r--src/com/android/settings/applications/ManageApplications.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/applications/ManageApplications.java b/src/com/android/settings/applications/ManageApplications.java
index 8a64968..9de5538 100644
--- a/src/com/android/settings/applications/ManageApplications.java
+++ b/src/com/android/settings/applications/ManageApplications.java
@@ -761,6 +761,8 @@ public class ManageApplications extends Fragment implements
void updateStorageUsage() {
// Fragment view not yet created?
if (mRootView == null) return;
+ // Make sure a callback didn't come at an inopportune time.
+ if (getActivity() == null) return;
if (mCurView == VIEW_RUNNING) {
return;
@@ -942,8 +944,6 @@ public class ManageApplications extends Fragment implements
@Override
public void onServiceConnected(ComponentName name, IBinder service) {
mContainerService = IMediaContainerService.Stub.asInterface(service);
- // Make sure this callback didn't come at an inopportune time.
- if (getActivity() == null) return;
updateStorageUsage();
}