add extra params to intent to start download app to sort by size
Vasu Nori [Tue, 25 Jan 2011 00:11:24 +0000 (16:11 -0800)]
Change-Id: I4eca06d7fe802aacaad06b23c628a8bf1bf8ad97

ui/src/com/android/providers/downloads/ui/DownloadList.java

index 133b0bf..23d0d8f 100644 (file)
@@ -159,6 +159,12 @@ public class DownloadList extends Activity
             ensureSomeGroupIsExpanded();
         }
 
+        // did the caller want  to display the data sorted by size?
+        Bundle extras = getIntent().getExtras();
+        if (extras != null &&
+                extras.getBoolean(DownloadManager.INTENT_EXTRAS_SORT_BY_SIZE, false)) {
+            mIsSortedBySize = true;
+        }
         chooseListToShow();
     }