OSDN Git Service

Force download progress bar to show progress.
authorJean-Baptiste Queru <jbq@google.com>
Fri, 6 Feb 2009 23:52:12 +0000 (15:52 -0800)
committerJean-Baptiste Queru <jbq@google.com>
Fri, 6 Feb 2009 23:53:29 +0000 (15:53 -0800)
Somehow progress bars in list viewws have problems with their
indeterminate state (whether the state is indeterminate is
actually indeterminate, how ironic). This forces the state to
not be indeterminate.

This fixes http://code.google.com/p/android/issues/detail?id=1118

src/com/android/browser/BrowserDownloadAdapter.java

index 68d3a83..16cb982 100644 (file)
@@ -180,6 +180,7 @@ public class BrowserDownloadAdapter extends ResourceCursorAdapter {
                     sb.append("/");
                     sb.append(Formatter.formatFileSize(mContext, totalBytes));
                     sb.append(")");
+                    pb.setIndeterminate(false);
                     pb.setProgress(progressAmount);
                 } else {
                     pb.setIndeterminate(true);