Merge branch 'readonly-p4-donut' into donut
diff --git a/src/com/android/settings/InstalledAppDetails.java b/src/com/android/settings/InstalledAppDetails.java
index 327874b..692fc8e 100644
--- a/src/com/android/settings/InstalledAppDetails.java
+++ b/src/com/android/settings/InstalledAppDetails.java
@@ -212,8 +212,6 @@
         totalSizeStr = appSizeStr = dataSizeStr = mComputingStr;
         if(localLOGV) Log.i(TAG, "Have to compute package sizes");
         mSizeObserver = new PkgSizeObserver();
-        mPm.getPackageSizeInfo(packageName, mSizeObserver);
-
         try {
             mAppInfo = mPm.getApplicationInfo(packageName, 
                     PackageManager.GET_UNINSTALLED_PACKAGES);
@@ -290,6 +288,14 @@
          }
     }
     
+    @Override
+    public void onStart() {
+        super.onStart();
+        if (mAppInfo != null && mAppInfo.packageName != null) {
+            mPm.getPackageSizeInfo(mAppInfo.packageName, mSizeObserver);
+        }
+    }
+    
     private void displayErrorDialog(int msgId, final boolean finish, final boolean changed) {
         //display confirmation dialog
         new AlertDialog.Builder(this)